Absolute Xpath => 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.
Absolute xpath: /html/body/div[2]/div/div/footer/section[3]/div/ul/li[3]/a |
Relative Xpath => 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.
Relative xpath: //body//section[3]/div/ul/li[3]/a |
No comments:
Post a Comment