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!








Posted by Marc Guillemot on November 30, 2010 at 7:31 am
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
Posted by mattstine on December 3, 2010 at 3:00 pm
@Marc: Thanks for the feedback. I’ll review these and try to have them incorporated into the next revision of the card!
Posted by Aditya Kalra on December 3, 2010 at 11:31 am
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