Class Selenium::Server
In: lib/selenium/server.rb
Parent: Object

The class that can manages the server driver classes. This class is originally copied from the BuildMaster project. You can setup your build task to start the server before the tests and shutdown when it is finished

  server = Selenium::Server.new()
  begin
    server.start
    tests.run # run your tests here
  ensure
    server.stop
  end

Methods

driver   new   on_port   open   print_log=   run   start   stop  

Attributes

status  [R]  The status of the server. Values are
  • stopped
  • starting
  • started
  • stopping
  • error
timeout  [R]  The timeout setting for selenium in seconds

Public Class methods

Create a selenium server that can be controlled directly

Public Instance methods

Starts the server, does not return until the server shuts down

Starts the server, returns when the server is up and running

Stops the server, returns when the server is no longer running

[Validate]