Class: Seleniumrc::SeleniumServerRunner
- Inherits:
-
Object
- Object
- Seleniumrc::SeleniumServerRunner
- Defined in:
- lib/seleniumrc/selenium_server_runner.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#thread_class ⇒ Object
Returns the value of attribute thread_class.
Instance Method Summary collapse
-
#initialize ⇒ SeleniumServerRunner
constructor
A new instance of SeleniumServerRunner.
- #start ⇒ Object
- #started? ⇒ Boolean
- #stop ⇒ Object
Constructor Details
#initialize ⇒ SeleniumServerRunner
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
#configuration ⇒ Object
Returns the value of attribute configuration.
3 4 5 |
# File 'lib/seleniumrc/selenium_server_runner.rb', line 3 def configuration @configuration end |
#thread_class ⇒ Object
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
#start ⇒ Object
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
20 21 22 |
# File 'lib/seleniumrc/selenium_server_runner.rb', line 20 def started? @started end |
#stop ⇒ Object
15 16 17 18 |
# File 'lib/seleniumrc/selenium_server_runner.rb', line 15 def stop stop_server @started = false end |