Xpath testing using Firebug

If you use Selenium, or some other web testing tool that can use XPath for element selection, Firebug provides a handy tool for testing.

In the console, it adds a new function $x. It takes an xpath as a parameter, and will return the item (or items) that match the xpath. You can then hover over the returned result to verify that the item you’re looking for is the one selected.

It's only fair to share...
Share on FacebookGoogle+Tweet about this on TwitterShare on LinkedIn

Leave a Reply