CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Win32::IEAUTOMATION - help clicking "ok"



Jun 24, 2010, 10:24 AM

Post #1 of 2 (879 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->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 :)


Jun 25, 2010, 12:44 PM

Post #2 of 2 (850 views)
Re: [l4teral] Win32::IEAUTOMATION - help clicking "ok" [In reply to] Can't Post

*bump - any help with using IE Automation, or if anyone has a better solution for controlled web-browsing, I'm all ears! :)


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives