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.dashboard.DashboardProject.java

License:Open Source License

/** Click on '+' button in the 'New Project' tab */
public void clickOnNewProjectButton() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(newProject)).click();
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardProject.java

License:Open Source License

/**
 * Enter Git URL for project in the 'New Project' tab
 *
 * @param url URL for project on git repository
 *///  ww w  .  j ava2s  .  co  m
public void enterGitURL(String url) {
    WebElement input = new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(gitUrlInput));
    input.clear();
    input.sendKeys(url);
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.textToBePresentInElementValue(gitUrlInput, url));
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardProject.java

License:Open Source License

/**
 * Enter ZIP URL for project in the 'New Project' tab
 *
 * @param url URL for zip archive/*w w w.j  a  va  2 s .  c o  m*/
 */
public void enterZipURL(String url) {
    WebElement input = new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(zipUrlInput));
    input.clear();
    input.sendKeys(url);
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.textToBePresentInElementValue(zipUrlInput, url));
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java

License:Open Source License

public void clickOnNewWorkspaceBtn() {
    dashboard.waitNotificationIsClosed();
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(newWorkspaceBtn)).click();
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java

License:Open Source License

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

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java

License:Open Source License

public void clickExportWorkspaceBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(exportWsButton)).click();
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java

License:Open Source License

public void clickOnHideWorkspaceJsonFileBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(hideJsonWsBtn)).click();
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java

License:Open Source License

public void clickIntoWorkspaceJsonContent() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(workspaceJsonContent)).click();
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java

License:Open Source License

public void clickOnImportWorkspaceBtn() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(importWsRadioBtn)).click();
}

From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java

License:Open Source License

public void waitCustomRecipeUrlField() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.visibilityOf(recipeUrlField));
}