0

enter image description here

having trouble finding the element using xpath for my demo selenium automation in python. I tried below code, but none is returning the exact customer nav link. How can i get the exact element using xpath, when it is returning multiple elements?

"//a[@class='nav-link']//*[contains(text(),'Customers')]" --this one returns 4 elements

//*[text()[contains(.,'Customers')]]-- this as welll returns 4 elements

"//a[@href="#']//span[contains(text(),'Customers')]"-- this one does not return any element at all

user007
  • 1
  • 1

0 Answers0