summaryrefslogtreecommitdiffstats
path: root/uitest-common
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@gmail.com>2017-02-10 13:42:08 +0200
committerGitHub <noreply@github.com>2017-02-10 13:42:08 +0200
commit4445eae397818196ba1818470c73ccf34e2033ce (patch)
tree110a9c2d787eb13045d5a4cf8cf3929357396254 /uitest-common
parent222003731a35affe551a12b23193e987f316dc96 (diff)
downloadvaadin-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.java9
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"));