New versions of the Selenium helper

Published on and tagged with cakephp  selenium  testing

There are two new versions of the Selenium helper available.

Version 0.2 is a bug fix release. It was created by Felix Geisendörfer, and fixes a XPath problem with Internet Explorer. Thanks Felix!

Version 0.3 supports the new release of Selenium (version 0.7.0). A lot of new functions have been added (such functions are marked with “@since 0.7” in the source code of the helper). Especially the testing of Ajax functionality has become easier with all the new waitFor functions.

If you update to the new version of Selenium, please be aware that the functions store() and pause() have been removed!

The update process is simple (if you are new to Selenium, see also

  1. Download Selenium
  2. Copy the content of the core folder in the zip file to app/webroot/selenium
  3. Replace the helper
  4. Execute your tests

Happy testing :)

4 comments baked

  • Felix Geisendörfer

    This new Selenium release seems awesome on paper, I’ll test it as soon as I get a chance to.

    It also seems like the 3.0 version of the Helper has a lot more features then the old one!

    But it seems like you’ve not merged my xpath fixes (or let’s say IE hacks) for 2.0 in it. Is there a specific reason for that or would it be fine if I release a 4.0 and put them back in?

    Anyway, thx a lot! Felix

  • cakebaker

    Well, the reason why your fixes are not in the new helper is that I don’t know if it is still an issue with Selenium 0.7. But it is fine if you release a new version if the fixes are still needed.

  • Felix Geisendörfer

    cakebaker: Hm, I’ll test that. I’m not sure how xpath are handled. But I think they get proccessed by the browsers themselfs and the problem was not with Selenium but rather with IE. I’ll see ; ).

    Btw. I finally integrated Akismet over at and it seems to work just great, thx for the tipp ; ).

  • Felix Geisendörfer

    Ok I’ve tested the new Selenium version together with your new helper and it works great. All I had to do was to remove pause() commands for ajax and replace the next assertText with waitForText – sweet ; ).

    Anyway, IE still doesn’t know how to handle XPath’s that look like this:


    and rather wants to have them like this:


    So I ported my fix for this to the new version and updated the package with it. This time it’s just adding 2 lines to the __getRow() function instead of modifying tons of other functions ; ).

    Again, thanks for doing this great Selenium helper, it’s just the most useful tool for web testing out there ; ), thx for sharing!


© daniel hofstetter. Licensed under a Creative Commons License