in reply to Re: Need help logging into my bank with WWW::Mechanize::Firefox
in thread Need help logging into my bank with WWW::Mechanize::Firefox
Thanks for your reply. I tried your with_fields suggestion and got this message:
2 elements found for form with fields usr_password usr_name at mon2.pl line 32.
By trial and error I found that those are forms number 3 and 4 but when I try both form numbers I get the same result as before when I was going with the form name of logonform.
>>Are you watching to make sure that the script is actually filling out the form?
Yes, I can see that it is.
>>UPDATE: Are you sure the name of that form is correct on that route? When I inspect with FireBug, I see the form name as 'homeLogonForm' ..not 'logonform'.
That explains why calling "with_fields" finds 2 forms that match the fields. I found logonform by code inspection but I switched to homeLogonForm and am getting the same result. If I was using an incorrect name or incorrect fields for the name, Mechanize::Firefox reports an error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need help logging into my bank with WWW::Mechanize::Firefox
by johnblack (Initiate) on Dec 09, 2014 at 16:18 UTC | |
by Corion (Patriarch) on Dec 09, 2014 at 16:37 UTC | |
by johnblack (Initiate) on Dec 09, 2014 at 16:59 UTC | |
by Corion (Patriarch) on Dec 09, 2014 at 17:16 UTC | |
by johnblack (Initiate) on Dec 09, 2014 at 20:55 UTC | |
by Corion (Patriarch) on Dec 10, 2014 at 07:56 UTC |