Styrow.dev
Question 8 of 82

Relative and absolute xpath?

Question

Relative and absolute xpath?

Answer

Absolute Xpath: It contains the complete path from the Root Element to the desire element. Single slash(/) is used to create Xpath with absolute path

Relative Xpath: This is more like starting simply by referencing the element you want and go from the particular location. Double slash(//) is used to represent Xpath with relative path

šŸ“² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.