We can utilize the following tools to find element properties in Browser.
Firebug(Only Firefox)
Firepath(Only Firefox)
FireFinder(Only Firefox)
Web Inspector
Fire-ie-selenium(Only IE)
A firefox addon , which provides facilitates like debug,edit,monitor -CSS, HTML on our application.
We have explained about its installation in Pre-requisites to selenium.
Usage:–
Launch Firebug from the icon or Right click on Webpage -> Inspect Element with Firebug
![]() |
Firbug Icon on MenuBar of Firefox |
![]() |
Launch firebug |
Select the pointer button to inspect the element and check the corresponding properties.
![]() |
Click on Pointer to inspect element |
In case interested on more reading please help Yourself at what is firebug?
FirePath is a Firebug extension that adds a development tool to edit, inspect and generate XPath expressions and CSS3 Selectors.
Open the above link in firefox and click on add to firefox
![]() |
FirePath |
Click on Install now warning pop up and Restart the Firefox browser.
![]() |
Install now warning message |
Launch:-
It will be launched with Firebug itself as explained above.
Select the Firepath option and inspect element and check the xpath value .
![]() |
Firepath XPath generation |
We can select the CSS option to inspect and fetch its value
![]() |
Select CSS using Firepath |
FireFinder:-
It is a great tool to highlight the objects, we would be using it to verify that the properties we selected for CSS/X-path(Locators) we have selected for object identification are these pointing to the correct web element. It is available only in Firefox browser.
Download link
Web Inspector (Developers Tool):-
Shortcut: – F12
1.Chrome View
We can activate the web inspector in any of the above browsers by right-clicking on any element in the page.
Path:– Right click on any element of browser ->Inspect Element.
![]() |
Google Chrome Inspect element |
Usage:-
Window will open up (Check the bottom of the browser) ->click on the search icon to inspect the HTML structure of any element. One’s inspector is active and as we move our mouse around the page, the element under our mouse is highlighted with a dotted border and an annotation displays its HTML tag.
![]() |
Chrome Inspect Element |
Example:-
Now with the help of “Find” in Selenium IDE we can verify the object
2.IE View
Pretty old version IE-8 😛 , we believe in old is gold era.
![]() |
IE-8 Find Element |
3.Firefox View
![]() |
Firefox inspect element |
Fire-ie-selenium:-
It is applicable only to IE browser.
![]() |
Fire-ie-Selenium |
Why this tool?
Using Internet inspector, we cannot get xpath value.
Download Link
Step1:-
This tool is an XLSM file that is an extension for an Excel macro-enabled workbook. Double click to open fire-ie-selenium excel enabled file.
Step2:–
Incase security warning comes “Enable” it from options.
![]() |
Macro Excel |
Step3:–
Click on Proceed Button
![]() |
Proceed Pop Up Window |
Step4:–
Fill URL value and click on load. Hover over the object to identify the properties.
![]() |
Fire-ie-selenium UI |
Step5:–
Click on Insert Details -> Enter the name by which we want the entry to be made in the Excel.
![]() |
Giving name to object |
![]() |
Final Object in Excel with Properties |
2 replies on “Object spy in Selenium”
I am using fire-ie-selenium to identify objects, but when I load the page I get Run time error "91". Could you please help me in resolving the issue?
I am also getting 91 VBA error…pls help me