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.dashboard.DashboardWorkspace.java
License:Open Source License
/** * select defined stack from 'READY-TO-GO STACKS' tab * * @param stackName name of stack from 'READY-TO-GO STACKS' *//* www . j a va 2s . co m*/ public void selectReadyToGoStack(String stackName) { new WebDriverWait(seleniumWebDriver, EXPECTED_MESS_IN_CONSOLE_SEC) .until(ExpectedConditions .visibilityOfElementLocated(By.xpath(format(Locators.STACK_NAME_XPATH, stackName)))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Check state of workspace in 'Workspace Information' * * @param stateWorkspace expected state of workspace *//*from w w w . jav a2 s.c om*/ public void checkStateOfWorkspace(StateWorkspace stateWorkspace) { new WebDriverWait(seleniumWebDriver, EXPECTED_MESS_IN_CONSOLE_SEC) .until(ExpectedConditions.visibilityOfElementLocated( By.xpath(format(Locators.STATE_WORKSPACE, stateWorkspace.getStatus())))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Check name of workspace in 'Workspace' tab * * @param nameWorkspace expected name of workspace *///w w w .j av a2 s . c o m public void checkNameWorkspace(String nameWorkspace) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .visibilityOfElementLocated(By.xpath(format(Locators.WORKSPACE_TITLE, nameWorkspace)))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** Select 'Create new workspace from stack' on the 'New Workspace' page */ public void selectCreateNewWorkspaceFromStack() { loader.waitOnClosed();// ww w . j a v a 2s . co m new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.CREATE_WS_FROM_STACK))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Select stack library by name//from ww w .j a v a2 s .c o m * * @param stackLibrary name of stack */ public void selectStackLibrary(StackLibrary stackLibrary) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .visibilityOfElementLocated(By.xpath(format(Locators.STACK_LIBRARY_ITEM, stackLibrary.getName())))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** Return true if workspaces present on the navigation panel */ public boolean workspacesIsPresent() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.LEFT_SIDE_BAR))); List<WebElement> workspaces = seleniumWebDriver.findElements(By.xpath(Locators.RESENT_WS_NAVBAR)); return !(workspaces.size() == 0); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Adds developer to share list/* w ww . j av a 2s .c om*/ * * @param email is an email of developer into sharing list */ public void addDeveloperToShareList(String email) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.ADD_DEVLOPER_BTN))).click(); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.INPUT_SHARE_DIALOG))) .sendKeys(email + ","); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.SHARE_BTN_DIALOG))).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Delete a developer from sharing list/* w w w. ja va 2 s .c o m*/ * * @param email is an email of developer into sharing list */ public void deleteDeveloperFromShareList(String email) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions .visibilityOfElementLocated(By.xpath(String.format(Locators.REMOVE_DEVELOPER_ICON, email)))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** Wait the text into warning dialog delete or remove */ public void waitTextInWarningDialogDelete(String expText) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC).until(ExpectedConditions .visibilityOfElementLocated(By.xpath(String.format(Locators.WARNING_DIALOG_DELETE, expText)))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Wait the email of developer is present in 'Share' tab * * @param email the email of developer//from w w w .jav a2 s .c o m */ public void waitDeveloperIsPresentInShareTab(String email) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .visibilityOfElementLocated(By.xpath(format(Locators.DEVELOPER_SHARE_ITEM, email)))); }