We have automation project we need to click menu items we use this below code
((JavascriptExecutor) test.getDriver()).executeScript("mCLICK(arguments[0]);", substr);
its is working well in chrome browser we want migrate to edge . we are running the same code in micro soft Edge browser it's giving the below error
Exception class:org.openqa.selenium.JavascriptException the reason is:org.openqa.selenium.JavascriptException: javascript error: Function is not a constructor.
Pls advise