List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOfElementLocated
public static ExpectedCondition<WebElement> visibilityOfElementLocated(final By locator)
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** select the 'Source' category */ public void selectSourceCategory() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.id(SOURCE_CATEGORY))).click(); loader.waitOnClosed();//from w w w . j av a2 s. c o m }
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** * delete jar or folder from build path/*from ww w . j av a2 s .c om*/ * * @param nameJarFolder is name of the jar or folder */ public void deleteJarOrFolderFromBuildPath(String nameJarFolder) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .visibilityOfElementLocated(By.xpath(String.format("//div[text()='%s']", nameJarFolder)))); WebElement element = seleniumWebDriver .findElement(By.xpath(String.format("//div[text()='%s']", nameJarFolder))); actionsFactory.createAction(seleniumWebDriver).moveToElement(element).perform(); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions .visibilityOfElementLocated(By.xpath(String.format(DELETE_JAR_OR_FOLDER, nameJarFolder)))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** * add jar or folder to build path// w ww .jav a2s . c o m * * @param folderType is the type of the folder */ public void addJarOrFolderToBuildPath(String folderType) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(folderType))).click(); }
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** click on the 'Done' button in the 'Configure Classpath' */ public void clickOnDoneBtnConfigureClasspath() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.id(DONE_BUTTON))).click(); loader.waitOnClosed();/*from w w w. j a v a 2 s . c o m*/ waitConfigureClasspathFormIsClosed(); }
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** wait the 'Select Path' form is open */ public void waitSelectPathFormIsOpen() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(SELECT_PATH_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** click on the 'OK' button in the 'Select Path' form */ public void clickOkBtnSelectPathForm() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.id(SELECT_PATH_OK_BTN))).click(); loader.waitOnClosed();//from w w w . j av a2 s.c om waitSelectPathFormIsClosed(); }
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** click on the 'Cancel' button in the 'Select Path' form */ public void clickCancelBtnSelectPathForm() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.id(SELECT_PATH_CANCEL_BTN))).click(); loader.waitOnClosed();/*from w w w.j a va 2s.c o m*/ waitSelectPathFormIsClosed(); }
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** click on the 'Select' button in the 'Select Path' form */ public void clickSelectBtnSelectPathForm() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(SELECT_PATH_SELECT_BTN))).click(); loader.waitOnClosed();//from w w w.j av a2 s .c om waitSelectPathFormIsClosed(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.CreateWorkspace.java
License:Open Source License
public void waitToolbar() { new WebDriverWait(seleniumWebDriver, TestTimeoutsConstants.LOADER_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.id(Locators.TOOLBAR_TITLE_ID))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardFactory.java
License:Open Source License
/** * select workspace in the list for creation a factory * * @param wsNama/*ww w.j a v a 2s .c om*/ */ public void selectWorkspaceForCreation(String wsNama) { //delay for animation page WaitUtils.sleepQuietly(1, TimeUnit.SECONDS); String locator = String.format(Locators.WORKSPACE_ITEM_XPATH, wsNama); new WebDriverWait(seleniumWebDriver, LOADER_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator))).click(); //delay for redraw and setting selection WaitUtils.sleepQuietly(1, TimeUnit.SECONDS); }