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.ImportProjectFromLocation.java
License:Open Source License
/** * type a name of the directory/*w w w.j av a 2 s . c om*/ * * @param nameOfDirectory */ public void typeDirectoryName(String nameOfDirectory) { new WebDriverWait(seleniumWebDriver, 10).until(ExpectedConditions.visibilityOf(directoryName)); directoryName.clear(); directoryName.sendKeys(nameOfDirectory); }
From source file:org.eclipse.che.selenium.pageobject.ImportProjectFromLocation.java
License:Open Source License
public void waitLoadRepoBtn() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(loadRepoBtn)); }
From source file:org.eclipse.che.selenium.pageobject.ImportProjectFromLocation.java
License:Open Source License
/** * type a name of the branch/* ww w.j a va 2 s .c om*/ * * @param branch is name of the branch */ public void typeBranchName(String branch) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(branchName)); branchName.clear(); branchName.sendKeys(branch); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer.java
License:Open Source License
public void openCommandsExplorer() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(commandsTabInTheLeftPanel)).click(); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer.java
License:Open Source License
public void waitCommandExplorerIsOpened() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(mainForm)); waitAddButtonIsClickable(BUILD_GOAL); waitAddButtonIsClickable(TEST_GOAL); waitAddButtonIsClickable(RUN_GOAL);// www. ja v a 2 s. c om waitAddButtonIsClickable(DEBUG_GOAL); waitAddButtonIsClickable(DEPLOY_GOAL); waitAddButtonIsClickable(COMMON_GOAL); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer.java
License:Open Source License
/** * select command and open in editor//from ww w . j a v a 2 s. c om * * @param commandName is a visible command name in command explorer */ public void selectCommandByName(String commandName) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(getCommandByName(commandName))); new Actions(seleniumWebDriver).doubleClick(getCommandByName(commandName)).build().perform(); waitCommandIsSelected(commandName); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer.java
License:Open Source License
public void runCommandByName(String commandName) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(getCommandByName(commandName))); new Actions(seleniumWebDriver).doubleClick(getCommandByName(commandName)).build().perform(); commandsEditor.waitActive();// ww w .j av a 2 s.c o m commandsEditor.clickOnRunButton(); commandsEditor.clickOnCancelCommandEditorButton(); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette.java
License:Open Source License
/** Start CommandPalette widget by clicking on button */ public void openCommandPalette() { loader.waitOnClosed();//from ww w.jav a 2 s . c o m redrawUiElementTimeout.until(ExpectedConditions.visibilityOf(commandPaletteButton)).click(); redrawUiElementTimeout.until(ExpectedConditions.visibilityOf(commandPalette)); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette.java
License:Open Source License
/** Start CommandPalette widget by Shift+F10 hot keys */ public void openCommandPaletteByHotKeys() { loader.waitOnClosed();/* w ww . jav a 2 s. c o m*/ actionsFactory.createAction(seleniumWebDriver).sendKeys(Keys.SHIFT.toString(), Keys.F10.toString()) .perform(); redrawUiElementTimeout.until(ExpectedConditions.visibilityOf(commandPalette)); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette.java
License:Open Source License
/** Check the CommandsPalette widget is started */ public void waitCommandPalette() { redrawUiElementTimeout.until(ExpectedConditions.visibilityOf(commandPalette)); }