Module: Appium::Core::Base::Device::ExecuteDriver

Included in:
Bridge
Defined in:
lib/appium_lib_core/common/device/execute_driver.rb,
sig/lib/appium_lib_core/common/device/execute_driver.rbs

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Instance Method Details

#executeObject

Parameters:

  • command (Symbol)
  • (Hash[untyped, untyped])
  • (Hash[untyped, untyped])

Returns:

  • (Object)


18
# File 'sig/lib/appium_lib_core/common/device/execute_driver.rbs', line 18

def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped

#execute_driver(script: '', type: 'webdriverio', timeout_ms: nil) ⇒ Object

Parameters:

  • script: (::String) (defaults to: '')
  • type: (::String) (defaults to: 'webdriverio')
  • timeout_ms: (Object, nil) (defaults to: nil)

Returns:

  • (Object)


29
30
31
32
33
34
35
36
# File 'lib/appium_lib_core/common/device/execute_driver.rb', line 29

def execute_driver(script: '', type: 'webdriverio', timeout_ms: nil)
  option = { script: script, type: type }

  option[:timeout] = timeout_ms if timeout_ms

  response = execute :execute_driver, {}, option
  Result.new(response)
end