Hi, Many thanks for your help, now I am able to login to Gmail and my another secure website, on which again I was using wrong Form details...
Much appreciate your help on this :)
Now I am trying to go the link which I get after login.. Plz let me know if follow_link(text => 'string') will work on this or do I need to use any other function...
Re^2: Perl Script to login to a secure WebSite
Replies are listed 'Best First'.
After logging to the website, I am able to go the one more link in the next page.
Now I have to select the checkbox which enables few buttons (after selecting the checkbox).
Once button is enabled I need to click one of the button, which opens one form, I need to select one value from the drop down and submit.
Once this completes then I am done with all my steps..
Please suggest on this, here that site uses internally Java Script..
I tried to seclect checkbox, then button and then submit.. Script runs fine without any error but action is not performing... :(
Plz correct me if any wrong in the code..
my $outfile = "out2.htm";
my $url = "https://accounts.google.com/ServiceLogin?service=mail&passi
my $username = 'yourgmailid';
my $password = 'yourpasswrd';
my $mech = WWW::Mechanize->new();
my $output_page = $mech->content();
print OUTFILE "$output_page";
Very thanks for the above script.
After once logged in to the gmail I would like display output like "Log in successful", if log in fails I would like to display "Log in fail";
Please help me on the above condition.