0

Hi I want to perform my action on a web element in List with the desired text I am able to achieve this xpath as mentioned below:

Xpath: //span[contains(text(),'Listitem3')]

However as per instruction not to use xpath so i am looking for CSS selector that can work with text I tried with cssSelector: span:contains(Listitem3)

However this is not working. Please anyone help to create and find a valid cssSelector for my scenario

vijay kumar
  • 61
  • 2
  • 12

0 Answers0