Class: Seleniumrc::SeleniumServerRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/seleniumrc/selenium_server_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSeleniumServerRunner

Returns a new instance of SeleniumServerRunner.



4
5
6
# File 'lib/seleniumrc/selenium_server_runner.rb', line 4

def initialize
  @started = false
end

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



3
4
5
# File 'lib/seleniumrc/selenium_server_runner.rb', line 3

def configuration
  @configuration
end

#thread_classObject

Returns the value of attribute thread_class.



3
4
5
# File 'lib/seleniumrc/selenium_server_runner.rb', line 3

def thread_class
  @thread_class
end

Instance Method Details

#startObject



8
9
10
11
12
13
# File 'lib/seleniumrc/selenium_server_runner.rb', line 8

def start
  @thread_class.start do
    start_server
  end
  @started = true
end

#started?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/seleniumrc/selenium_server_runner.rb', line 20

def started?
  @started
end

#stopObject



15
16
17
18
# File 'lib/seleniumrc/selenium_server_runner.rb', line 15

def stop
  stop_server
  @started = false
end