]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix AbstractIntegrationTest to use new TestBench API (#10358)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Thu, 23 Nov 2017 05:51:20 +0000 (07:51 +0200)
committerAleksi Hietanen <aleksi@vaadin.com>
Thu, 23 Nov 2017 05:51:20 +0000 (07:51 +0200)
test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java

index 89ca8f382dde6968cdf5967c98867d00ba2c599c..21dca1cf5711b1794943f6197cd19ba5c88cad42 100644 (file)
@@ -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 <T> void waitUntil(ExpectedCondition<T> 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