in reply to How to make Perl modify and trigger Javascript variable/function

use Win32::OLE through Win32::IEAutomation or Win32::IE::Mechanize to automate InternetExplorer.Application
  • Comment on Re: How to make Perl modify and trigger Javascript variable/function

Replies are listed 'Best First'.
Re^2: How to make Perl modify and trigger Javascript variable/function
by zerocred (Beadle) on Nov 27, 2009 at 20:31 UTC
    I'll taken a look, IEAutomation seems to be winning - found some interesting snippets. Still to figure out how to intercept the js variable setting. Thanks!

      If you can make the site work under FireFox, WWW::Mechanize::FireFox has the ->eval_in_page() method that allows you to run arbitrary Javascript in the context of a web page and transfer the result back to Perl. But it only works in FireFox, not in Internet Explorer.

        Thanks for the suggestion - unfortunately the site doesn't work under Firefox - I even tried Firefox add-on UserAgent switcher to fake it.

        I don't know much about Javascript so I guess a bit of toil!

        I have found things like WWW:Selenium which sounds interesting (but haven't tried yet)