List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOf
public static ExpectedCondition<WebElement> visibilityOf(final WebElement element)
From source file:applicationdriverlayer.pageobjects.squash.booking.CourtAndTimeSlotChooserPage.java
License:Apache License
@Override protected void waitForLoadToComplete() { new WebDriverWait(driver, explicitWaitTimeoutSeconds) .until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.className("booking-table"))); new WebDriverWait(driver, explicitWaitTimeoutSeconds).until(ExpectedConditions.visibilityOf(dateDropdown)); }
From source file:applicationdriverlayer.pageobjects.squash.booking.CourtCancellationPage.java
License:Apache License
@Override protected void waitForLoadToComplete() { new WebDriverWait(driver, explicitWaitTimeoutSeconds) .until(ExpectedConditions.visibilityOfElementLocated(By.className("cancellation-form"))); new WebDriverWait(driver, explicitWaitTimeoutSeconds) .until(ExpectedConditions.visibilityOf(submitCancellationButton)); }
From source file:be.rubus.web.testing.AbstractWidget.java
License:Apache License
protected void waitUntilVisibilityOf(WebElement element) { new WebDriverWait(driver, 5).until(ExpectedConditions.visibilityOf(element)); }
From source file:be.rubus.web.testing.AbstractWidget.java
License:Apache License
protected void waitUntilVisibilityOf(By byId) { new WebDriverWait(driver, 5).until(ExpectedConditions.visibilityOf(driver.findElement(byId))); }
From source file:be.rubus.web.testing.AbstractWidget.java
License:Apache License
protected void waitUntilHiddenOf(WebElement checkElement) { new WebDriverWait(driver, 5).until(ExpectedConditions.not(ExpectedConditions.visibilityOf(checkElement))); }
From source file:br.com.esign.logistics.test.selenium.page.HomePage.java
License:Open Source License
private void waitForElement(WebElement element) { WebDriverWait driverWait = new WebDriverWait(driver, 20); driverWait.until(ExpectedConditions.visibilityOf(element)); driverWait.until(ExpectedConditions.elementToBeClickable(element)); }
From source file:br.ufmg.dcc.saotome.beholder.selenium.ui.SeleniumComponent.java
License:Apache License
@Override public void loadByXPath(final String value) { this.locator = new Locator(Locator.LocatorType.XPATH, value); if (this.isDisplayed) { WebDriverWait wait = new WebDriverWait(getSeleniumWebDriver(), TIMEOUT); wait.until(ExpectedConditions.visibilityOf(getSeleniumWebDriver().findElement(By.xpath(value)))); setXPath(value);/*w w w . ja va2 s .c om*/ setElement(getSeleniumWebDriver().findElement(By.xpath(value))); } }
From source file:ca.nrc.cadc.web.selenium.AbstractTestWebPage.java
License:Open Source License
protected void waitForElementVisible(final WebElement element) throws Exception { assert (waitUntil(ExpectedConditions.visibilityOf(element)) != null); }
From source file:com.chtr.tmoauto.webui.CommonFunctions.java
License:Open Source License
@Override public void waitForElementVisible(WebElement locator, int timeoutInSeconds) throws ElementNotVisibleException { WebElement e = null;// w ww . j a v a 2 s . c o m log.debug("Wait for Element Visible should time out in " + timeoutInSeconds); e = (new WebDriverWait(webDriver, timeoutInSeconds)).until(ExpectedConditions.visibilityOf(locator)); log.debug("end wait for Element Visible"); if (e != null) { return; } else { throw new ElementNotVisibleException(locator.getTagName() + " did not become visible."); } }
From source file:com.cisco.dbds.utils.selenium.SeleniumUtilities.java
License:Open Source License
/** * waits for the given webelement./*from ww w .j av a 2 s .com*/ * * @param element * the element */ public static void waitForElement(WebElement element) { WebDriverWait wait = new WebDriverWait(getDriver(), Integer.parseInt(System.getProperty("explicit.wait"))); wait.until(ExpectedConditions.visibilityOf(element)); }