diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-11-05 13:06:11 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-11-05 13:06:11 +0200 |
commit | 6da674f2dfae2e2bc5de22b89a0b7e7648d52ed7 (patch) | |
tree | 7e127fa65b55dd63b00dd17b6cade053c18df66d /uitest/src/com | |
parent | bd53f3391e2ad56cd587c74c03804c2ce801bd26 (diff) | |
download | vaadin-framework-6da674f2dfae2e2bc5de22b89a0b7e7648d52ed7.tar.gz vaadin-framework-6da674f2dfae2e2bc5de22b89a0b7e7648d52ed7.zip |
Add API for disabling native events for IE in tests
Change-Id: Ifcca52fee1036f5b31ba87c8257b884d04709297
Diffstat (limited to 'uitest/src/com')
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java | 13 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java | 4 |
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"); |