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.subversion.SvnMerge.java
License:Open Source License
public void clickMergeButton() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(buttonMerge)); buttonMerge.click();/*from w ww . ja v a2 s .co m*/ }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnMove.java
License:Open Source License
public void clickMoveButton() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(moveButton)); moveButton.click();//from w ww . jav a2s . co m }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnUpdateToRevision.java
License:Open Source License
public void clickOnUpdateBtn() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(buttonUpdate)); buttonUpdate.click();// ww w . ja v a2s . c om }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnViewLog.java
License:Open Source License
public void clickSvnLogFormCancel() { new WebDriverWait(seleniumWebDriver, ELEMENT_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(cancelButton)); cancelButton.click();//from w ww. ja va 2 s . co m }
From source file:org.eclipse.che.selenium.pageobject.Swagger.java
License:Open Source License
/** collapse 'workspace' item */ private void collapseWorkSpaceItem() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(workSpaceLink)).click(); new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.id("workspace_endpoint_list"))); }
From source file:org.eclipse.che.selenium.pageobject.Swagger.java
License:Open Source License
/** * Clicks on the element by Xpath// w w w. j ava 2s .c om * * @param xPath web element Xpath */ private void clickElementByXpath(String xPath) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(By.xpath(xPath))).click(); }
From source file:org.eclipse.che.selenium.pageobject.Swagger.java
License:Open Source License
/** * Clicks on the 'Try it out' by Xpath/*from w w w . j av a 2 s . co m*/ * * @param xPath web element Xpath */ private void clickTryItOutByXpath(String xPath) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(By.xpath(xPath))).click(); }
From source file:org.eclipse.che.selenium.pageobject.Swagger.java
License:Open Source License
/** click on 'project' link */ private void clickOnProjectLink() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(By.xpath(Locators.PROJECT))).click(); }
From source file:org.eclipse.che.selenium.pageobject.UploadFile.java
License:Open Source License
public void clickUploadButton() { new WebDriverWait(seleniumWebDriver, 5).until(ExpectedConditions.elementToBeClickable(uploadFileButton)); uploadFileButton.click(); }
From source file:org.eclipse.che.selenium.pageobject.UploadFolderFromZip.java
License:Open Source License
public void clickUploadFolderZipButton() { new WebDriverWait(seleniumWebDriver, 5) .until(ExpectedConditions.elementToBeClickable(folderZipUploadButton)); folderZipUploadButton.click();// w w w . ja v a 2s. co m waitUploadFormIsClosed(); }