[java] Adding a system property to enable requireWindowFocus option in IE
@@ -66,6 +66,9 @@ static void addShutdownAction(Runnable action) {
if (Boolean.getBoolean("selenium.ie.disable_native_events")) {
options.disableNativeEvents();
}
+ if (Boolean.getBoolean("selenium.ie.require_window_focus")) {
+ options.requireWindowFocus();
+ }
return options;
})
.put(Browser.htmlunit, DesiredCapabilities::htmlUnit)
