UNPKG

webdriverio-workflo

Version:

This is a customized version of webdriverio for use with workflo framework.

23 lines (19 loc) 555 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var BUTTON_ENUM = { left: 0, middle: 1, right: 2 /** * call must be scoped to the webdriverio client */ };var handleMouseButtonProtocol = function handleMouseButtonProtocol(requestPath, button) { if (typeof button !== 'number') { button = BUTTON_ENUM[button || 'left']; } return this.requestHandler.create(requestPath, { button: button }); }; exports.default = handleMouseButtonProtocol; module.exports = exports['default'];