public class CriticalNotificationsTest extends MultiBrowserThemeTest {
+ @Override
+ protected boolean useNativeEventsForIE11() {
+ return false;
+ }
+
@Test
public void internalError() throws Exception {
testCriticalNotification("Internal error");
return true;
}
+ /**
+ * Should the "native events" be enabled for Internet Explorer 11.
+ * <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 useNativeEventsForIE11() {
+ return true;
+ }
+
// FIXME: Remove this once TB4 getRemoteControlName works properly
private RemoteWebDriver getRemoteDriver() {
WebDriver d = getDriver();
InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING,
false);
}
+ if (BrowserUtil.isIE(desiredCapabilities, 11)) {
+ // Only for IE 11 for now, can be expanded to other versions if
+ // they have the same problems
+ if (!useNativeEventsForIE11()) {
+ desiredCapabilities.setCapability(
+ InternetExplorerDriver.NATIVE_EVENTS, false);
+ }
+ }
}
desiredCapabilities.setCapability("project", "Vaadin Framework");