Method: Appium::Android::Command#shell

Defined in:
lib/appium_lib/android/common/command/command.rb

#shell(command, arguments) ⇒ Object

Conduct an adb shell script on Appium server. Require ‘–relaxed-security` arguments when run Appium server as server side arguments.

Examples:


shell "echo", "list" #=> "list"

Parameters:

  • command (String)

    Command for “adb shell”

  • arguments (Array)

    Arguments for the adb command



28
29
30
31
32
# File 'lib/appium_lib/android/common/command/command.rb', line 28

def shell(command, arguments)
  args = { command: command, args: arguments }
  # --relaxed-security
  @driver.execute_script 'mobile: shell', args
end