Win32-IE-Mechanize - Re: Can't login to site

Posted on Fri Feb 9 18:26:25 2007 by adig in response to 4267 (See the whole thread of 5)
Re: Can't login to site
Thanks Abe. It helped and solved the problem. But I want to ask how... I changed the code to the following:
$ie->get( $url ); $ie->follow_link(); $ie->submit_form( fields => { uid => 'uid', password => 'pass', auth_field => 'field', }, );
My questions are as follow: 1. When I load the page directly at IE, and click on view source, I get that the page has a form. Why do I need to use the follow_link() ? I'm using the same link that I use in IE here ? 2. How did it go to the right frame without putting any params at the follow_link() ? Is it because there is only 1 link / 1 frame at that page ? 3. How did it take the right submit button ? I know that there are 2 buttons at that page: Enter & Cancel ?
Direct Responses: 4311 | Write a response