Aarrgghh!!

Use Selenium? Use XPath Checker.

Just a quick note if you are using Selenium to do your tests, and writing your own, you've probably had to write some XPath expressions. I had to write a particularly hard XPath string and got tired of trying to test my XPath expression in Selenium over and over again.

I did some quick Google searching and discovered a Firefox plug-in named XPath Checker. It works two ways:

  • It allows you to write an XPath expression and see what it returns.
  • It allows you to click on piece of a page and see an XPath expression that would find it

It rocks.


July 1, 2008 Posted by Terrence Ryan at 2:08 PM

ColdFusion, Web Development,



Comments

Sure am glad they made a plug in for Firefox for it because it does rock!!


Posted by: Mr Latty at July 7, 2008 6:39 AM

Thanks for the tip on the X-path checker, it has saved me so much time and most of all frustration. I will keep coming back to check for the great tips. Thanks so much, Abby


Posted by: Abby at July 8, 2008 1:06 PM

New plugin for my firefox :) Thank you Ryan for this issue.


Posted by: ismail yk at July 12, 2008 8:31 PM

I think as good as XPath Checker is XPather Browser, aslo a plugin for Firefox. It gives the entire path from /html to what ever element your using. I'm a Java developer, writing selenium tests for a web application. And I can tell you this: My dream team(tools) is: -Selenium IDE(whom can convert in Java, Ruby); -XPath Checker; -XPather browser; -Firebug.

Paul.


Posted by: Paul Guralivu at July 18, 2008 4:32 AM

I think as good as XPath Checker is XPather Browser, aslo a plugin for Firefox.


Posted by: Free imac at May 17, 2009 6:24 PM

FINALLY. This plugin is great. I'm trying to use Selenium to test a Wicket app. Wicket helpfully makes up its own dynamic markup ids so I'm having to use xpath for EVERYTHING. And I need the absolute path so XPather is perfect. Cheers.


Posted by: Nick at July 27, 2009 6:30 AM

Yes..Xpath checker is great, but sometimes Selenium doesn't recognize some valid XPaths.I don't know if it's because some bug with Remote Control or because I should run RC in other mode. (I'm running it in interactive mode). Any ideas?


Posted by: Willy at September 9, 2009 1:20 PM

In it's most basic use, you can use the Selenium firefox plugin to "record" a test and then play it back. In it's more complex form.


Posted by: oracle training at October 23, 2009 3:13 AM

Posted by Who at September 2, 2010 2:27 PM

Post a comment











Remember personal info?