Class | Selenium::Rake::ServerTask |
In: |
lib/selenium/rake/server_task.rb
|
Parent: | Object |
Defines rake tasks for starting, stopping and restarting the Selenium server.
Usage:
require 'selenium/rake/server_task' Selenium::Rake::ServerTask.new do |t| t.jar = "/path/to/selenium-server-standalone.jar" t.port = 4444 t.opts = %w[-some options] end
Alternatively, you can have the task download a specific version of the server:
Selenium::Rake::ServerTask.new(:server) do |t| t.version = '2.6.0' end
or the latest version
Selenium::Rake::ServerTask.new(:server) do |t| t.version = :latest end
Tasks defined:
rake selenium:server:start rake selenium:server:stop rake selenium:server:restart
background | -> | background? |
background | [RW] | Whether we should detach from the server process. Default: true |
jar | [RW] | Path to the selenium server jar |
log | [RW] |
Configure logging. Pass a log file path or a boolean. Default: true
true - log to stdout/stderr false - no logging String - log to the specified file |
opts | [RW] | Add additional options passed to the server jar. |
port | [RW] | Port to use for the server. Default: 4444 |
timeout | [RW] | Timeout in seconds for the server to start/stop. Default: 30 |
version | [RW] | Specify the version of the server jar to download |