We're experiencing some inconsistent behavior in Internet Explorer when launching a browser window as well as handling pop-ups, likely due to the configurations/settings of IE our workstations (which we are unable to change due to policy).
Please add the following Internet Explorer Capabilities to Selenium Helper to help overcome these issues
For launching a browser successfully, we need to have the following capabilities otherwise the it fails entirely.
capability.setCapabilitiy(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true)
capability.setCapability("ignoreProtectedModeSettings", true);
For handling the pop-up modal, the problem we are currently experiencing is that IE sometimes dismisses the pop-up immediately and throws an exception, but other times it works without any issues.
We are hoping one or all of the following will help make the pop-handling more consistent.
capability.setCapability("unexpectedAlertBehaviour", "ignore");
capability.setCapability("ie.ensureCleanSession", true)
capability.setCapability("ie.handlesAlerts", true)
We're experiencing some inconsistent behavior in Internet Explorer when launching a browser window as well as handling pop-ups, likely due to the configurations/settings of IE our workstations (which we are unable to change due to policy).
Please add the following Internet Explorer Capabilities to Selenium Helper to help overcome these issues
For launching a browser successfully, we need to have the following capabilities otherwise the it fails entirely.
capability.setCapabilitiy(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true)
capability.setCapability("ignoreProtectedModeSettings", true);
For handling the pop-up modal, the problem we are currently experiencing is that IE sometimes dismisses the pop-up immediately and throws an exception, but other times it works without any issues.
We are hoping one or all of the following will help make the pop-handling more consistent.
capability.setCapability("unexpectedAlertBehaviour", "ignore");
capability.setCapability("ie.ensureCleanSession", true)
capability.setCapability("ie.handlesAlerts", true)