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);
}
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);
}
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();
}
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();
}
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();
}
Aggregations