Skip to content

Instantly share code, notes, and snippets.

@avk
Created August 21, 2009 04:01
Show Gist options
  • Select an option

  • Save avk/171645 to your computer and use it in GitHub Desktop.

Select an option

Save avk/171645 to your computer and use it in GitHub Desktop.
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