develooper Front page | perl.beginners | Postings from April 2012

Re: Need help with Win32::IEAutomation

Thread Previous
From:
Leo Susanto
Date:
April 21, 2012 12:57
Subject:
Re: Need help with Win32::IEAutomation
Message ID:
CADpbghO9BGGp5dME0cXPa_+PNzs+PMAVHA0J8ehu7n8oksXDWQ@mail.gmail.com
Can you use Win32::GuiTest to find the SSL security warning windows
(since it's a windows alert) and handle it?

On Thu, Apr 19, 2012 at 10:45 AM, alok <nag.alok@gmail.com> wrote:
> I am trying to use Win32::IEAutomation module to test one web
> application which is HTTPS based.
>
> I am unable to bypass SSL security warning.
>
> Can someone help - here's the code I am using.
> use Win32::IEAutomation;
> use Win32::IEAutomation::WinClicker; # this will provide methods to
> interact with dialog box
>
> #Step 1 : Create a instance of IE
> my $ie = Win32::IEAutomation->new(visible => 1, maximise  => 1,
> warning => 1);
>
> #Goto some URL
> $ie->gotoURL('https://somesite.com', 1);
> $ie->WaitforDone; # we will wait here for complete loading of
> navigated site
> $ie->getLink('linktext:', qr/Continue to this website/i)->Click;
> sleep 5;
>
>
> Also tried -
> Win32::IEAutomation;
> use Win32::IEAutomation::WinClicker; # this will provide methods to
> interact with dialog box
>
> #Step 1 : Create a instance of IE
> my $ie = Win32::IEAutomation->new(visible => 1, maximise  => 1,
> warning => 1);
>
> #Goto some URL
> $ie->gotoURL('https://somesite.com', 1);
> my $clicker = Win32::IEAutomation::WinClicker->new();
> $clicker->push_security_alert_yes();
>
> Any help is appreciated.
> Thanks.
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About