Class: Appium::Core::DirectConnections

Inherits:
Object
  • Object
show all
Defined in:
lib/appium_lib_core/driver.rb

Overview

DirectConnections has capabilities of directConnect

Constant Summary collapse

KEYS =
{
  protocol: 'directConnectProtocol',
  host: 'directConnectHost',
  port: 'directConnectPort',
  path: 'directConnectPath'
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capabilities) ⇒ DirectConnections

Returns a new instance of DirectConnections


86
87
88
89
90
91
# File 'lib/appium_lib_core/driver.rb', line 86

def initialize(capabilities)
  @protocol = capabilities[KEYS[:protocol]]
  @host = capabilities[KEYS[:host]]
  @port = capabilities[KEYS[:port]]
  @path = capabilities[KEYS[:path]]
end

Instance Attribute Details

#hoststring (readonly)

Returns a host name such as io.appium

Returns:

  • (string)

    Returns a host name such as io.appium


78
79
80
# File 'lib/appium_lib_core/driver.rb', line 78

def host
  @host
end

#pathstring (readonly)

Returns a path for webdriver such as /hub/wd

Returns:

  • (string)

    Returns a path for webdriver such as /hub/wd


84
85
86
# File 'lib/appium_lib_core/driver.rb', line 84

def path
  @path
end

#portinteger (readonly)

Returns a port number such as 443

Returns:

  • (integer)

    Returns a port number such as 443


81
82
83
# File 'lib/appium_lib_core/driver.rb', line 81

def port
  @port
end

#protocolstring (readonly)

Returns a protocol such as http/https

Returns:

  • (string)

    Returns a protocol such as http/https


75
76
77
# File 'lib/appium_lib_core/driver.rb', line 75

def protocol
  @protocol
end