Search in sources :

Example 1 with CuratedContentPageObject

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);
}
Also used : CuratedContentPageObject(com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject) CuratedMainPagePageObject(com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedMainPagePageObject) Loading(com.wikia.webdriver.elements.mercury.components.Loading) Navigate(com.wikia.webdriver.elements.common.Navigate)

Example 2 with CuratedContentPageObject

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");
}
Also used : CuratedContentPageObject(com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject) CuratedMainPagePageObject(com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedMainPagePageObject) ArticlePage(com.wikia.webdriver.elements.mercury.pages.ArticlePage) EditorHomePageObject(com.wikia.webdriver.elements.mercury.old.curatedcontent.EditorHomePageObject) Test(org.testng.annotations.Test)

Example 3 with CuratedContentPageObject

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);
}
Also used : CuratedContentPageObject(com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject) ArticlePageObject(com.wikia.webdriver.elements.mercury.old.ArticlePageObject) Loading(com.wikia.webdriver.elements.mercury.components.Loading) Navigate(com.wikia.webdriver.elements.common.Navigate)

Aggregations

CuratedContentPageObject (com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject)3 Navigate (com.wikia.webdriver.elements.common.Navigate)2 Loading (com.wikia.webdriver.elements.mercury.components.Loading)2 CuratedMainPagePageObject (com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedMainPagePageObject)2 ArticlePageObject (com.wikia.webdriver.elements.mercury.old.ArticlePageObject)1 EditorHomePageObject (com.wikia.webdriver.elements.mercury.old.curatedcontent.EditorHomePageObject)1 ArticlePage (com.wikia.webdriver.elements.mercury.pages.ArticlePage)1 Test (org.testng.annotations.Test)1