上面的网站有点意思
webrat
有一些
- attach_file
- check
- choose
- click_area
- click_button
- click_link
- fill_in
- select
- select_date
- select_datetime
- select_time
- set_hidden_field
- submit_form
- uncheck
可是如果是drag and drop,从哪可以知道selenium有一个什么api可以支持呢? 近来在写selenium的测试
其中的 selenium.wait_for_text /(Overall Score)|(historical yslow chart)/ 比较奇怪,它的timeout的时间很短,需要重新订制
Webrat.configure do |config|
config.application_environment = :selenium
config.selenium_browser_startup_timeout = 180
config.mode = :selenium
config.open_error_files = true # Set to true if you want error pages to pop up in the browser
end