aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java13
-rw-r--r--uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java4
2 files changed, 17 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
index c5bdffb7a6..2190507ce7 100644
--- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -904,6 +904,19 @@ public abstract class AbstractTB3Test extends ParallelTest {
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();
diff --git a/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java b/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java
index 23ead80fce..d1af903cee 100644
--- a/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java
+++ b/uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java
@@ -96,6 +96,10 @@ public abstract class MultiBrowserTest extends PrivateTB3Configuration {
InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING,
false);
}
+ if (!useNativeEventsForIE()) {
+ desiredCapabilities.setCapability(
+ InternetExplorerDriver.NATIVE_EVENTS, false);
+ }
}
desiredCapabilities.setCapability("project", "Vaadin Framework");