diff options
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/checkbox/CheckboxFocusClickTest.java | 9 |
1 files changed, 5 insertions, 4 deletions
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)); } } |