2011-07-01 4 views

답변

0

유일한 방법은 TAB을 보내는 것입니다. 및 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 the 'funny looking bar on the 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 to save 
w = RAutomation::Window.new(:title => /Save As/) 

#Direction that you going to 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 
와 예

관련 문제