List of usage examples for org.openqa.selenium.support.ui ExpectedConditions elementToBeClickable
public static ExpectedCondition<WebElement> elementToBeClickable(final WebElement element)
From source file:org.eclipse.che.selenium.pageobject.FindAction.java
License:Open Source License
/** click on the 'Include non menu actions' checkbox */ public void clickOnIncludeNonMenuActions() { waitWithRedrawTimeout.until(ExpectedConditions.elementToBeClickable(includeNonMenuActions)).click(); }
From source file:org.eclipse.che.selenium.pageobject.FindAction.java
License:Open Source License
/** * click on the found action/*from w w w . j a v a 2 s . c o m*/ * * @param action name of action */ public void clickOnFoundAction(String action) { actionsFactory.createAction(seleniumWebDriver).doubleClick(waitWithRedrawTimeout.until( ExpectedConditions.elementToBeClickable(By.xpath(String.format(FOUND_ACTION_BY_NAME, action))))) .perform(); }
From source file:org.eclipse.che.selenium.pageobject.FindText.java
License:Open Source License
/** wait the 'Search' button is disabled on the main form */ public void waitSearchBtnMainFormIsDisabled() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until( ExpectedConditions.not(ExpectedConditions.elementToBeClickable(By.id(Locators.SEARCH_BUTTON)))); }
From source file:org.eclipse.che.selenium.pageobject.FindText.java
License:Open Source License
/** press on the 'Search' button on the main form */ public void clickOnSearchButtonMainForm() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(By.id(Locators.SEARCH_BUTTON))).click(); waitFindTextMainFormIsClosed();//from ww w . j av a 2 s . c om }
From source file:org.eclipse.che.selenium.pageobject.FindText.java
License:Open Source License
/** press on the search directory button */ public void clickSearchDirectoryBtn() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(By.id(Locators.SEARCH_DIR_BUTTON))).click(); }
From source file:org.eclipse.che.selenium.pageobject.git.GitCommit.java
License:Open Source License
public void selectRemoteBranch(String branch) { seleniumWebDriver.findElement(By.xpath(Locators.BRANCHES_DROPDOWN)).click(); new WebDriverWait(seleniumWebDriver, 5) .until(ExpectedConditions.elementToBeClickable( By.xpath(Locators.BRANCHES_DROPDOWN + String.format("//option[text()='%s']", branch)))) .click();/*from w w w . ja va 2 s . c om*/ }
From source file:org.eclipse.che.selenium.pageobject.git.GitFetch.java
License:Open Source License
public void clickFetchBtn() { new WebDriverWait(seleniumWebDriver, 5).until(ExpectedConditions.elementToBeClickable(fetchBtn)); fetchBtn.click(); }
From source file:org.eclipse.che.selenium.pageobject.git.GitFetch.java
License:Open Source License
public void waitFetchBtnIsDisabled() { new WebDriverWait(seleniumWebDriver, 5) .until(ExpectedConditions.not(ExpectedConditions.elementToBeClickable(fetchBtn))); }
From source file:org.eclipse.che.selenium.pageobject.git.GitMerge.java
License:Open Source License
public void selectItemInMergeList(String branchName) { waitItemInMergeList(branchName);/*from ww w.j a v a2 s .c om*/ new WebDriverWait(seleniumWebDriver, 7).until( ExpectedConditions.elementToBeClickable(By.xpath(String.format(Locator.ITEM_IN_TREE, branchName)))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.git.GitMerge.java
License:Open Source License
public void clickCancelMergeBtn() { new WebDriverWait(seleniumWebDriver, 7) .until(ExpectedConditions.elementToBeClickable(By.id(Locator.CANCEL_BUTTON_ID))); mergeCancelBtn.click();// www. j a v a2 s . co m }