From e746334d6444bb16c099f31480919b9020a69bc7 Mon Sep 17 00:00:00 2001 From: Aleksi Hietanen Date: Mon, 22 May 2017 14:55:02 +0300 Subject: Fix CheckboxFocusClickTest on Firefox (#9397) --- .../vaadin/tests/components/checkbox/CheckboxFocusClickTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'uitest') diff --git a/uitest/src/test/java/com/vaadin/tests/components/checkbox/CheckboxFocusClickTest.java b/uitest/src/test/java/com/vaadin/tests/components/checkbox/CheckboxFocusClickTest.java index 882cb442c9..63d54ff372 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/checkbox/CheckboxFocusClickTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/checkbox/CheckboxFocusClickTest.java @@ -15,13 +15,14 @@ */ package com.vaadin.tests.components.checkbox; -import com.vaadin.testbench.By; -import com.vaadin.testbench.elements.CheckBoxElement; -import com.vaadin.tests.tb3.MultiBrowserTest; import org.junit.Assert; import org.junit.Test; import org.openqa.selenium.WebElement; +import com.vaadin.testbench.By; +import com.vaadin.testbench.elements.CheckBoxElement; +import com.vaadin.tests.tb3.MultiBrowserTest; + public class CheckboxFocusClickTest extends MultiBrowserTest { @Test @@ -31,7 +32,7 @@ public class CheckboxFocusClickTest extends MultiBrowserTest { Assert.assertEquals("checked", checkbox.getValue()); WebElement label = checkbox.findElement(By.xpath("label")); - clickElement(label); + label.click(); Assert.assertEquals("1. checkbox focused", getLogRow(0)); } } -- cgit v1.2.3