Search in sources :

Example 6 with Loading

use of com.wikia.webdriver.elements.mercury.components.Loading in project selenium-tests by Wikia.

the class SortingTests method userCanSwitchBetweenLatestAndTrendingTab.

private void userCanSwitchBetweenLatestAndTrendingTab() {
    SortingFiltersOnDesktop filters = new PostsListPage().open().getSortingFiltersOnDesktop();
    filters.clickLatestOption();
    new Loading(driver).handleAsyncPageReload();
    Assertion.assertTrue(driver.getCurrentUrl().contains("latest"));
    filters.clickTrendingOption();
    new Loading(driver).handleAsyncPageReload();
    Assertion.assertTrue(driver.getCurrentUrl().contains("trending"));
}
Also used : Loading(com.wikia.webdriver.elements.mercury.components.Loading) SortingFiltersOnDesktop(com.wikia.webdriver.elements.mercury.components.discussions.desktop.SortingFiltersOnDesktop) PostsListPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)

Example 7 with Loading

use of com.wikia.webdriver.elements.mercury.components.Loading in project selenium-tests by Wikia.

the class ArticlePage method openCategoryPageFromCategoriesDropdown.

public CategoryPage openCategoryPageFromCategoriesDropdown() {
    wait.forElementClickable(categoriesDropdown);
    driver.findElement(categoriesDropdown).click();
    wait.forElementClickable(categoryLink);
    driver.findElement(categoryLink).click();
    new Loading(driver).handleAsyncPageReload();
    return new CategoryPage();
}
Also used : Loading(com.wikia.webdriver.elements.mercury.components.Loading)

Example 8 with Loading

use of com.wikia.webdriver.elements.mercury.components.Loading in project selenium-tests by Wikia.

the class CategoryPage method navigateToCategoryMemberPage.

public ArticlePage navigateToCategoryMemberPage() {
    new SkinHelper(driver).isSkin(Skin.MOBILE_WIKI);
    WebElement member = driver.findElement(categoryMembers);
    String memberName = member.getText();
    wait.forElementClickable(member);
    member.click();
    new Loading(driver).handleAsyncPageReload();
    PageObjectLogging.logInfo(String.format("You were redirected to page: \"%s\".", memberName));
    new SkinHelper(driver).isSkin(Skin.MOBILE_WIKI);
    return new ArticlePage();
}
Also used : Loading(com.wikia.webdriver.elements.mercury.components.Loading) SkinHelper(com.wikia.webdriver.common.skin.SkinHelper) WebElement(org.openqa.selenium.WebElement)

Example 9 with Loading

use of com.wikia.webdriver.elements.mercury.components.Loading in project selenium-tests by Wikia.

the class TOCTests method init.

private void init() {
    this.toc = new TableOfContentPageObject(driver);
    this.navigate = new Navigate();
    this.loading = new Loading(driver);
}
Also used : Loading(com.wikia.webdriver.elements.mercury.components.Loading) Navigate(com.wikia.webdriver.elements.common.Navigate) TableOfContentPageObject(com.wikia.webdriver.elements.mercury.old.TableOfContentPageObject)

Example 10 with Loading

use of com.wikia.webdriver.elements.mercury.components.Loading 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

Loading (com.wikia.webdriver.elements.mercury.components.Loading)10 Navigate (com.wikia.webdriver.elements.common.Navigate)4 PostsListPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)3 CuratedContentPageObject (com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedContentPageObject)2 WebElement (org.openqa.selenium.WebElement)2 SkinHelper (com.wikia.webdriver.common.skin.SkinHelper)1 Navigation (com.wikia.webdriver.elements.mercury.components.Navigation)1 TopBar (com.wikia.webdriver.elements.mercury.components.TopBar)1 Post (com.wikia.webdriver.elements.mercury.components.discussions.common.Post)1 SortingFiltersOnDesktop (com.wikia.webdriver.elements.mercury.components.discussions.desktop.SortingFiltersOnDesktop)1 DiscussionsHeader (com.wikia.webdriver.elements.mercury.components.discussions.mobile.DiscussionsHeader)1 FiltersPopOver (com.wikia.webdriver.elements.mercury.components.discussions.mobile.FiltersPopOver)1 ArticlePageObject (com.wikia.webdriver.elements.mercury.old.ArticlePageObject)1 TableOfContentPageObject (com.wikia.webdriver.elements.mercury.old.TableOfContentPageObject)1 CuratedMainPagePageObject (com.wikia.webdriver.elements.mercury.old.curatedcontent.CuratedMainPagePageObject)1