forked from enviPath/enviPy
Current Dev State
This commit is contained in:
21
static/js/ketcher2/node_modules/webdriverio/lib/commands/middleClick.js
generated
vendored
Executable file
21
static/js/ketcher2/node_modules/webdriverio/lib/commands/middleClick.js
generated
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
*
|
||||
* Apply middle click on an element. If selector is not provided, click on the last
|
||||
* moved-to location.
|
||||
*
|
||||
* @alias browser.middleClick
|
||||
* @param {String} selector element to click on
|
||||
* @param {Number} xoffset X offset to move to, relative to the top-left corner of the element.
|
||||
* @param {Number} yoffset Y offset to move to, relative to the top-left corner of the element.
|
||||
* @uses protocol/element, protocol/buttonPress
|
||||
* @type action
|
||||
*
|
||||
*/
|
||||
|
||||
import handleMouseButtonCommand from '../helpers/handleMouseButtonCommand'
|
||||
|
||||
let middleClick = function (selector, xoffset, yoffset) {
|
||||
return handleMouseButtonCommand.call(this, selector, 'middle', xoffset, yoffset)
|
||||
}
|
||||
|
||||
export default middleClick
|
||||
Reference in New Issue
Block a user