From 567b9cb5e6a73939244a4a749452035d0d327b55 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Mon, 6 Feb 2017 12:36:14 +0200 Subject: [PATCH] Add screenshots and workaround for Firefox 45 (#8450) --- tests/screenshots | 2 +- .../src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/screenshots b/tests/screenshots index 55f5d6844f..6c55a431f5 160000 --- a/tests/screenshots +++ b/tests/screenshots @@ -1 +1 @@ -Subproject commit 55f5d6844fa6a5fc755e05db9e7f1f5d47615215 +Subproject commit 6c55a431f54574a8df254f8ac7003cf498c91d27 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 023d32d6c9..69762141d8 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 @@ -995,6 +995,9 @@ public abstract class AbstractTB3Test extends ParallelTest { WebElement cb = checkbox.findElement(By.xpath("input")); if (BrowserUtil.isChrome(getDesiredCapabilities())) { testBenchElement(cb).click(0, 0); + } else if (BrowserUtil.isFirefox(getDesiredCapabilities())) { + // Firefox workaround + getCommandExecutor().executeScript("arguments[0].click()", cb); } else { cb.click(); } -- 2.39.5