From: Anna Koskinen Date: Thu, 23 Nov 2017 05:51:20 +0000 (+0200) Subject: Fix AbstractIntegrationTest to use new TestBench API (#10358) X-Git-Tag: 8.3.0.alpha1~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e38ad29499328ddbf995d64612d932832d5bd628;p=vaadin-framework.git Fix AbstractIntegrationTest to use new TestBench API (#10358) --- diff --git a/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java b/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java index 89ca8f382d..21dca1cf57 100644 --- a/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java +++ b/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java @@ -12,8 +12,6 @@ import javax.imageio.ImageIO; import org.junit.After; import org.junit.runner.RunWith; -import org.openqa.selenium.support.ui.ExpectedCondition; -import org.openqa.selenium.support.ui.WebDriverWait; import com.vaadin.testbench.annotations.RunLocally; import com.vaadin.testbench.elements.UIElement; @@ -109,19 +107,6 @@ public abstract class AbstractIntegrationTest extends ParallelTest { } } - /** - * Waits the given number of seconds for the given condition to become true. - * Use e.g. as - * {@link #waitUntil(ExpectedConditions.textToBePresentInElement(by, text))} - * - * @param condition - * the condition to wait for to become true - */ - protected void waitUntil(ExpectedCondition condition, - long timeoutInSeconds) { - new WebDriverWait(driver, timeoutInSeconds).until(condition); - } - /** * Returns the deployment context path with a leading slash. If not provided * through {@code deployment.context.path} system property, will default to