Skip to main content

Sep 21, 2012 - 1 minute read - Links Selenium Simplified Blog

Creating your CSS and XPath locators

I mainly use FirePath to create my CSS and XPATH locators. I also use the built in tools in Opera and Chrome.

I have an out of date and old post over on Use firefinder to help you construct Selenium CSS Selectors. I rarely delete out of date posts, but I don’t use Firefinder any more.

In Firefox use FirePath, this also runs as a Firebug addin and allows you to explore and experiment with CSS and XPath locators.

I still use the FirePath addin, despite other browsers starting to bundle this functionality in their dev tools.

  • I periodically use the inbuilt Chrome search functionality from the “Inspect Element” panel.
  • Opera also has a very good CSS and XPath finder build in to their dev tools, again available from “Inspect Element” dev panel. The Opera in built dev tools are among the best.

I have become so used to Firebug that I only tend to use it when Firefox hogs memory and I bail out for a few days. But since setting Opera as my default browser, that may change.

You will need a Github account to comment. Or you can contact me with your comment.

I reserve the right to delete spam comments e.g. if your comment adds no value and its purpose is simply to create a backlink to another site offering training, or courses, or etc.