@testim/testim-cli
Version:
Command line interface for running Testing on you CI
18 lines (15 loc) • 370 B
JavaScript
// call must be scoped to the webdriverio client
module.exports = function(requestPath, button) {
var buttonEnum = {
left: 0,
middle: 1,
right: 2
};
if(typeof button !== 'number') {
button = buttonEnum[button || 'left'];
}
return this.requestHandler.create(
requestPath,
{ button: button }
);
};