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

License:Open Source License

/** Wait the 'Search and Replace' panel is opened */
public void waitSearchReplacePanel() {
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(searchReplacePanel));
}

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

License:Open Source License

/**
 * Enter text in find input on the 'Search and Replace' panel
 *
 * @param text text for searching/*  w  ww  .  ja  va 2 s .  co  m*/
 */
public void enterTextInFindInput(String text) {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(findInput)).clear();
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(findInput)).sendKeys(text);
}

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

License:Open Source License

/**
 * Enter text in replace input on the 'Search and Replace' panel
 *
 * @param text text for replacing/*from w ww . ja v  a  2s.  c  o  m*/
 */
public void enterTextInReplaceInput(String text) {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(replaceInput)).clear();
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(replaceInput)).sendKeys(text);
}

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

License:Open Source License

/** Click on 'Next' button on the 'Search and Replace' panel */
public void clickOnNextBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(nextBtn)).click();
}

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

License:Open Source License

/** Click on 'Previous' button on the 'Search and Replace' panel */
public void clickOnPreviousBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(previousBtn)).click();
}

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

License:Open Source License

/** Click on 'Aa' button on the 'Search and Replace' panel */
public void clickOnToggleCaseBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(toggleCaseBtn)).click();
}

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

License:Open Source License

/** Click on '\b' button on the 'Search and Replace' panel */
public void clickOnToggleWholeBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(toggleWholeBtn)).click();
}

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

License:Open Source License

/** Click on '/.*\/' button on the 'Search and Replace' panel */
public void clickOnToggleRegularExpressionBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(toggleRegularExpBtn)).click();
}

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

License:Open Source License

/** Click on 'Replace' button on the 'Search and Replace' panel */
public void clickOnReplaceBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(replaceBtn)).click();
}

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

License:Open Source License

/** Click on 'Replace All' button on the 'Search and Replace' panel */
public void clickOnReplaceAllBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(replaceAllBtn)).click();
}