Class Selenium::Rake::RemoteControlStopTask
In: lib/selenium/rake/remote_control_stop_task.rb
Parent: Object

Methods

define   new  

Attributes

host  [RW] 
port  [RW] 
timeout_in_seconds  [RW] 

Public Class methods

[Source]

    # File lib/selenium/rake/remote_control_stop_task.rb, line 7
 7:       def initialize(name = 'selenium:rc:stop''selenium:rc:stop')
 8:         @host = "localhost"
 9:         @name = name
10:         @port = 4444
11:         @timeout_in_seconds = 5
12:         yield self if block_given?
13:         define
14:       end

Public Instance methods

[Source]

    # File lib/selenium/rake/remote_control_stop_task.rb, line 16
16:       def define
17:         desc "Stop Selenium Remote Control running"
18:         task @name do
19:           puts "Stopping Selenium Remote Control running at #{@host}:#{@port}..."
20:           remote_control = Selenium::RemoteControl::RemoteControl.new(@host, @port, @timeout_in_seconds)
21:           remote_control.stop
22:           puts "Stopped Selenium Remote Control running at #{@host}:#{@port}"
23:         end
24:       end

[Validate]