class Appium::Driver
def mobile method, *args
-
(Object)
-
Parameters:
-
args
(*args
) -- the args to pass to the method -
method
(String, Symbol
) -- the method to execute
def mobile method, *args raise 'Method must not be nil' if method.nil? raise 'Method must have .to_s' unless method.respond_to? :to_s @driver.execute_script "mobile: #{method.to_s}", *args end