in reply to Re: Handling Save Dialog Box
in thread Handling Save Dialog Box
This is a sample code of what I am attempting.
After I click 'Download Now', a dialog box pops-up asking me the location where I need to save the file (.exe in the above example). Could you please tell me if I can give the location also through script itself so as to eliminate user interaction..me::HiRes qw(sleep); use Test::WWW::Selenium; use Test::More "no_plan"; use Test::Exception; my $sel = Test::WWW::Selenium->new( host => "localhost", port => 4444, browser => "*chrome", browser_url => "http://download.co +m/" ); $sel->open_ok("/2000-2001_4-0.html"); $sel->click_ok("link=AVG Anti-Virus Free Edition"); $sel->wait_for_page_to_load_ok("30000"); $sel->click_ok("link=Download Now"); $sel->wait_for_page_to_load_ok("30000");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Handling Save Dialog Box
by Anonymous Monk on Aug 19, 2008 at 11:18 UTC | |
Re^3: Handling Save Dialog Box
by roboticus (Chancellor) on Aug 19, 2008 at 12:28 UTC |
In Section
Seekers of Perl Wisdom