Search code examples
seleniumxpathui-automationselenium-idefirepath

How to find xpath without firepath into firefox version 57.0


Facing difficulty to find xpath without firepath in new Firefox version 57.0.

In the new Firefox version, firepath is not supported.

Can anyone please suggest a new way for using xpath?


Solution

  • It's not Firefox, but I like to use Google Chrome for this. Press F12, this opens the developer tools. Then click anywhere in the HTML structure and press Ctrl + F or Cmd + F if you're on a Mac.

    In the search bar that appears you can search by XPath, Css selectors or strings. So if you type //div/div/form for example, you can immediately check if the XPath works.

    You can also right click on an element and choose copy > xpath