Table of Contents

Using Raakt in HTMLUnit

This page is a work in progress. Currently just a collection of notes on how I think Raakt can be called from HTMLUnit tests. I am waiting for a new version of Hpricot for Jruby with a fix for ticket 68.

Installing stuff

Download and set up HTMLUnit

Follow the instructions at the HTMLUnit website. The binary distribution contains all dependencies for HTMLUnit. Make sure HTMLUnit is working correctly before continuing.

Install jruby 0.9.8 or later

Follow the instructions on the JRuby website.

Install hpricot and Raakt for JRuby

Navigate to your jruby installation directory's bin folder and do:

jruby gem install hpricot --source=

Install the Raakt gem for jruby:

jruby gem install raakt