DEV Community

Pramod Dutta
Pramod Dutta

Posted on

What Is the Difference Between Absolute and Relative XPaths?

In this tutorial, We are going to learn about the major difference between Absolute and Relative XPaths.

Absolute Xpath: It uses Complete path from the Root Element to the desire element. Relative Xpath: You can simply start by referencing the element you want and go from there. Always Relative Xpaths are preferred as they are not the complete paths from the Root element. ... So Always use Relative Xpaths in your Automation

👪 Join our Community -

✅ Automation Community -

🐦Follow us on Twitter -

📖 Like us on Facebook -

🎤 Listen to our Podcast -

automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest

🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -

✅Learn Jenkins for QA -

✅Programming Java -

✅Test Automation -

✅API Testing -

✅Cypress Tutorial with LIVE Projects -

Top comments (0)