use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.
the class MiniEditorComponentObject method switchAndQuoteMessageWall.
public void switchAndQuoteMessageWall(String reply) {
wait.forElementVisible(miniEditorWrapper);
quoteMessageWallFrame = miniEditorWrapper.findElement(By.cssSelector(".cke_contents iframe"));
driver.switchTo().frame(quoteMessageWallFrame);
WebElement quoteMessageTextArea = driver.findElement(By.cssSelector("body#bodyContent"));
quoteMessageTextArea.clear();
quoteMessageTextArea.sendKeys(reply);
PageObjectLogging.log("switchAndQuoteMessageWall", "quote typed", true);
}
use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.
the class PhotoAddComponentObject method clickAddThisPhoto.
public PhotoOptionsComponentObject clickAddThisPhoto(int photoNumber) {
WebElement photo = wait.forElementVisible(addThisPhotoList.get(photoNumber));
photoName = addThisPhotoList.get(photoNumber).findElement(By.cssSelector("img")).getAttribute("data-image-name");
scrollAndClick(photo);
PageObjectLogging.log("clickAddPhoto", "add photo button clicked", true);
return new PhotoOptionsComponentObject(driver);
}
use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.
the class VisualEditorInsertGalleryDialog method removeMediaFromCart.
public void removeMediaFromCart(int number) {
waitForDialogVisible();
WebElement mediaResultsWidget = dialogBody.findElement(MEDIA_RESULTS_WIDGET_BY);
wait.forElementVisible(mediaResultsWidget);
List<WebElement> mediaResults = mediaResultsWidget.findElements(MEDIA_CHECKED_ICON_BY);
for (int i = 0; i < number; i++) {
mediaResults.get(i).click();
}
}
use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.
the class VisualEditorInsertGalleryDialog method clickMetaDataToPreview.
public VisualEditorPageObject clickMetaDataToPreview(int index) {
waitForDialogVisible();
WebElement mediaResultsWidget = dialogBody.findElement(MEDIA_RESULTS_WIDGET_BY);
wait.forElementVisible(mediaResultsWidget);
WebElement targetMedia = mediaResultsWidget.findElements(MEDIA_META_BY).get(index);
scrollAndClick(targetMedia);
return new VisualEditorPageObject();
}
use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.
the class VisualEditorInsertGalleryDialog method addMediaToCart.
public void addMediaToCart(int number) {
waitForDialogVisible();
WebElement mediaResultsWidget = dialogBody.findElement(MEDIA_RESULTS_WIDGET_BY);
wait.forElementVisible(mediaResultsWidget);
List<WebElement> mediaResults = mediaResultsWidget.findElements(MEDIA_ADD_ICON_BY);
for (int i = 0; i < number; i++) {
mediaResults.get(i).click();
}
}
Aggregations