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.MultiSplitPanel.java
License:Open Source License
/** * close a process into the split pane widget * * @param nameProcess is name of process into the split pane widget *///from ww w . j a v a 2s . c o m public void closeProcessIntoPaneMenu(String nameProcess) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .elementToBeClickable(By.xpath(String.format(Locators.PROCESS_IN_MENU_CLOSE_ICON, nameProcess)))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.MultiSplitPanel.java
License:Open Source License
/** * close by click on the tab name of process * * @param nameProcess is name tab name of process */// www . j a v a2 s . com public void closeProcessByTabName(String nameProcess) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .elementToBeClickable(By.xpath(String.format(Locators.TAB_PROCESS_CLOSE_ICON, nameProcess)))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.MultiSplitPanel.java
License:Open Source License
/** * get text from split git info panel//from w w w .ja va2 s. c o m * * @param numberPanel is a position of split pane; the most right and lowest open pane has * position number one */ public String getMessFromSplitGitPanel(int numberPanel) { return new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions .elementToBeClickable(By.xpath(String.format(Locators.GIT_INFO_PANEL, numberPanel)))) .getText(); }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnAuthentication.java
License:Open Source License
/** * Enter name and password to 'SVN Authentication' form * * @param userName svn user name//from w w w . j a v a2 s. c o m * @param password svn user password */ public void svnLogin(String userName, String password) { if (svnAuthenticationWindowIsPresent()) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.USER_NAME_INPUT))) .sendKeys(userName); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.PASSWORD_INPUT))) .sendKeys(password); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(authenticateBtn)).click(); } }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnCommit.java
License:Open Source License
public void clickDiffButton(String fileName, String folderName) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions .elementToBeClickable(By.xpath(String.format(Locators.DIFF_BUTTON, fileName, folderName)))) .click();/* w w w . j av a2s . c o m*/ }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnCommit.java
License:Open Source License
public void clickCloseDiffViewBtn() throws InterruptedException { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(buttonDiffViewClose)); buttonDiffViewClose.click();//from ww w. ja v a 2s . com loader.waitOnClosed(); }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnCommit.java
License:Open Source License
public void clickCommitBtn() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(buttonCommit)); buttonCommit.click();//from ww w . j av a 2s .c om }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnCommit.java
License:Open Source License
public void clickCancelBtn() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(buttonCancel)); buttonCancel.click();/* w ww .j ava2 s . com*/ }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnCopy.java
License:Open Source License
public void clickCopyButton() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(copyButton)); copyButton.click();// w w w.ja v a 2 s . c o m }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnExport.java
License:Open Source License
public void clickExportBtn() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(buttonExport)); buttonExport.click();// ww w.j a v a 2s .c o m }