How to Find XPath Using Firebug
steps
- 1Open Firefox browser with its Mozilla home pageAd
- 2Click on Bug tab at the right corner of the Browser.
- 3Click on Inspect element button and place your tip of cursor on any element for which you want to find XPath
- 4In this example, the Mozilla logo was selected. As soon as you hover your cursor on the Logo and click once on it, its HTML tag will get highlighted in Firebug
- 5Right Click on highlighted code and Select Copy XPath like this
- 6Now place this XPath in to your script