ttran18 has asked for the wisdom of the Perl Monks concerning the following question:
I have a webpage that requires a login upon loading. After entering your credentials, you are taken to a page where there is a search box I want to fill out, as the search box is filled out, there are suggestions that start showing up, you'll have to pick from the dropdown list (it's an input box, I'm guessing javascript is populating a list you can choose from). I want the result of the search box.
In short:
Right now I just use the WWW::Mechanize module and have the login part done. I do not know how to access the next page where I can enter data into a search field. I was thinking I could do something with $results.
Please advise.my $mech = WWW::Mechanize->new(); $mech->get('http://loginpage/Account/LogOn'); my $result = $mech->submit_form( form_number => '1', fields => { 'UserName' => '$username', 'Password' => "$pw", }, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Navigating multiple layers webpage
by choroba (Cardinal) on Sep 04, 2015 at 23:34 UTC | |
|
Re: Navigating multiple layers webpage
by ww (Archbishop) on Sep 04, 2015 at 21:44 UTC | |
by ttran18 (Initiate) on Sep 04, 2015 at 22:52 UTC | |
|
Re: Navigating multiple layers webpage
by Anonymous Monk on Sep 04, 2015 at 23:35 UTC | |
|
Re: Navigating multiple layers webpage
by locked_user sundialsvc4 (Abbot) on Sep 05, 2015 at 16:04 UTC | |
by ttran18 (Initiate) on Sep 20, 2015 at 03:28 UTC |