Selenium 2.0 Refcard

Today DZone released my first Refcard: “Selenium 2.0: Using the WebDriver API to Create Robust User Acceptance Tests.” I have been interested in writing a Refcard for a long time but have never pulled the trigger. For whatever reason, I decided to jump on the bandwagon last month. Writing this card was quite a challenge, as it’s difficult to boil down a big topic into only six pages while keeping it useful. Thus far the feedback from the community has been largely positive.

If you’re looking for your next automated testing tool for browser-based user acceptance tests, download the card and let me know what you think!

Advertisement

3 responses to this post.

  1. Hi Matt,

    a few remarks concerning HtmlUnit in the Refcard:

    • HtmlUnit uses Rhino as its JavaScript+DOM
    implementation. No major browser does this, and it is
    disabled by default.

    -> this is not totally correct. HtmlUnit uses a Rhino fork rather than
    Rhino itself and it is just a JavaScript engine, it has nothing to do
    with DOM.

    • If you do enable JavaScript, the HtmlUnit Driver will
    emulate the behavior of Internet Explorer.

    -> in fact JavaScript is not the only feature that depends from the
    simulated browser. HtmlUnit handles differences between browsers in
    other areas too like HTML parsing or http headers. This being said, the
    domain with the main differences is the JavaScript.
    It would probably be good as well to precise which version of IE is used
    per default by HtmlUnitDriver.

    • Although it isn’t recommended, it is possible to configure the
    HtmlUnitDriver to emulate a specific browser

    -> why not recommended?
    In fact the Firefox 3.6 simulation is probably the most advanced.

    • XPath: HtmlUnitDriver Tag/Attribute
    Names Lower-cased

    -> this is wrong: this is case insensitive

    Reply

  2. Hi Matt,

    Great job, i liked the refcard a lot as you have done justice to the six pages of download :)

    Best Regards,
    Aditya Kalra

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.