palkia has asked for the wisdom of the Perl Monks concerning the following question:

hello

I've tried to use WWW-Mechanize to extract information from a webpage,
that (probably) had JavaScript it in which (for some reason) the WWW-Mechanize module doesn't support.
this is the question I posted about hat before.

my question is: do you know (from experience !) of a good module that can do pretty much everything that WWW-Mechanize can,
that can also handle JavaScript ?
(note: I know little about html and JavaScript)

thx
  • Comment on Alternative 2 WWW-Mechanize with JavaScript ?

Replies are listed 'Best First'.
Re: Alternative 2 WWW-Mechanize with JavaScript ?
by marto (Cardinal) on Apr 18, 2011 at 23:02 UTC
Re: Alternative 2 WWW-Mechanize with JavaScript ?
by Anonymous Monk on Apr 19, 2011 at 00:51 UTC
Re: Alternative 2 WWW-Mechanize with JavaScript ?
by believer (Sexton) on Apr 19, 2011 at 08:54 UTC
    Maybe Selenium is the way to go for you. (cpan).

    Nowadays there is also WWW::Scripter, with a JavaScript plugin. But I have no experience with that one.

Re: Alternative 2 WWW-Mechanize with JavaScript ?
by bart (Canon) on Apr 19, 2011 at 12:34 UTC
    Win32::IE::Mechanize is an alternative to WWW::Mechanize but which uses the Internet Explorer engine (via OLE) under the hood. Thus: it'll behave just like the browser, because it is the browser. So, yeah, it'll only work on Windows.