Hi,
I am speaking in context to ur solution to the 1st question.
I too encountered a similar problem.
Like if we navigate from Goolge to Gmail via the link given on Google. A popup called "Security Information" will surface.
Now with this code "$ie->getButton('name:', "button1")->Click(1)" will become:
$ie->getButton('name:', "Yes")->Click(1)/$ie->getButton('caption:', "Yes")->Click(1);
but it is not working.
Can u guide me?
Thanks for any help.
Regards
Kash | [reply] |
Have you had any luck with this. I'm having similiar problems. sometimes it works sometimes it does not.
Below is my test: the first confirm works about 80% time, sometimes it does not. The second confirm never works. It never gets to made it hear4.
sub test{
my $ie = Win32::IEAutomation->new();
$ie->gotoURL("www.samisite.com/test-csb2nf/id108.htm",1); # second argument says that don't wait for complete document loading and allow code to go to next line.
print "made it here1\n";
my $clicker = Win32::IEAutomation::WinClicker->new();
print "made it here2\n";
$clicker->push_confirm_button_ok("Windows Internet Explorer");
print "made it here3\n";
$ie->WaitforDone;
$ie->getButton('value:', "ORDINARY BUTTON")->Click(1);
print "made it here4\n";
my $clicker = Win32::IEAutomation::WinClicker->new();
print "made it here5\n";
$clicker->push_confirm_button_ok("Windows Internet Explorer");
print "made it here6\n";
#$ie->WaitforDone; # we will wait here for complete loading of navigated site
print "made it here7\n";
$ie->closeIE();
}
| [reply] |