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.GitHub.java
License:Open Source License
/** wait for appearing account settings button */ public void waitAccountSettingsBtn() { new WebDriverWait(seleniumWebDriver, 30) .until(ExpectedConditions.visibilityOfElementLocated(By.id(Locators.ACCOUNT_SETTINGS))); }
From source file:org.eclipse.che.selenium.pageobject.GitHub.java
License:Open Source License
/** wait for appearing applications button in settings menu. */ public void waitApplicationsBtn() { new WebDriverWait(seleniumWebDriver, 30) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.APPLICATIONS_BTN))); }
From source file:org.eclipse.che.selenium.pageobject.GitHub.java
License:Open Source License
/** wait for appearing ssh keys button in settings menu. */ public void waitSshKeysBtn() { new WebDriverWait(seleniumWebDriver, 30) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.SSH_KEYS_BTN))); }
From source file:org.eclipse.che.selenium.pageobject.GitHub.java
License:Open Source License
/** wait for appearing delete button in ssh keys menu. */ public void waitDeleteButton() { new WebDriverWait(seleniumWebDriver, 30).until(ExpectedConditions.visibilityOfElementLocated( By.xpath(String.format(Locators.DELETE_SSH_KEY_BTN, testUser.getName())))); }
From source file:org.eclipse.che.selenium.pageobject.GitHub.java
License:Open Source License
/** wait for confirm button appear */ public void waitConfirmPasswordInput() { new WebDriverWait(seleniumWebDriver, 30) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.CONFIRM_PASS_INPUT_ID))); }
From source file:org.eclipse.che.selenium.pageobject.GitHub.java
License:Open Source License
/** wait for applications page form */ public void waitApplicationsPage() { new WebDriverWait(seleniumWebDriver, 30) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.APPLICATIONS_PAGE))); }
From source file:org.eclipse.che.selenium.pageobject.GitHub.java
License:Open Source License
/** wait for ssh page form */ public void waitSshPage() { new WebDriverWait(seleniumWebDriver, 30) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.SSH_PAGE))); }
From source file:org.eclipse.che.selenium.pageobject.GoogleLogin.java
License:Open Source License
public void waitOpenForm() { new WebDriverWait(seleniumWebDriver, 10) .until(ExpectedConditions.visibilityOfElementLocated(By.id(Locators.LOGIN_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.ImportProjectFromLocation.java
License:Open Source License
/** wait while all elements of the form appear */ public void waitMainFormIsClosed(int timeout) { new WebDriverWait(seleniumWebDriver, timeout) .until(ExpectedConditions.visibilityOfElementLocated(By.id(Locators.MAIN_FORM_ID))); }
From source file:org.eclipse.che.selenium.pageobject.ImportProjectFromLocation.java
License:Open Source License
/** select project by name in project list */ public void selectProjectByName(String projectName) { String locator = String.format(Locators.CATEGORY_PANEL_XPATH, projectName); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator))).click(); }