how to inspect element in selenium3.6 as firebug is not an option any more for FF 56?


I am trying to find a way to use firebug for FF. Unfortunately it’s not supported for selenium 3.6. What can be done if I have to locate the elements, will “Inspect” element will be sufficient?

If I get down to less version of selenium, will that help?

  • You must to post comments

If you visit the GitHub Page of FirePath, it clearly mentions that :

FirePath is a Firebug extension that adds a development tool to edit, inspect and generate XPath expressions and CSS3 Selectors

Now if you visit the Home Page of FireBug, it clearly mentions that :

The Firebug extension isn't being developed or maintained any longer. We invite you to use the Firefox DevTools instead, which ship with

So the direction is clear that We have to use DevTools [F12] which comes integrated with the Mozilla Firefox 56.x + releases onwards.

Example Usage :

Now, let us assume we have to identify the xpath of the Search Box WebElement on Google Home Page.

  1. Open Mozilla Firefox 56.x browser and browse to the url
  2. Press F12 to open the DevTools
  3. Within the DevTools section, on the Inspector tab, use the Inspector to identify the Search Box WebElement.
  4. Copy the xpath (absolute) and paste it in a text pad.
  5. Construct a logical unique xpath.
  6. Within the DevTools section, on the Console tab, within JS sub menu, paste the logical unique xpath you have constructed in the following format and hit Enter/Return:

  7. Example: To find the Search Box on Google Home Page try :

  8. The WebElement identified by the xpath will be reflected.

  9. Example : The following will be returned back on the Console :

    Array [ input#lst-ib.gsfi ]
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.