Created
August 21, 2009 04:01
-
-
Save avk/171645 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'selenium/rake/tasks' | |
| namespace :selenium do | |
| namespace :server do | |
| desc "start the Selenium RC server" | |
| task :start do | |
| 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 = File.join(RAILS_ROOT + "/vendor/selenium-remote-control/selenium-server.jar") | |
| rc.additional_args << "-singleWindow" | |
| end | |
| end | |
| desc "stop the Selenium RC server" | |
| task :stop do | |
| Selenium::Rake::RemoteControlStopTask.new do |rc| | |
| rc.host = "localhost" | |
| rc.port = 4444 | |
| rc.timeout_in_seconds = 3 * 60 | |
| end | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment