While testing a webpage using the IE browser driver, I encountered an issue with executing a JavaScript function when clicking on a button. The function is located in a file named "app.js" according to the DOM structure.
private static JavascriptExecutor jsExec;
jsExec.executeScript("myFunction();");
Unfortunately, this code snippet consistently results in an error.
The references within "app.js" indicate that it can be found at: myhtml/app.js
Could you please provide guidance on how to successfully execute this function?
Thank you