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;
}
}
- /**
- * 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