use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject 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 com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VisualEditorAddMapDialog method addExistingMap.
public VisualEditorPageObject addExistingMap(int number) {
waitForDialogVisible();
WebElement mediaResultsWidget = mediaDialogBody.findElement(mediaResultsWidgetBy);
if (isElementOnPage(mediaResultsWidget)) {
wait.forElementVisible(mediaResultsWidget);
List<WebElement> maps = mediaResultsWidget.findElements(mediaResultsBy);
WebElement map = maps.get(number);
map.click();
} else {
throw new NoSuchElementException("The dialog is in empty state, the wiki needs to contain map.");
}
waitForDialogNotVisible();
return new VisualEditorPageObject();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VisualEditorAddMediaDialog method previewExistingPhotoByTitle.
public VisualEditorPageObject previewExistingPhotoByTitle(String title) {
waitForDialogVisible();
WebElement media = findMediaByTitle(title);
media.findElement(previewPhotoButtonBy).click();
PageObjectLogging.log("previewExistingMediaByTitle", "Media clicked", true);
return new VisualEditorPageObject();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VisualEditorHyperLinkDialog method clickDoneButton.
public VisualEditorPageObject clickDoneButton() {
waitForDialogVisible();
WebElement doneButton = dialog.findElement(doneButtonBy);
doneButton.click();
waitForDialogNotVisible();
return new VisualEditorPageObject();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_addDropdown.
@Test(groups = { "ArticleCRUDAnon_003" })
public void articleCRUDAnon_addDropdown() {
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
ArticlePageObject article = new ArticlePageObject().open("AnonAddDropdown");
VisualEditorPageObject ve = article.createArticleInVEUsingDropdown(articleTitle);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
article = ve.clickVEEditAndPublish(articleContent);
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
Aggregations