diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-02-10 13:42:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 13:42:08 +0200 |
commit | 4445eae397818196ba1818470c73ccf34e2033ce (patch) | |
tree | 110a9c2d787eb13045d5a4cf8cf3929357396254 /uitest-common | |
parent | 222003731a35affe551a12b23193e987f316dc96 (diff) | |
download | vaadin-framework-4445eae397818196ba1818470c73ccf34e2033ce.tar.gz vaadin-framework-4445eae397818196ba1818470c73ccf34e2033ce.zip |
Fix Firefox 45 tests (click issues, screenshots) (#8533)
Diffstat (limited to 'uitest-common')
-rw-r--r-- | uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java index 69762141d8..6a82492da5 100644 --- a/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java +++ b/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java @@ -1003,6 +1003,15 @@ public abstract class AbstractTB3Test extends ParallelTest { } } + protected void clickElement(WebElement element) { + if (BrowserUtil.isFirefox(getDesiredCapabilities())) { + // Workaround for Selenium/TB and Firefox 45 issue + ((TestBenchElement) (element)).clickHiddenElement(); + } else { + element.click(); + } + } + protected boolean isLoadingIndicatorVisible() { WebElement loadingIndicator = findElement( By.className("v-loading-indicator")); |