perlknight has asked for the wisdom of the Perl Monks concerning the following question:
All,
I am trying to automate upload of pics to "http://www1.snapfish.com/welcomenphu". But I am having issue with javascript. First cut at automating the login with web mechanize:
The next page, if I login successfully will have my photo album dir. However, this is not the case; I dump out the output in html format and used firefox to view it. It prompts me that the account already exists and asked if I want to create another account or click the login button. When I click on the login button, it brings me to the page where my album dir is located. I am thinking it's a javascript issue. Any idea? Thanks.use WWW::Mechanize; #use HTML::TokenParser; my $agent = WWW::Mechanize->new; $agent->get("http://www1.snapfish.com/welcomenphu"); $agent->form("form1"); $agent->field("emailaddress","me@mykingdom"); $agent->field("password","123"); $agent->click(); print "$agent->{content}";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: web mechanize issue with javascript...
by dragonchild (Archbishop) on May 01, 2006 at 03:43 UTC | |
by bart (Canon) on May 01, 2006 at 08:06 UTC | |
Re: web mechanize issue with javascript...
by perrin (Chancellor) on May 01, 2006 at 05:21 UTC | |
Re: web mechanize issue with javascript...
by crashtest (Curate) on May 01, 2006 at 05:00 UTC | |
Re: web mechanize issue with javascript...
by Anonymous Monk on May 01, 2006 at 03:52 UTC | |
Re: web mechanize issue with javascript...
by teabag (Pilgrim) on May 03, 2006 at 09:20 UTC |
Back to
Seekers of Perl Wisdom