Perl Oasis 2011

Testing the Interactive Web: WWW::HtmlUnit Tutorial

By Brock Wilcox (‎awwaiid‎) from
Date: Saturday, 15 January 2011 15:20
Duration: 20 minutes
Target audience: Any
Tags: scrape test tutorial web

You can find more information on the speaker's site:

In this talk, I will teach the audi­ence the basics of using WWW::HtmlUnit (and WWW::HtmlUnit::Sweet) for scrap­ing and test­ing javascript-required web applica­tions. We'll go over in­stal­la­tion, basic usage, and some real-world ex­am­ples. The WWW::HtmlUnit uses the java-based HtmlUnit li­bra­ry, which it­self builds off of a suite of li­bra­ries in­clud­ing Rhino to simulate a web brows­er. Among many other use­ful fea­tures, it can ex­ecute com­plex javascript -- it pas­ses the jQue­ry test suite per­fect­ly, for ex­am­ple. Bring­ing that power to Perl has al­lowed de­velop­ers to go well be­yond what WWW::Mec­han­ize can simulate, while avoid­ing the over­head of a full Selenium setup.

Attended by: Jonathan Hogue, Brock Wilcox (‎awwaiid‎), Jesse Luehrs (‎doy‎), Daniel LeWarne (‎Possum‎), Mike Burns (‎lungching‎),