I am running tests for iPhone safari on browser stack. But click command is not working for iPhone safari on browser stack Selector seems to find an element correctly, but click does nothing and no error,no action ,just silently not executing click.
Same test running perfectly with android device. Is there any issue from browser stack?
I have checked similar thinks in protractor and that has been resolved with JSclick
await browser.executeScript('arguments[0].click();', ele.getWebElement());
I was trying same thing in webdriverIO but getting error:Argument of type 'Element' is not assignable to parameter of type '(string | number | boolean | object)[]'. Type 'Element' is missing the following properties from type '(string | number | boolean | object)[]': length, pop, push, concat, and 28 more.ts(2345) const countryDropDown: WebdriverIO.Element
await browser.executeScript("arguments[0].click();",ele);
Is there any workaround for ele.getWebElement() in WebdriverIO? or any other bettor solution?