Search in sources :

Example 1 with BackButtons

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

the class NavigatingTests method backToWiki.

/**
   * TESTING METHODS SECTION
   */
private void backToWiki() {
    PostsListPage page = new PostsListPage().open();
    BackButtons backButtons = page.open().getBackButtons();
    backButtons.clickBackToWikiLink();
    Assertion.assertTrue(page.isWikiFirstHeaderVisible());
    Assertion.assertTrue(driver.getCurrentUrl().contains(wikiURL));
}
Also used : BackButtons(com.wikia.webdriver.elements.mercury.components.discussions.desktop.BackButtons) PostsListPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)

Aggregations

BackButtons (com.wikia.webdriver.elements.mercury.components.discussions.desktop.BackButtons)1 PostsListPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)1