use of com.wikia.webdriver.elements.mercury.components.TopBar in project selenium-tests by Wikia.
the class PollsnackTests method init.
private void init() {
this.topBar = new TopBar(driver);
this.navigation = new Navigation(driver);
this.navigate = new Navigate();
this.widget = new PollsnackWidgetPageObject(driver);
}
use of com.wikia.webdriver.elements.mercury.components.TopBar in project selenium-tests by Wikia.
the class SpotifyTests method init.
private void init() {
this.topBar = new TopBar(driver);
this.navigation = new Navigation(driver);
this.navigate = new Navigate();
this.widget = new SpotifyWidgetPageObject(driver);
}
use of com.wikia.webdriver.elements.mercury.components.TopBar in project selenium-tests by Wikia.
the class TwitterTests method init.
private void init() {
this.topBar = new TopBar(driver);
this.navigation = new Navigation(driver);
this.navigate = new Navigate();
this.widget = new TwitterWidgetPageObject(driver);
}
use of com.wikia.webdriver.elements.mercury.components.TopBar in project selenium-tests by Wikia.
the class VKTests method init.
private void init() {
this.topBar = new TopBar(driver);
this.navigation = new Navigation(driver);
this.navigate = new Navigate();
this.widget = new VKWidgetPageObject(driver);
}
use of com.wikia.webdriver.elements.mercury.components.TopBar in project selenium-tests by Wikia.
the class TopBarTests method mercury_topbar_topBarIsAlwaysVisible.
@Test(groups = "mercury_topbar_topBarIsAlwaysVisible")
public void mercury_topbar_topBarIsAlwaysVisible() {
TopBar topBar = new ArticlePage().open(MercurySubpages.MAIN_PAGE).getTopBar();
Assertion.assertTrue(topBar.isNavigationBarVisible());
Assertion.assertTrue(topBar.isLogoVisible());
Assertion.assertTrue(topBar.isHamburgerIconVisible());
Assertion.assertTrue(topBar.isSearchIconVisible());
driver.executeScript("window.scrollTo(100, document.body.scrollHeight)");
Assertion.assertTrue(topBar.isNavigationBarVisible());
Assertion.assertTrue(topBar.isLogoVisible());
Assertion.assertTrue(topBar.isHamburgerIconVisible());
Assertion.assertTrue(topBar.isSearchIconVisible());
}
Aggregations