forked from enviPath/enviPy
Current Dev State
This commit is contained in:
28
static/js/ketcher2/node_modules/webdriverio/lib/protocol/deviceKeyEvent.js
generated
vendored
Normal file
28
static/js/ketcher2/node_modules/webdriverio/lib/protocol/deviceKeyEvent.js
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
*
|
||||
* send a key event to the device
|
||||
*
|
||||
* @param {Number} keyValue device specifc key value
|
||||
*
|
||||
* @see https://github.com/appium/appium/blob/master/docs/en/appium-bindings.md#key-event
|
||||
* @type mobile
|
||||
* @for android
|
||||
*
|
||||
*/
|
||||
|
||||
export default function deviceKeyEvent (keycode, metastate) {
|
||||
let data = {
|
||||
keycode: keycode
|
||||
}
|
||||
|
||||
if (metastate) {
|
||||
data.metastate = metastate
|
||||
}
|
||||
|
||||
let requestOptions = {
|
||||
path: '/session/:sessionId/appium/device/keyevent',
|
||||
method: 'POST'
|
||||
}
|
||||
|
||||
return this.requestHandler.create(requestOptions, data)
|
||||
}
|
||||
Reference in New Issue
Block a user