i have been having issues trying to select a particular locator using ‘cy.contains’, because there are two elements with same “cy.contains” locator, so it keeps selecting the wrong one
any keyword i can use to target a particular element from a list of elements ?
here is the code
cy.contains(‘manda user’).click()
i was expecting it to click on the “manda user” option from a list on hiring managers dropdown, but instead it clicks on “manda user” profile at the top right on same page, because apparently the user i’m logged in with is “manda user”
Olaosebikan Shodeyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.