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.


89
90
91
92
93
94
# File 'lib/appium_lib_core/driver.rb', line 89

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


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

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


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

def path
  @path
end

#portinteger (readonly)

Returns a port number such as 443

Returns:

  • (integer)

    Returns a port number such as 443


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

def port
  @port
end

#protocolstring (readonly)

Returns a protocol such as http/https

Returns:

  • (string)

    Returns a protocol such as http/https


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

def protocol
  @protocol
end