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
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’]