New versions of the Selenium helper

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 http://cakebaker.wordpress.com/2006/03/22/selenium/):

  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 :)

About these ads

5 Comments

  1. Posted May 22, 2006 at 9:26 pm | Permalink

    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

  2. Posted May 23, 2006 at 8:19 am | Permalink

    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.

  3. Posted May 23, 2006 at 12:44 pm | Permalink

    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 thinkingphp.org and it seems to work just great, thx for the tipp ; ).

  4. Posted May 23, 2006 at 1:44 pm | Permalink

    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:

    xpath=id(‘content’)/h1

    and rather wants to have them like this:

    xpath=//*[@id='content']/h1

    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!

    –Felix

  5. Posted January 12, 2008 at 11:57 am | Permalink

    Nice


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: