Selenium – Installing Firebug and Firepath plug-in

Now we will install  Firefox add-on  Firebug and FirePath.In Selenium, Firebug helps in inspecting UI elements and finding its associated properties and values.

Installing Firebug plug-in

Step 1 – To install Firebug add-ons, open Firefox browser, launch www.google.com and search for Firebug. Click on Firebug link.

selenium_Firebug

Step 2 – Add-ons page appears. Click on Add to Firefox button.

selenium_Firebug_Add_ons

Step 3 – Wait for Firebug add-ons to be downloaded. Once  downloaded, Click on install now button in software installation pop-up.

selenium_Firebug_Install

Step 4 – Restart browser if prompted by clicking on Restart Now. If you do not get any prompt go to next step.

Step 5 – Go to Tools > Web Developer > Firebug > Open Firebug. This will open Firebug Interface.

selenium_Firebug_Console

Step 6 –  Alternatively, Click on Firebug icon on the upper right corner of the Firefox window to open firebug interface.

selenium_Firebug_Icon

Installing FirePath plug-in

FirePath is a Firebug extension that adds a development tool to edit, inspect and retrieve XPath from the UI elements. We will use this in Selenium to retrieve XPath values from elements which exist on web pages.

Step 1 – To add FirePath add-ons, Open Firefox browser, launch www.google.com and search for FirePath. Click on FirePath Search link.

selenium_Firepath_search

Step 2 -Add-ons page appears. Click on Add to Firefox button.

selenium_Firepath_add_ons

Step 3 – Wait for FirePath add-ons to be downloaded. Once  downloaded, Click on install now button in software installation pop-up.

selenium_Firepath_install

Step 4 – Restart browser if prompted by clicking on Restart Now. If you do not get any prompt go to next step.

Step 5 – Go to Tools > Web Developer > Firebug > Open Firebug

Step 6 – This will open Firebug Interface. Within the Firebug Interface you will view FirePath tab.

Selenium_Firepath_Console

Step 7 – Select FirePath tab and view Xpath Field.

Leave a Reply

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