How does the registry entry HKEY_LOCAL_MACHINE\…\FEATURE_BFCACHE for InternetExplorerDriver solves the Internet Explorer 11 issue?

You saw it right. As per the documentation in the Required Configuration section of InternetExplorerDriver it is clearly mentioned: For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, … Read more

“OsProcess checkForError : CreateProcess error=193, %1 is not a valid Win32 application” while starting Internet Explorer through Java and Selenium

This error message… org.openqa.selenium.os.OsProcess checkForError SEVERE: org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program “C:\Users\emorales\Documents\MicrosoftWebDriver.exe” (in directory “.”): CreateProcess error=193, %1 is not a valid Win32 application) …implies that the underlying OS was unable to initiate/spawn a new WebBrowsering session i.e. Internet Explorer Browser session. As per your code trial you … Read more

Selenium InternetExplorerDriver doesn’t get focus on the window

Seems you have opted to add all the InternetExplorerDriver related capabilities. Browser Focus The challenge is that IE itself appears to not fully respect the Windows messages we send to the IE browser window (WM_MOUSEDOWN and WM_MOUSEUP) if the window doesn’t have the focus. Specifically, the element being clicked on will receive a focus window … Read more

How to ignore zoom setting

No, while working with InternetExplorerDriver you shouldn’t ignore the browser zoom settings. As per the Official Documentation of InternetExplorerDriver the Required Configuration mentions the following about Browser Zoom Level The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates. As the browser zoom … Read more

How to ignore protected Mode Settings for Internet Explorer using setCapability() through Selenium and Java?

It seems you were almost there. You need to use the method merge() from MutableCapabilities Class to merge the DesiredCapabilities type of object into InternetExplorerOptions type object and initiate the WebDriver and WebClient instance by passing the InternetExplorerOptions object as follows : DesiredCapabilities cap = DesiredCapabilities.internetExplorer(); cap.setCapability(“nativeEvents”, false); cap.setCapability(“unexpectedAlertBehaviour”, “accept”); cap.setCapability(“ignoreProtectedModeSettings”, true); cap.setCapability(“disable-popup-blocking”, true); cap.setCapability(“enablePersistentHover”, … Read more

Internet Explorer Protective mode setting and Zoom levels

While working with Selenium 3.x, IEDriverServer 3.x and Internet Explorer you can’t ignore Zoom Levels and Protective Mode settings. If you look into the Required Configuration of Internet Explorer Driver the following points are clearly mentioned : Protected Mode On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the … Read more