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?
Inspect element is sufficient if you only want to inspect element. I found
Firepath
helpful with testing the locators. Downgrading toFirefox 30 – 54
should be enough. It has nothing to do with Selenium version.Also you can look at Chropath for Chrome
If you visit the
GitHub Page
ofFirePath
, it clearly mentions that :Now if you visit the
Home Page
ofFireBug
, it clearly mentions that :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 or cssSelector of the Search Box WebElement on Google Home Page.
https://www.google.co.in
Within the Developer Tools console, click on the Console tab and within the editor paste the logical unique xpath you have constructed in the following format and hit Enter or Return:
(Alternative to 6) Within the Developer Tools console, click on the Console tab and within the editor paste the logical unique cssSelector you have constructed in the following format and hit Enter or Return:
Example: To find the Search Box on Google Home Page through xpath try :
(Alternative to 8) Example: To find the Search Box on Google Home Page through cssSelector try :
The WebElement must get identified by the xpath and/or cssSelector will be reflected and should be returned as result.
Example : The following will be returned back on the Console :
Try this step in your case and check.
ChroPath extension for xpath and best replacement for FirePath. It has no dependency on other extension like firepath was dependent on firebug. Just add ChroPath to Chrome browser and use it.
Download link- ChroPath
Features-