I need to write a Perl script to scrape a website. The website can only be scraped with JavaScript, and the user is on Windows.
I got some way with Win32::IE::Mech
Have a look at Win32::Watir. It's a newer module and explicitly supports IE 6, 7 and 8.
WWW::Scripter and its ::Plugin::Javascript can probably help you.
I don't see any mention of WWW::Mechanize, so I'll bring it up just for completeness. Selenium is also becoming very popular and can be used in a lot of testing scenarios.
WWW::Selenium.
You'll need to download the Selenium Remote Control and have it running in the background for the module to work.
It may not be a good option if your page load times are unpredictable.