Skip to content Skip to sidebar Skip to footer

How To Get Absolute Xpath In Chrome Or Firefox?

As written in the question I need the absolute Xpath and not the relative one. I mean, I need something like this: html/body/div[1]/section/div[1]/div/div/div/div[1]/div/div/div/di

Solution 1:

Download this chrome extension: https://chrome.google.com/webstore/detail/xpath-helper/hgimnogjllphhhkhlmebbmlgjoejdpjl

After that, click at icon of the extension and, after two boxes appers in the tab window, hold shift key to navigate between elements and see the xpath.

Solution 2:

In chrome,for relative Xpath we use "Copy as Xpath" and for absolute Xpath use "Copy as full Xpath"

Post a Comment for "How To Get Absolute Xpath In Chrome Or Firefox?"