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.FindText.java

License:Open Source License

/** wait the 'Find' info panel is open */
public void waitFindInfoPanelIsOpen() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(findInfoPanel));
}

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

License:Open Source License

/** click on the find text button on the find info panel */
public void clickFindTextButton() {
    loader.waitOnClosed();/*from w w  w.  jav a 2  s . c o  m*/
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(findTextBtn)).click();
    loader.waitOnClosed();
}

From source file:org.eclipse.che.selenium.pageobject.git.GitAddToIndex.java

License:Open Source License

public void waitFormToOpen() {
    new WebDriverWait(seleniumWebDriver, 10).until(ExpectedConditions.visibilityOf(form));
}

From source file:org.eclipse.che.selenium.pageobject.git.GitAddToIndex.java

License:Open Source License

public void selectUpdateCheckBox() {
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(updateChkbox)).click();
}

From source file:org.eclipse.che.selenium.pageobject.git.GitBranches.java

License:Open Source License

/** wait appearance of the IDE branches form */
public void waitBranchesForm() {
    new WebDriverWait(seleniumWebDriver, 15).until(ExpectedConditions.visibilityOf(mainForm));
}

From source file:org.eclipse.che.selenium.pageobject.git.GitBranches.java

License:Open Source License

/** wait ask dialog form for deleting selected branch */
public void openDelBranchForm() {
    new WebDriverWait(seleniumWebDriver, 3).until(ExpectedConditions.visibilityOf(delBranchForm));
}

From source file:org.eclipse.che.selenium.pageobject.git.GitCommit.java

License:Open Source License

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

From source file:org.eclipse.che.selenium.pageobject.git.GitFetch.java

License:Open Source License

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

From source file:org.eclipse.che.selenium.pageobject.git.GitMerge.java

License:Open Source License

public void waitMergeView() {
    new WebDriverWait(seleniumWebDriver, 7).until(ExpectedConditions.visibilityOf(mergeView));
}

From source file:org.eclipse.che.selenium.pageobject.git.GitMerge.java

License:Open Source License

public void waitMergePanel() {
    new WebDriverWait(seleniumWebDriver, 7).until(ExpectedConditions.visibilityOf(mergeReferencePanel));
}