xgamma has asked for the wisdom of the Perl Monks concerning the following question:
I'm having a bit of trouble with my first foray into this module. Here's my sample code:
use Win32::IE::Mechanize; my $ie = Win32::IE::Mechanize->new( visible => 1 ); my $url = "https://somesecuresite"; my $formName = "loginForm"; $ie->get( $url ); $ie->form_name( $formName ); $ie->set_fields( userName => 'username', password => 'password' );
As expected, the browser opens up and goes to the specified URL. However, the text doesn't get entered into the fields. I get this error: Can't call method "find_input" on an undefined value at C:/Perl/site/lib/Win32/IE/Mechanize.pm line
I'm also not sure how to click the login button afterwards because it's an image.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::IE::Mechanize trouble
by pc88mxer (Vicar) on Jun 19, 2008 at 19:14 UTC | |
by xgamma (Novice) on Jun 19, 2008 at 19:38 UTC | |
by ikegami (Patriarch) on Jun 19, 2008 at 19:42 UTC | |
by xgamma (Novice) on Jun 19, 2008 at 19:54 UTC | |
by ikegami (Patriarch) on Jun 19, 2008 at 21:54 UTC | |
| |
by ikegami (Patriarch) on Jun 19, 2008 at 19:50 UTC | |
by pc88mxer (Vicar) on Jun 19, 2008 at 19:55 UTC | |
|
Re: Win32::IE::Mechanize trouble
by ikegami (Patriarch) on Jun 19, 2008 at 19:12 UTC | |
by xgamma (Novice) on Jun 19, 2008 at 19:25 UTC | |
by ikegami (Patriarch) on Jun 19, 2008 at 19:39 UTC | |
by xgamma (Novice) on Jun 19, 2008 at 19:42 UTC |