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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://944326]
Approved by GrandFather
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-09-20 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (230 votes). Check out past polls.

    Notices?