forked from enviPath/enviPy
Current Dev State
This commit is contained in:
25
static/js/ketcher2/node_modules/webdriverio/lib/protocol/longPressKeycode.js
generated
vendored
Normal file
25
static/js/ketcher2/node_modules/webdriverio/lib/protocol/longPressKeycode.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
*
|
||||
* Press a particular key code on the device.
|
||||
*
|
||||
* <example>
|
||||
:longPressKeycode.js
|
||||
// press the home button long
|
||||
browser.longPressKeycode(3)
|
||||
* </example>
|
||||
*
|
||||
* @param {String} keycode key code to press
|
||||
* @param {String} metastate meta state to be activated
|
||||
*
|
||||
* @see http://developer.android.com/reference/android/view/KeyEvent.html
|
||||
* @type mobile
|
||||
* @for android
|
||||
*
|
||||
*/
|
||||
|
||||
export default function longPressKeycode (keycode, metastate) {
|
||||
return this.requestHandler.create({
|
||||
path: '/session/:sessionId/appium/device/long_press_keycode',
|
||||
method: 'POST'
|
||||
}, { keycode, metastate })
|
||||
}
|
||||
Reference in New Issue
Block a user