List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOf
public static ExpectedCondition<WebElement> visibilityOf(final WebElement element)
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** wait 'Open in IDE' btn on All workspaces page' */ public void waitOpenInIdeWsEBtn() { new WebDriverWait(seleniumWebDriver, EXPECTED_MESS_IN_CONSOLE_SEC) .until(ExpectedConditions.visibilityOf(openInIdeWsBtn)); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
public void enterNameWorkspace(String nameWorkspace) { new WebDriverWait(seleniumWebDriver, EXPECTED_MESS_IN_CONSOLE_SEC) .until(ExpectedConditions.visibilityOf(nameWorkspaceInput)).clear(); new WebDriverWait(seleniumWebDriver, EXPECTED_MESS_IN_CONSOLE_SEC) .until(ExpectedConditions.visibilityOf(nameWorkspaceInput)).sendKeys(nameWorkspace); new WebDriverWait(seleniumWebDriver, EXPECTED_MESS_IN_CONSOLE_SEC) .until(ExpectedConditions.textToBePresentInElementValue(nameWorkspaceInput, nameWorkspace)); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * enter value RAM of workspace//from ww w .j ava2 s .c o m * * @param ram is value of RAM */ public void enterRamWorkspace(int ram) { String ramValue = "//input[@name='memory']"; new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(ramWorkspace)).clear(); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(ramWorkspace)).sendKeys(String.valueOf(ram)); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.textToBePresentInElementLocated(By.xpath(ramValue), String.valueOf(ram))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** Click on 'Save' on the 'New Workspace' page */ public void clickOnSaveBtn() { loader.waitOnClosed();/*from w ww .j a va 2 s. com*/ new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(saveBtn)).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
public String getWsTimeoutMessage() { return new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(wsTimeotMessage)).getText(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.AddMember.java
License:Open Source License
public void setMembersEmail(String email) { redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(membersEmail)).clear(); redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(membersEmail)).sendKeys(email); redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(membersEmail)).getText().equals(email); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.AddMember.java
License:Open Source License
public void onlySetMembersEmail(String email) { redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(membersEmail)).clear(); redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(membersEmail)).sendKeys(email); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.AddMember.java
License:Open Source License
public void clickMemberButton() { redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(memberRadioButton)).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.AddMember.java
License:Open Source License
public void clickAdminButton() { redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(adminRadioButton)).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.AddMember.java
License:Open Source License
public void closeWidget() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(closeWidget)).click(); }