browser automation - How do I use Watir to download a file to a specific location in IE9 -
in older versions of ie, there popup window. in ie9 it's funny looking bar on bottom. had tried works yet?
the way sending tabs.
for example watir , rautomation
ww = watir::ie.attach(:url, /1.1.1.127/) #click on download link ww.link(:text, /download_link/).click #click on 'save as' in 'funny looking bar on bottom' wrauto = rautomation::window.new(:title => ww.title) wrauto.send_keys("{tab}") wrauto.send_keys("{tab}") wrauto.send_keys("{down}") wrauto.send_keys("{down}") wrauto.send_keys("{enter}") #popup window save w = rautomation::window.new(:title => /save as/) #direction going save w.text_field(:class => "edit", :index => 0).set path_direction w.button(:value => "&save").click rautomation::window.new(:title => /complete/).button(:value => "close").click
Comments
Post a Comment