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.