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

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

Introduction

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

Prototype

public static ExpectedCondition<Boolean> invisibilityOfElementLocated(final By locator) 

Source Link

Document

An expectation for checking that an element is either invisible or not present on the DOM.

Usage

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

License:Open Source License

/** wait closing ask dialog form for deleting selected branch */
public void closeDelBranch() {
    new WebDriverWait(seleniumWebDriver, 3)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.DELBRANCH_FORM)));
}

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

License:Open Source License

public void waitMainFormCommitIsClosed() {
    new WebDriverWait(seleniumWebDriver, 5)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.MAIN_FORM_COMMIT)));
}

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

License:Open Source License

public void waitFormToClose() {
    new WebDriverWait(seleniumWebDriver, 5)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.FETCH_FORM)));
}

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

License:Open Source License

public void waitMergeExpandRemoteBranchIconIsNotPresent() {
    new WebDriverWait(seleniumWebDriver, 7)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locator.EXPAND_REMOTE_BRANCHES)));
}

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

License:Open Source License

public void waitMergeViewClosed() {
    new WebDriverWait(seleniumWebDriver, 7)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locator.MERGE_VIEW_ID)));
}

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

License:Open Source License

public void waitFormToClose() {
    new WebDriverWait(seleniumWebDriver, 7)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.PULL_FORM)));
}

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

License:Open Source License

public void waitFormToClose() {
    new WebDriverWait(seleniumWebDriver, 7)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.PUSH_FORM)));
}

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

License:Open Source License

/** wait opening of the reference widget */
public void waitClosingMainForm() {
    new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.MAIN_FORM_ID)));
}

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

License:Open Source License

public void waitFormToClose() {
    new WebDriverWait(seleniumWebDriver, 7)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.REMOVE_TO_INDEX_FORM)));
}

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

License:Open Source License

/** wait closing github login form */
public void waitClosingLoginPage() {
    new WebDriverWait(seleniumWebDriver, 10)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.PASS_FIELD)));
    new WebDriverWait(seleniumWebDriver, 10)
            .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.LOGIN_FIELD)));
}