Example usage for org.openqa.selenium.support.ui ExpectedConditions visibilityOf

List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOf

Introduction

In this page you can find the example usage for org.openqa.selenium.support.ui ExpectedConditions visibilityOf.

Prototype

public static ExpectedCondition<WebElement> visibilityOf(final WebElement element) 

Source Link

Document

An expectation for checking that an element, known to be present on the DOM of a page, is visible.

Usage

From source file:org.eclipse.che.selenium.pageobject.subversion.SvnStatusBar.java

License:Open Source License

public void waitSvnStatusBarInfoPanelOpened() {
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(statusBarInfoPanel));
}

From source file:org.eclipse.che.selenium.pageobject.subversion.SvnUpdateToRevision.java

License:Open Source License

public void waitMainFormIsOpen() {
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(mainFormUpdateRevision));
}

From source file:org.eclipse.che.selenium.pageobject.subversion.SvnViewLog.java

License:Open Source License

public void waitSvnLogFormOpened() {
    new WebDriverWait(seleniumWebDriver, ELEMENT_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(viewLogForm));
}

From source file:org.eclipse.che.selenium.pageobject.subversion.SvnViewLog.java

License:Open Source License

public String getLatestRevision() {
    new WebDriverWait(seleniumWebDriver, ELEMENT_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(maxRevisionSpan));
    return maxRevisionSpan.getText();
}

From source file:org.eclipse.che.selenium.pageobject.UploadFile.java

License:Open Source License

public void waitUploadFormOpen() {
    new WebDriverWait(seleniumWebDriver, 5).until(ExpectedConditions.visibilityOf(fileUploadForm));
}

From source file:org.eclipse.che.selenium.pageobject.UploadFolderFromZip.java

License:Open Source License

public void waitUploadFormIsOpen() {
    new WebDriverWait(seleniumWebDriver, 5).until(ExpectedConditions.visibilityOf(folderZipUploadForm));
}

From source file:org.eclipse.che.selenium.pageobject.WarningDialog.java

License:Open Source License

/** wait ok btn, click it and wait closing of the form */
public void clickOkBtn() {
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC).until(ExpectedConditions.visibilityOf(okBtn));
    okBtn.click();//w  w w .j a  v  a  2s  . co  m
    waitWaitClosingWarnDialogWindow();
}

From source file:org.eclipse.che.selenium.pageobject.Wizard.java

License:Open Source License

/** wait wizard form */
public void waitCreateProjectWizardForm() {
    new WebDriverWait(seleniumWebDriver, 30).until(ExpectedConditions.visibilityOf(createProjectWizardForm));
}

From source file:org.eclipse.che.selenium.pageobject.Wizard.java

License:Open Source License

/** wait project name on wizard form */
public void waitProjectNameOnWizard() {
    new WebDriverWait(seleniumWebDriver, 120).until(ExpectedConditions.visibilityOf(projectNameInput));
}

From source file:org.eclipse.che.selenium.pageobject.Wizard.java

License:Open Source License

/** type project name on wizard */
public void typeProjectNameOnWizard(String projectName) {
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(projectNameInput)).clear();
    waitProjectNameOnWizard();/*from   w  w  w . j  a  v  a  2 s  .co m*/
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(projectNameInput)).sendKeys(projectName);
    loader.waitOnClosed();
}