UNPKG

appium

Version:
74 lines (66 loc) 2.1 kB
--- name: Long Press Key Code short_description: Press and hold a particular key code on the device example_usage: java: | driver.longPressKeyCode(AndroidKeyCode.HOME); python: | self.driver.long_press_keycode(10); javascript_wdio: | driver.longPressKeyCode(10); ruby: | @driver.long_press_keycode(10) php: | // TODO PHP sample csharp: | // TODO C# sample client_docs: java: "http://appium.github.io/java-client/io/appium/java_client/PressesKeyCode.html#longPressKeyCode-int-" python: "https://github.com/appium/python-client/blob/master/appium/webdriver/webdriver.py#L431" javascript_wdio: "http://webdriver.io/api/mobile/longPressKeycode.html" ruby: "http://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Device#long_press_keycode-instance_method" php: "https://github.com/appium/php-client/" # TODO PHP documentation link csharp: "https://github.com/appium/appium-dotnet-driver/" # TODO Dotnet documentation link # Driver support by platform driver_support: ios: xcuitest: false uiautomation: false android: uiautomator2: true uiautomator: true mac: mac: false # TODO Confirm this that mouse movements windows: windows: false # TODO Confirm this client_support: java: true python: true ruby: true php: true csharp: true javascript_wd: true javascript_wdio: true # Information about the HTTP endpoints endpoint: url: /session/:session_id/appium/device/long_press_keycode method: POST url_parameters: - name: session_id description: ID of the session to route the command to json_parameters: - name: keycode type: number description: Key code pressed on the device. See [Key Event](http://developer.android.com/reference/android/view/KeyEvent.html). - name: metastate type: number description: Metastate for the keypress # Links to specifications. Should link to at least one specification specifications: jsonwp: https://github.com/appium/appium-base-driver/blob/master/lib/mjsonwp/routes.js#L331