module Appium::Core::Base::Device::ExecuteDriver

def execute_driver(script: '', type: 'webdriverio', timeout_ms: nil)

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