Search in sources :

Example 91 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class VisualEditorInsertTemplateDialog method selectResultTemplate.

public VisualEditorEditTemplateDialog selectResultTemplate(String searchString, int index) {
    typeInSearchInput(searchString);
    waitForDialogVisible();
    wait.forElementVisible(resultWidget);
    WebElement selected = resultTemplates.get(index).findElement(labelBy);
    selected.click();
    PageObjectLogging.log("selectResultTemplate", "Search result template selected: " + selected.getText(), true);
    return new VisualEditorEditTemplateDialog(driver);
}
Also used : WebElement(org.openqa.selenium.WebElement)

Example 92 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class VisualEditorInsertTemplateDialog method selectSuggestedTemplate.

public VisualEditorEditTemplateDialog selectSuggestedTemplate(int index) {
    waitForDialogVisible();
    wait.forElementVisible(suggestedWidget);
    WebElement selected = suggestedTemplates.get(index).findElement(labelBy);
    selected.click();
    PageObjectLogging.log("selectSuggestedTemplate", "Suggested template selected: " + selected.getText(), true);
    return new VisualEditorEditTemplateDialog(driver);
}
Also used : WebElement(org.openqa.selenium.WebElement)

Example 93 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class VisualEditorMediaSettingsDialog method clickAlignment.

public void clickAlignment(Alignment align) {
    waitForDialogVisible();
    WebElement button = positionButtons.get(align.ordinal()).findElement(labelElementBy);
    wait.forElementClickable(button);
    button.click();
    PageObjectLogging.log("clickAlignment", align.toString() + " align is selected", true);
    driver.switchTo().defaultContent();
}
Also used : WebElement(org.openqa.selenium.WebElement)

Example 94 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class VisualEditorMediaSettingsDialog method typeCustomSize.

private void typeCustomSize(int size, ImageSize side) {
    WebElement customSizeInput = customSizeInput = customSizeInputs.get(side.ordinal());
    customSizeInput.clear();
    customSizeInput.sendKeys(Integer.toString(size));
    PageObjectLogging.log("typeCustomSize", "Typed " + size + " in the field", true, driver);
    driver.switchTo().defaultContent();
}
Also used : WebElement(org.openqa.selenium.WebElement)

Example 95 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class VisualEditorOptionsDialog method selectFromOutlineMenu.

private void selectFromOutlineMenu(int index) {
    WebElement menuItem = outlineMenuItems.get(index).findElement(labelElementBy);
    wait.forElementClickable(menuItem);
    menuItem.click();
}
Also used : WebElement(org.openqa.selenium.WebElement)

Aggregations

WebElement (org.openqa.selenium.WebElement)520 Test (org.junit.Test)96 WebDriver (org.openqa.selenium.WebDriver)85 PublicAtsApi (com.axway.ats.common.PublicAtsApi)57 Actions (org.openqa.selenium.interactions.Actions)55 FirefoxDriver (org.openqa.selenium.firefox.FirefoxDriver)46 WebDriverWait (org.openqa.selenium.support.ui.WebDriverWait)40 By (org.openqa.selenium.By)36 URL (java.net.URL)35 RunAsClient (org.jboss.arquillian.container.test.api.RunAsClient)34 RealHtmlElementState (com.axway.ats.uiengine.utilities.realbrowser.html.RealHtmlElementState)30 JavascriptExecutor (org.openqa.selenium.JavascriptExecutor)21 NoSuchElementException (org.openqa.selenium.NoSuchElementException)21 HiddenHtmlElementState (com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState)19 ArrayList (java.util.ArrayList)18 SeleniumOperationException (com.axway.ats.uiengine.exceptions.SeleniumOperationException)13 Select (org.openqa.selenium.support.ui.Select)13 TimeoutException (org.openqa.selenium.TimeoutException)12 VisualEditorPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject)11 List (java.util.List)10