Search in sources :

Example 6 with Navigation

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

the class PolldaddyTests method init.

private void init() {
    this.topBar = new TopBar(driver);
    this.navigation = new Navigation(driver);
    this.navigate = new Navigate();
    this.widget = new PolldaddyWidgetPageObject(driver);
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation) PolldaddyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PolldaddyWidgetPageObject) TopBar(com.wikia.webdriver.elements.mercury.components.TopBar) Navigate(com.wikia.webdriver.elements.common.Navigate)

Example 7 with Navigation

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

the class NavigationTests method mercury_navigation_navigationOnNonEnglishWiki.

void mercury_navigation_navigationOnNonEnglishWiki(WikiBasePageObject page) {
    Navigation navigation = page.getTopBar().openNavigation();
    Assertion.assertFalse(navigation.areHubLinksVisible());
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation)

Example 8 with Navigation

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

the class NavigationTests method mercury_navigation_resetNavigationState.

void mercury_navigation_resetNavigationState(WikiBasePageObject page) {
    TopBar topBar = page.getTopBar();
    Navigation navigation = topBar.openNavigation();
    Assertion.assertTrue(navigation.isMainHeaderVisible());
    navigation.openSubMenu(1);
    Assertion.assertTrue(navigation.isBackButtonVisible());
    topBar.clickCloseButton();
    topBar.openNavigation();
    Assertion.assertTrue(navigation.isMainHeaderVisible());
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation) TopBar(com.wikia.webdriver.elements.mercury.components.TopBar)

Example 9 with Navigation

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

the class NavigationTests method mercury_navigation_navigationElementsAnonymousUser.

void mercury_navigation_navigationElementsAnonymousUser(WikiBasePageObject page) {
    Navigation navigation = page.getTopBar().openNavigation();
    Assertion.assertTrue(navigation.isUserAvatarVisible());
    Assertion.assertFalse(navigation.isUserProfileLinkVisible());
    Assertion.assertFalse(navigation.isNavigationToUserProfileVisible());
    Assertion.assertEquals(navigation.getNavigationHeaderText(), "Sign In | Register");
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation)

Example 10 with Navigation

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

the class NavigationTests method mercury_navigation_navigationOnEnglishWiki.

void mercury_navigation_navigationOnEnglishWiki(WikiBasePageObject page) {
    Navigation navigation = page.getTopBar().openNavigation();
    Assertion.assertTrue(navigation.areHubLinksVisible());
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation)

Aggregations

Navigation (com.wikia.webdriver.elements.mercury.components.Navigation)18 TopBar (com.wikia.webdriver.elements.mercury.components.TopBar)13 Navigate (com.wikia.webdriver.elements.common.Navigate)10 Loading (com.wikia.webdriver.elements.mercury.components.Loading)1 JoinPageObject (com.wikia.webdriver.elements.mercury.old.JoinPageObject)1 GoogleFormWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.GoogleFormWidgetPageObject)1 PolldaddyWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PolldaddyWidgetPageObject)1 PollsnackWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PollsnackWidgetPageObject)1 SoundCloudWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SoundCloudWidgetPageObject)1 SpotifyWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SpotifyWidgetPageObject)1 TwitterWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.TwitterWidgetPageObject)1 VKWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.VKWidgetPageObject)1 WeiboWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WeiboWidgetPageObject)1 Test (org.testng.annotations.Test)1