http://qs1969.pair.com?node_id=944326

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.