
l4teral
User
Jun 24, 2010, 10:24 AM
Post #1 of 2
(611 views)
|
|
Win32::IEAUTOMATION - help clicking "ok"
|
Can't Post
|
|
Hi everyone. I'm having trouble clicking "ok" on a javascript alert box that comes up, while using Win32::IEAutomation. Here's a mockup of what i'm trying to do:
use Win32::IEAutomation; use Win32::IEAutomation::WinClicker; use Term::ReadKey; my $ie = Win32::IEAutomation->new( visible => 1, maximize => 1); $ie->gotoURL('https://www.somerandomwebsite.com'); $ie->getLink('linktext:', "Login")->Click; $ie->getLink('linktext:', "Buy Item")->Click; my $clicker = Win32::IEAutomation::WinClicker->new(); $title = "Message from webpage"; $clicker->push_confirm_button_ok($title, 5); (again, this is just mockup code) ....I can log in fine, and click around buttons to navigate just fine. I cannot seem to get it to click "OK" on the confirmation alert. It appears to be a standard javascript popup, so what gives? Any help would be greatly appreciated :)
|