0 votes
in Selenium by
What is the difference between the “/” and “//” in X path?

1 Answer

0 votes
by

Single Slash “/” –  The 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 “//” – The 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
asked Dec 6, 2019 in Testing by SakshiSharma
0 votes
asked Jan 7 in Selenium by SakshiSharma
...