Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. QA Testing
  3. Question
QA Testing

What is the difference between relative and absolute XPath?

Asked by Deepak Mistry Jun 7, 2024 1.4K views 1 answer
Share

About this question

I am currently engaged in a particular task that is related to automating a test case for a web-based application that has dynamic content. The structure of the HTML can change, but the ID of the “submit” button should remain the same. In this particular scenario should I use the Xpath or a relative Xpath to locate the “submit” button? What is the difference between both in this particular scenario? 

Your answer

1 Answer

More QA Testing discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest QA Testing Blogs

Guides, tips and career advice on QA Testing from JanBask experts.