We were earlier using appium 1.22.3 for mobile web automation and operations with JavascriptExecutor used to work fine.
Recently we have switched to appium version 2.6.0 for mobile web automation (chrome) and while using below code, we are getting error :
JavascriptExecutor jsExecutor = (JavascriptExecutor) DriverManager.getDriver();
jsExecutor.executeScript(“arguments[0].click();”, element);
Error : arguments[0].click is not a function
Note : With driver.click() method, we are sometimes facing error like element not clickable at point (x,y) hence we decided to use JavascriptExecutor
Any help would be appreciated. Thank you.