`
lihbobo
  • 浏览: 64882 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Selenium总结

阅读更多

一些资料的网址:

1. http://seleniumhq.org/download/

2. http://www.iteye.com/topic/107276

--------------------------------------------------------

selenium-RC

启动Remote server

命令行:java -jar selenium-server.jar

脚本启动:Ruby Rake命令

rakefile

    require 'selenium/rake/tasks'

    Selenium::Rake::RemoteControlStartTask.new do |rc|
      rc.port = 4444
      rc.timeout_in_seconds = 3 * 60
      rc.background = true
      rc.wait_until_up_and_running = true
      rc.jar_file = "E:/selenium/selenium-remote-control-1.0.1/selenium-server-1.0.1/selenium-server.jar"
      rc.additional_args << "-singleWindow"
    end

    Selenium::Rake::RemoteControlStopTask.new do |rc|
      rc.host = "localhost"
      rc.port = 4444
      rc.timeout_in_seconds = 3 * 60
    end

启动:
Rake selenium:rc:start

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics