Change-Id: Ifcca52fee1036f5b31ba87c8257b884d04709297
return true;
}
+ /**
+ * Should the "native events" be enabled for Internet Explorer.
+ * <p>
+ * Native events sometimes cause failure in clicking on buttons/checkboxes
+ * but are possibly needed for some operations.
+ *
+ * @return true, to use "native events", false to use generated Javascript
+ * events
+ */
+ protected boolean useNativeEventsForIE() {
+ return true;
+ }
+
// FIXME: Remove this once TB4 getRemoteControlName works properly
private RemoteWebDriver getRemoteDriver() {
WebDriver d = getDriver();
InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING,
false);
}
+ if (!useNativeEventsForIE()) {
+ desiredCapabilities.setCapability(
+ InternetExplorerDriver.NATIVE_EVENTS, false);
+ }
}
desiredCapabilities.setCapability("project", "Vaadin Framework");