Recently, one of my colleagues encountered an issue in Internet Explorer during the automation using the latest selenium (3.141.59). Issue related to interacting web objects in IE. Driver instantiation was successful but failed to do actions in the web objects. Later, found a solution to solve this issue with the help of setting different capabilities especially ignoreProtectedModeSettings as true. Following latest IE driver initiation logic which solved the above issue,
InternetExplorerOptions ieCapabilities = new InternetExplorerOptions();
InternetExplorerDriverService service = new InternetExplorerDriverService.Builder()
.usingDriverExecutable(new File(“path to your IEDriverServer.exe”))
driver = new InternetExplorerDriver(service, ieCapabilities);
Please try to use the above code snippet from your end if you are facing the same kind of issue.
make it perfect!
Leave a Reply