From e38ad29499328ddbf995d64612d932832d5bd628 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Thu, 23 Nov 2017 07:51:20 +0200 Subject: [PATCH] Fix AbstractIntegrationTest to use new TestBench API (#10358) --- .../integration/AbstractIntegrationTest.java | 15 --------------- 1 file changed, 15 deletions(-) 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 -- 2.39.5