Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Help with Win32::IEAutomation::WinClicker

by mmittiga17 (Scribe)
on Dec 20, 2011 at 02:05 UTC ( #944326=perlquestion: print w/replies, xml ) Need Help??

mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I wrote a script to navigate a website after login and click a link that initiates a file download load. However I can not get WinClicker to hit the save button on the "File download" popup that is launched from clicking export. Any help will be appreciated. Thanks

my $clicker = Win32::IEAutomation::WinClicker->new(warnings => 1); $clicker->push_button_save( "File Download", 1 );

Replies are listed 'Best First'.
Re: Help with Win32::IEAutomation::WinClicker
by keszler (Priest) on Dec 20, 2011 at 03:41 UTC

    The documentation I see lists

    push_security_alert_yes($wait) push_confirm_button_ok($title, $wait) push_button_yes($title, $wait) push_confirm_button_cancle($title, $wait)
    as methods for Win32::IEAutomation::WinClicker. Are you sure $clicker->push_button_save( "File Download", 1 ); is correct? All the previous versions of Win32::IEAutomation::WinClicker v0.1 show the same methods; no push_button_save anywhere.

Re: Help with Win32::IEAutomation::WinClicker
by blakew (Monk) on Dec 20, 2011 at 17:37 UTC
    As alternative solutions, with this problem I've had success with Win32::GuiTest for the window clicking and WWW::Mechanize::Firefox with save_url after backing out the HTTP request for the file using a browser extension.

      Thanks! Win32::GuiTest worked.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://944326]
Approved by GrandFather
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2023-02-05 14:41 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (31 votes). Check out past polls.