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

Need help with Win32::IEAutomation

Thread Next
From:
alok
Date:
April 21, 2012 10:49
Subject:
Need help with Win32::IEAutomation
Message ID:
8d9a1cac-b3c7-4acd-9944-8feab45425e4@h4g2000pbe.googlegroups.com
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.


Thread Next


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