use of com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject in project selenium-tests by Wikia.
the class MainPageTests method init.
private void init() {
this.navigate = new Navigate();
this.curatedMainPage = new CuratedMainPagePageObject();
this.curatedContent = new CuratedContentPageObject();
this.loading = new Loading(driver);
}
use of com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject in project selenium-tests by Wikia.
the class EditorTests method MercuryCuratedEditorTest_002_addAndSaveSection.
@Test(groups = "MercuryCuratedEditorTest_002")
public void MercuryCuratedEditorTest_002_addAndSaveSection() {
Boolean result = new ArticlePage().open(MercurySubpages.ECC_MAIN_PAGE).getCuratedMainPage().isFeaturedContentVisible();
PageObjectLogging.logInfo(String.format("Curated content is visible: %s", result));
new EditorHomePageObject().open().clickAddSection().typeDisplayName(SECTION_DISPLAY_NAME).clickOnImage().clickSearchForImageButton().type(SEARCH_IMAGE_QUERY).clickOnImage(0).clickDoneButton().clickDone().getSectionItemList().clickAddCategory().typeDisplayName(ITEM_DISPLAY_NAME).typePageName(ITEM_PAGE_NAME).clickOnImage().clickSearchForImageButton().type(SEARCH_IMAGE_QUERY).clickOnImage(0).clickDoneButton().clickDone().getSectionItemList().verifyItem(ITEM_DISPLAY_NAME).waitForAddCategoryButtonToBeVisible().clickDone().waitForAddCategoryButtonToBeVisible().publish();
PageObjectLogging.log("Curated Content", MercuryMessages.VISIBLE_MSG, MercuryMessages.INVISIBLE_MSG, new CuratedMainPagePageObject().isCuratedContentVisible());
new CuratedContentPageObject().clickOnCuratedContentElementByIndex(0);
Assertion.assertNumber(new CuratedContentPageObject().getCuratedContentItemsNumber(), 1, "If error says that 3 elements were found - it means getList API returned cached response - ticket created: XW-1281");
}
use of com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject in project selenium-tests by Wikia.
the class NavigationTests method init.
private void init() {
this.curatedContent = new CuratedContentPageObject();
this.navigate = new Navigate();
this.loading = new Loading(driver);
this.article = new ArticlePageObject(driver);
}
Aggregations