www-mechanize

How can I recover from a timeout with Perl's WWW::Mechanize?

I'm using WWW::Nechanize to read a particular webpage in a loop that runs every few seconds. Occasionally, the 'GET' times out and the script stops running. How can I recover from one such timeout such that it continues the loop and tries the 'GET' the next time around? ...

How do I use WWW::Mechanize to check a radio box?

I am writing a Perl script to test certain parts of my webpage as I make changes to it. Using the WWW::Mechanize class, how can I select a radio box and submit a form? ...

Why doesn't my WWW::Mechanize submit a PayPal form work?

Nothing I've tried can get my code to submit correctly. Can anyone else figure this out? #!/usr/bin/perl use WWW::Mechanize; my $user = '[email protected]'; my $pass = 'hackswipe'; # Test account; don't worry my $browser = WWW::Mechanize->new(); $browser->get("https://www.paypal.com/"); $browser->form_with_fields("login_e...

Why does WWW::mechanize complain about 'Unknown submit_form parameter "form_id"'?

I'm using the submit_form function in WWW::Mechanize as follows: eval{ my $me = $mechanize->submit_form( form_id => 'signin', fields => { login => 'abc', password => 'def'} ); $me->is_success or die $me->status_line; }; Although this throws the error of Unknown submit_form parameter "form_id" it still re...

Perl MozRepl cleanup problem

I'm coding a web crawler and I've been using WWW::Mechanize::Firefox to navigate some pages (for the others I use WWW::Mechanize) which keep loading content after the page loaded and I've never had an issue with that. Yesterday I added DBI and DBD::mysql to the script, adding queries to export data to a database (this works perfectly), ...