mercredi 23 octobre 2019

difference between in table element( /td and //td ) in xpath selector of selenium

What is the difference between below Xpaths?

.//table[@class='tablename']//tr/td 
.//table[@class='tablename ']//tr//td  

In Selenium Webdriver, Xpath selector for Table element, what is the difference between single slash(/) and double slash (//) for "td"

Aucun commentaire:

Enregistrer un commentaire