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

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

Introduction

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

Prototype

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

Source Link

Document

An expectation for checking an element is visible and enabled such that you can click it.

Usage

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

License:Open Source License

public void clickMergeBtn() {
    new WebDriverWait(seleniumWebDriver, 7).until(ExpectedConditions.elementToBeClickable(mergeMergeBtn));
    mergeMergeBtn.click();
}

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

License:Open Source License

public void waitMergeBtnIsDisabled() {
    new WebDriverWait(seleniumWebDriver, 7)
            .until(ExpectedConditions.not(ExpectedConditions.elementToBeClickable(mergeMergeBtn)));
}

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

License:Open Source License

public void clickPullBtn() {
    new WebDriverWait(seleniumWebDriver, 5).until(ExpectedConditions.elementToBeClickable(pullBtn));
    pullBtn.click();
}

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

License:Open Source License

public void waitPullBtnIsDisabled() {
    new WebDriverWait(seleniumWebDriver, 5)
            .until(ExpectedConditions.not(ExpectedConditions.elementToBeClickable(pullBtn)));
}

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

License:Open Source License

public void waitPushBtnIsDisabled() {
    new WebDriverWait(seleniumWebDriver, 7)
            .until(ExpectedConditions.not(ExpectedConditions.elementToBeClickable(pushBtn)));
}

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

License:Open Source License

public void setRemoveOnlyFromIndexCheckBox() {
    new WebDriverWait(seleniumWebDriver, 7).until(ExpectedConditions.elementToBeClickable(onlyIndexChkbox))
            .click();
}

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

License:Open Source License

/** click on submit btn on github auth form */
public void clickOnSignInButton() {
    new WebDriverWait(seleniumWebDriver, 15).until(ExpectedConditions.elementToBeClickable(signInBtn));
    signInBtn.click();//from  w  w  w .j  av  a2s  .  c om
}

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

License:Open Source License

/** click on authorize button */
public void clickOnAuthorizeBtn() {
    waitAuthorizeBtn();/*w  ww  .j a  va2 s.com*/
    new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
            .until(ExpectedConditions.elementToBeClickable(authorizeBtn));
    authorizeBtn.click();
}

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

License:Open Source License

public void clickApproveButton() {
    (new WebDriverWait(seleniumWebDriver, 10))
            .until(ExpectedConditions.presenceOfElementLocated(By.id(Locators.APPROVE_BUTTON)));
    WebElement approveBtn = (new WebDriverWait(seleniumWebDriver, 10))
            .until(ExpectedConditions.elementToBeClickable(By.id(Locators.APPROVE_BUTTON)));
    approveBtn.click();//from ww w. j a v a 2  s .c o  m
    WaitUtils.sleepQuietly(1);
}

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

License:Open Source License

/** click on delete icon */
public void clickDeleteIcon() {
    new WebDriverWait(seleniumWebDriver, 7).until(ExpectedConditions.elementToBeClickable(deleteIconEnable));
    deleteIconEnable.click();//w w  w  . java2s  .  c  o  m
}