in reply to Testing for websites?
I've not used it myself, but I suspect that WWW::Selenium might be what you are after.
HTH, Darren