Sha256: cbc903dcebdf8e2da3811691bde5267c52347622e2c351143fc78cad25e72661

Contents?: true

Size: 901 Bytes

Versions: 28

Compression:

Stored size: 901 Bytes

Contents

# Mobile Command

Appium has `mobile:` command.
We can invoke them via `execute_script` command with `mobile:` arguments.

- Android:
    - https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android
- iOS:
    - https://github.com/appium/appium/tree/master/docs/en/writing-running-appium/ios
    

```ruby
# Android shell : https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/android-shell.md
args = { command: 'echo', args: 'list' }
@driver.execute_script 'mobile: shell', args # Run `adb shell echo 'list'`

# iOS performance : https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/ios/ios-xctest-performance.md
args = { timeout: 60 * 1000, profileName: 'Activity Monitor' }
@driver.execute_script 'mobile: startPerfRecord', args

@driver.execute_script 'mobile: stopPerfRecord', { profileName: 'Activity Monitor' }
```

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
appium_lib_core-2.0.5 docs/mobile_command.md
appium_lib_core-2.0.4 docs/mobile_command.md
appium_lib_core-2.0.3 docs/mobile_command.md
appium_lib_core-2.0.2 docs/mobile_command.md
appium_lib_core-2.0.1 docs/mobile_command.md
appium_lib_core-2.0.0 docs/mobile_command.md
appium_lib_core-1.9.2 docs/mobile_command.md
appium_lib_core-1.9.1 docs/mobile_command.md
appium_lib_core-1.9.0 docs/mobile_command.md
appium_lib_core-1.8.4 docs/mobile_command.md
appium_lib_core-1.8.3 docs/mobile_command.md
appium_lib_core-1.8.2 docs/mobile_command.md
appium_lib_core-1.8.1 docs/mobile_command.md
appium_lib_core-1.8.0 docs/mobile_command.md
appium_lib_core-1.7.2 docs/mobile_command.md
appium_lib_core-1.7.1 docs/mobile_command.md
appium_lib_core-1.7.0 docs/mobile_command.md
appium_lib_core-1.6.0 docs/mobile_command.md
appium_lib_core-1.5.1 docs/mobile_command.md
appium_lib_core-1.5.0 docs/mobile_command.md