Quality,  Software Testing

X-path through Firebug and FirePath

Firebug and FirePath are very awesome add-ons work with Firefox only. So locate the X-path through Firebug and FirePath of a Web-Element.

FirePath is a extension of Firebug where as Firebug is an add-on to the Firefox browser. So to use FirePath, we need to install Firebug initially.

 

Steps to Install Firebug:

Step 1: Launch the Firefox and open the below URL.

https://addons.mozilla.org/en-us/firefox/addon/firebug/

X-path through Firebug and FirePath

Step 2: Then click on the + Add to Firefox button.

Step 3: Click on Add button >> then click on OK button.

X-path through Firebug and FirePath

 

Steps to Install the FirePath:

Step 1: Launch Firefox and open the below URL

https://addons.mozilla.org/en-us/firefox/addon/firepath/

X-path through Firebug and FirePath

Step 2: Then click on the + Add to Firefox button.

Step 3: Click on Add button >> then click on Restart Now button.

X-path through Firebug and FirePath

Now Firebug and FirePath have been successfully installed in the Firefox browser.

 

Steps to Capture the X-path:

Step 1: To capture the X-path, right Click on the Element of the webpage.

X-path through Firebug and FirePath

Step 2: Click on Inspect Element with Firebug >> then right click on the highlighted Section >> then click on the Inspect in FirePath panel.

X-path through Firebug and FirePath

Step 3: By default, it generates Relative X-path.

Relative X-path should always start with the double // slash.

X-path through Firebug and FirePath

 

Step 4: To get the Absolute X-path, click on the Arrow mark at FirePath >> select Generate absolute X-path

X-path through Firebug and FirePath

Step 5: Then close the Firebug and capture the X-path again to get the absolute X-path by following the given steps.

X-path through Firebug and FirePath

Please click here to read Locators in Selenium RC and Webdriver

Please click here to read Steps for creating a project in Eclipse

 

One Comment

  • jordans

    A lot of thanks for your whole hard work on this website. Gloria really loves doing internet research and it’s really obvious why. We know all concerning the compelling form you create both useful and interesting thoughts via the web site and as well increase response from people on this subject plus my girl is certainly being taught a great deal. Take advantage of the remaining portion of the new year. You are carrying out a first class job.

Leave a Reply

Your email address will not be published. Required fields are marked *