in reply to Creating browser-like mechs

If actually running a browser is an option, you can try Luke Closs' excellent WWW::Selenium (and Test::WWW::Selenium). Selenium is a great test automation tool - we use it to test all of our UIs.