Dec 6, 2019 in Testing
Q: What is the difference between Absolute and Relative Path?

1 Answer

Dec 6, 2019

Absolute XPath

It is the direct way to find the element, but the disadvantage of the absolute XPath is that, if there are any changes made in the path of the element then that XPath gets failed. For example: /html/body/div[1]/section/div[1]/div

Relative XPath

For Relative XPath, the path starts from the middle of the HTML DOM structure. It begins with the double forward slash (//), which means it can search the element anywhere at the webpage. For example: //input[@id=‘ap_email’]

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Nov 13 in Testing
Dec 9, 2019 in Testing
Jun 23, 2019 in Testing