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-1.4.2 docs/mobile_command.md
appium_lib_core-1.4.1 docs/mobile_command.md
appium_lib_core-1.4.0 docs/mobile_command.md
appium_lib_core-1.3.8 docs/mobile_command.md
appium_lib_core-1.3.7 docs/mobile_command.md
appium_lib_core-1.3.6 docs/mobile_command.md
appium_lib_core-1.3.5 docs/mobile_command.md
appium_lib_core-1.3.4 docs/mobile_command.md