in reply to Mechanizing Javascript form
I'm quite sure that WWW::Mechanize works under ActiveState Perl. What did you try and how did it fail?
Automating JavaScript is best done by looking at the JavaScript and then programming the same stuff in Perl to recreate what the JavaScript does. A good thing to look at is what the browser finally sends over to the server.
If you're hell-bent on automating a browser, take a look at HTML::Display, which automates IE to display HTML.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Mechanizing Javascript form
by Roy Johnson (Monsignor) on Nov 10, 2003 at 18:36 UTC | |
by Corion (Patriarch) on Nov 10, 2003 at 21:19 UTC |