Hi, >>>>> "alo" == alok <nag.a...@gmail.com> wrote: alo> I am trying to use Win32::IEAutomation module to test one web alo> application which is HTTPS based. alo> I am unable to bypass SSL security warning. alo> Can someone help - here's the code I am using. alo> use Win32::IEAutomation; alo> use Win32::IEAutomation::WinClicker; # this will provide methods to alo> interact with dialog box alo> #Step 1 : Create a instance of IE alo> my $ie = Win32::IEAutomation->new(visible => 1, maximise => 1, alo> warning => 1); alo> #Goto some URL alo> $ie->gotoURL('https://somesite.com', 1); alo> $ie->WaitforDone; # we will wait here for complete loading of alo> navigated site alo> $ie->getLink('linktext:', qr/Continue to this website/i)->Click; alo> sleep 5;
I used your first code and it worked on my Win7 OS, IE Version: 8.0.7600.16385 alo> Also tried - alo> Win32::IEAutomation; this should be use Win32::IEAutomation; alo> use Win32::IEAutomation::WinClicker; # this will provide methods to alo> interact with dialog box alo> #Step 1 : Create a instance of IE alo> my $ie = Win32::IEAutomation->new(visible => 1, maximise => 1, alo> warning => 1); alo> #Goto some URL alo> $ie->gotoURL('https://somesite.com', 1); alo> my $clicker = Win32::IEAutomation::WinClicker->new(); alo> $clicker->push_security_alert_yes(); You might try using this: $clicker->push_security_alert_yes($wait_time); Reason as given by documentation: "...It will push the 'Yes' button of Security Alert dialog box. Provide wait time so that it will wait for Security Alert dialog box to appear. Default value of wait time is 5 seconds (if wait time is not provided). It will timeout after wait time, and execute next line of code.." then follow it with : $ie->WaitforDone; alo> Any help is appreciated. alo> Thanks.