TA的每日心情 | 擦汗 2015-6-16 10:28 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]测试小兵
|
ie.image(:src=>/C:\Users\lenovo\Desktop\图片\1.jpg/).click/doclick
ie.file_dialog(:index=>1/2).set_file(file_path_download,true)
more:
require "watir-webdriver/extensions/alerts"
JAVASCRIPT ALERTS
browser.alert do
browser.button(:value => 'Alert').click
end #=> 'the alert message'
JAVASCRIPT CONFIRMS
browser.confirm(true) do
browser.button(:value => 'Confirm').click
end #=> 'the confirm message'
JAVASCRIPT PROMPT
browser.prompt('hello') do
browser.button(:value => 'Prompt').click
end #=> { :message => 'foo', :default_value => 'bar' }
|
|