Search in sources :

Example 11 with Navigation

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

the class NavigationTests method mercury_navigation_backButton.

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

Example 12 with Navigation

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

the class NavigationTests method mercury_navigation_navigationElementsUserLoggedIn.

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

Example 13 with Navigation

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

the class SignupPageObject method openMobileSignupPage.

public SignupPageObject openMobileSignupPage() {
    new TopBar(driver).openNavigation();
    new Navigation(driver).clickOnSignInRegisterButton();
    wait.forElementVisible(signupButton);
    signupButton.click();
    return new SignupPageObject(driver);
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation) TopBar(com.wikia.webdriver.elements.mercury.components.TopBar)

Example 14 with Navigation

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

the class SoundCloudTests method init.

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

Example 15 with Navigation

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

the class WeiboTests method init.

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

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