Question Details

Browse

Automated Testing Tool Comparison: Watir vs Selenium vs Sahi

By Sean Crandell - Sep. 24, 2009

I am currently looking for resources and input that can help me evaluate an automated testing solution. Watir, Selenium and Sahi seem to be the popular open source options and I would really appreciate if you can share your experiences and preferences, and any other resources that could help me understand the true differences between these.

Thanks,

Sean


Answers

Add Answer
  1. By dp on Oct. 03, 2009

    Hi Sean Crandell,


    I have used Selenium but switched to Sahi. Some of the reasons for the switch are listed below:


    1. Sahi has a good record/play back utility

    2. Sahi is easy to learn. It uses JavaScript as the scripting language. We found it easier to equip testers with JavaScript than Java

    3. If you prefer Java over JavaScript, then there is a Java client driver available for Sahi

    4. All in one solution: Record, Play back, Debug, Trouble shoot, Log management etc can be done from within Sahi controller. Only feature that is lacking is an integrated editor. But we can configure Eclipse for that.

    5. Very good development community. Frequent releases and an active forum


    Read the forum and testimonials from the following link

    http://sahi.co.in/forums/


    If you wish to know more about our experience using Sahi, feel free to write to me


    Cheers

    dp


    0 Votes
  2. By Sang Lei on Oct. 08, 2009

    @dp - not to dog Sahi which is a solid tool but I personally prefer Watir for a variety of reasons. I've put together a short list of Pros and Cons for each of the 3 tools below:


    Watir


    Pros:

    - It’s a Ruby library

    - Multi browser (& OS) support

    - Has a rich API

    - Has a ‘Simple’ class (for non-tech users)

    - Watij & Watin (Java & .NET)


    Cons:

    - Have to learn Ruby (unless you choose Watij or Watin)

    - Every browser requires a different library


    Selenium


    Pros:

    - Multi browser, OS & language support

    - Install server-side or as FF add-on

    - Has its own IDE

    - Record and playback tests


    Cons:

    - Have to learn a vendorscript => Selenese (Unless you write tests in another language which it supports. Then you just have to use the API reference which is straightforward.)


    Sahi


    Pros:

    - Multi browser support

    - Has its own IDE

    - Record and playback tests


    Cons:

    - Confusing interface

    - Least developed/smallest community


    Watir would be my first choice. It is more stable than Selenium which tends to have a lot of timing problems. Watir, on the other hand, automatically waits for the page to finish loading, and can detect when it's finished loading. Whereas with Selenium, you have to use the pause command (or Thread.sleep() if you use it in Java).


    0 Votes
Share your knowledge