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"));
}
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();
}
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();
}
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);
}
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);
}
Aggregations