forked from enviPath/enviPy
Current Dev State
This commit is contained in:
23
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchLongClick.js
generated
vendored
Normal file
23
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchLongClick.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
*
|
||||
* Long press on the touch screen using finger motion events. Depcrecated! Please use `touchPerform` instead.
|
||||
*
|
||||
* @param {String} id ID of the element to long press on
|
||||
*
|
||||
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchlongclick
|
||||
* @type protocol
|
||||
* @for android
|
||||
*
|
||||
*/
|
||||
|
||||
import { ProtocolError } from '../utils/ErrorHandler'
|
||||
|
||||
export default function touchLongClick (id) {
|
||||
if (typeof id !== 'string' && typeof id !== 'number') {
|
||||
throw new ProtocolError('number or type of arguments don\'t agree with touchLongClick protocol command')
|
||||
}
|
||||
|
||||
return this.requestHandler.create('/session/:sessionId/touch/longclick', {
|
||||
element: id.toString()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user