use of com.wikia.webdriver.elements.mercury.components.Loading in project selenium-tests by Wikia.
the class SortingTests method userCanSwitchBetweenLatestAndTrendingInDropdown.
/**
* TESTING METHODS SECTION
*/
private void userCanSwitchBetweenLatestAndTrendingInDropdown() {
PostsListPage page = new PostsListPage().open();
FiltersPopOver filtersPopOver = page.getFiltersPopOver();
DiscussionsHeader discussionsHeader = page.getDiscussionsHeader();
discussionsHeader.clickSortButtonOnMobile();
Assertion.assertTrue(filtersPopOver.isSortListVisibleMobile());
filtersPopOver.clickLatestLinkOnMobile();
filtersPopOver.clickApplyButton();
new Loading(driver).handleAsyncPageReload();
discussionsHeader.clickSortButtonOnMobile();
filtersPopOver.clickTrendingOptionInSortMenu();
filtersPopOver.clickApplyButton();
new Loading(driver).handleAsyncPageReload();
}
use of com.wikia.webdriver.elements.mercury.components.Loading 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.components.Loading in project selenium-tests by Wikia.
the class ArticlePageTests method init.
private void init() {
this.topBar = new TopBar(driver);
this.navigation = new Navigation(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 SearchResultsPage method clickSearchResult.
public String clickSearchResult(int index) {
Loading loading = new Loading(driver);
String clickedLink;
PageObjectLogging.logInfo("Select search result no.: " + index);
WebElement searchResult = driver.findElements(By.cssSelector(SEARCH_RESULT_SELECTOR)).get(index);
wait.forElementClickable(searchResult);
clickedLink = searchResult.getAttribute("href");
searchResult.click();
loading.handleAsyncPageReload();
return clickedLink;
}
use of com.wikia.webdriver.elements.mercury.components.Loading in project selenium-tests by Wikia.
the class LayoutTests method userCanViewMorePosts.
private void userCanViewMorePosts() {
Post post = new PostsListPage().open().getPost();
int startingListLength = post.getPostsListLength();
post.clickLoadMore();
new Loading(driver).handleAsyncPageReload();
Assertion.assertTrue(startingListLength < post.getPostsListLength());
}
Aggregations