Have a look at Selenium. It's "by definition" a website testing tool, but can actually be used to automate all kind of magic with modern websites. And there are Perl bindings for it.
holli
You can lead your users to water, but alas, you cannot drown them.