Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Help with Win32::IEAutomation::WinClicker

by mmittiga17 (Scribe)
on Dec 20, 2011 at 02:05 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-24 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found