While using the selenium IEwebdriver, I have found that the webdriver Alert class methods are not functioning properly. This seems to be a specific issue with the IE browser, as it works well in chrome and firefox.
Are there any workarounds available to handle JavaScript alerts using IEWebdriver?
I have also attempted to use the javascriptexecutor method as shown below:
((JavascriptExecutor)driver).executeScript("window.alert = function(msg){return true;};");
((JavascriptExecutor)driver).executeScript("window.prompt = function(msg) { return true; }");
((JavascriptExecutor)driver).executeScript("window.confirm = function(msg) { return true; }");
Unfortunately, this did not solve the issue. Any assistance would be greatly appreciated.