Reputation: 11
I'm just a beginner in Cypress and having a hard time to find the CSS Selector in the give HTML. This
Upvotes: 1
Views: 70
Reputation: 18650
You can use the css selector:
div#a6f4d0e7f733-0 > span
Or, if the text TGH Pharmacy
occurs only once on the existing webpage you can also use:
cy.contains('TGH Pharmacy')
Upvotes: 2