Object
Wraps the remote server jar
# File lib/selenium/server.rb, line 13 def initialize(jar, opts = {}) raise Errno::ENOENT, jar unless File.exist?(jar) @jar = jar @host = "127.0.0.1" @port = opts.fetch(:port, 4444) @timeout = opts.fetch(:timeout, 30) @background = opts.fetch(:background, false) @log = opts[:log] @additional_args = [] end
# File lib/selenium/server.rb, line 55 def <<(arg) if arg.kind_of?(Array) @additional_args += arg else @additional_args << arg.to_s end end
# File lib/selenium/server.rb, line 26 def start process.start poll_for_service unless @background begin sleep 1 while process.alive? rescue Errno::ECHILD # no longer alive end end end
Generated with the Darkfish Rdoc Generator 2.