Class: Selenium::WebDriver::IE::Server Private

Inherits:
Object
  • Object
show all
Extended by:
FFI::Library
Defined in:
lib/selenium/webdriver/ie/server.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Method Summary collapse

Constructor Details

#initializeServer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Server.

API:

  • private



26
27
28
# File 'lib/selenium/webdriver/ie/server.rb', line 26

def initialize
  @handle = nil
end

Instance Method Details

#portObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



51
52
53
# File 'lib/selenium/webdriver/ie/server.rb', line 51

def port
  self.class.current_port
end

#running?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

API:

  • private



47
48
49
# File 'lib/selenium/webdriver/ie/server.rb', line 47

def running?
  self.class.is_running
end

#start(start_port) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Starts the server, communicating on the specified port, if it is not already running

API:

  • private



34
35
36
37
38
39
# File 'lib/selenium/webdriver/ie/server.rb', line 34

def start(start_port)
  return port if running?
  @handle = self.class.start_server(start_port)

  start_port
end

#stopObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



41
42
43
44
45
# File 'lib/selenium/webdriver/ie/server.rb', line 41

def stop
  return if session_count != 0 || @handle.nil?
  self.class.stop_server @handle
  @handle = nil
end