`

怎么知道selenium都有什么奇怪的api呢

UP 
阅读更多

http://rdoc.info

上面的网站有点意思

 

webrat

 

有一些

  1. attach_file
  2. check
  3. choose
  4. click_area
  5. click_button
  6. click_link
  7. fill_in
  8. select
  9. select_date
  10. select_datetime
  11. select_time
  12. set_hidden_field
  13. submit_form
  14. 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
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics