Aug 22, 2019 in Selenium
Q: What is the difference between “/” and “//”

1 Answer

0 votes
Aug 22, 2019
Single Slash “/” – Single slash is used to create XPath with absolute path i.e. the XPath would be created to start selection from the document node/start node.

Double Slash “//” – Double slash is used to create XPath with relative path i.e. the XPath would be created to start selection from anywhere within the document.

Related questions

0 votes
Aug 22, 2019 in Selenium
+1 vote
Aug 22, 2019 in Selenium
...