Search in sources :

Example 16 with Navigation

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

the class GoogleFormTests method init.

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

Example 17 with Navigation

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

the class AllTagsTests method init.

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

Example 18 with Navigation

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

the class LoginTestsOld method MercuryLoginTest_008_userIsTakenToJoinPage.

@Test(groups = { "MercuryLoginTest_008", "Mercury_LoginTests_002" })
public void MercuryLoginTest_008_userIsTakenToJoinPage() {
    JoinPageObject joinPageObject = new JoinPageObject(driver).get();
    String expectedMessage = joinPageObject.getJoinTodayText();
    driver.get(wikiURL);
    new TopBar(driver).openNavigation();
    new Navigation(driver).clickOnSignInRegisterButton();
    Assertion.assertEquals(joinPageObject.getJoinTodayText(), expectedMessage);
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation) TopBar(com.wikia.webdriver.elements.mercury.components.TopBar) JoinPageObject(com.wikia.webdriver.elements.mercury.old.JoinPageObject) Test(org.testng.annotations.Test)

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