diff --git a/lib/actions/click.js b/lib/actions/click.js index abe9be828..1d0baad8b 100644 --- a/lib/actions/click.js +++ b/lib/actions/click.js @@ -49,11 +49,11 @@ async function simulateInputEvents(options) { } async function click(selector, options = {}, ...args) { - let allOptions = options; + let allOptions = args; if (options instanceof RelativeSearchElement) { allOptions = [options].concat(args); } - const clickOptions = setClickOptions(allOptions); + const clickOptions = setClickOptions(options); clickOptions.noOfClicks = clickOptions.clickCount || 1; if (isSelector(selector) || isString(selector) || isElement(selector)) {