use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject in project selenium-tests by Wikia.
the class AllTagsTests method beforeMethod.
@BeforeMethod(alwaysRun = true)
public void beforeMethod() {
widgets = new ArrayList<>();
widgets.add(new PollsnackWidgetPageObject(driver));
widgets.add(new SoundCloudWidgetPageObject(driver));
widgets.add(new SpotifyWidgetPageObject(driver));
widgets.add(new TwitterWidgetPageObject(driver));
widgets.add(new VKWidgetPageObject(driver));
widgets.add(new WeiboWidgetPageObject(driver));
widgets.add(new GoogleFormWidgetPageObject(driver));
widgets.add(new PolldaddyWidgetPageObject(driver));
widgets.add(new PlaybuzzWidgetPageObject(driver));
widgets.add(new ApesterWidgetPageObject(driver));
String content = ">>> " + DateTime.now().getMillis() + " <<<";
for (WidgetPageObject widget : widgets) {
content += widget.getSingleTag();
}
ArticleContent articleContent = new ArticleContent();
articleContent.clear(ARTICLE_NAME);
articleContent.push(content, ARTICLE_NAME);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject in project selenium-tests by Wikia.
the class AllTagsTests method MercuryAllTagsWidgetTest_003_isLoadedOnSecondVisitFromDifferentArticle.
@Test(groups = "MercuryAllTagsWidgetTest_003")
public void MercuryAllTagsWidgetTest_003_isLoadedOnSecondVisitFromDifferentArticle() {
init();
navigate.toPage(ARTICLE_NAME);
topBar.openSearch().navigateToPage(QUERY_1);
topBar.openSearch().navigateToPage(QUERY_2);
for (WidgetPageObject widget : widgets) {
Assertion.assertTrue(widget.isLoaded(), MercuryMessages.INVISIBLE_MSG);
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject in project selenium-tests by Wikia.
the class AllTagsTests method MercuryAllTagsWidgetTest_001_isLoadedOnFirstVisitDirectlyFromUrl.
@Test(groups = "MercuryAllTagsWidgetTest_001")
public void MercuryAllTagsWidgetTest_001_isLoadedOnFirstVisitDirectlyFromUrl() {
init();
navigate.toPage(ARTICLE_NAME);
for (WidgetPageObject widget : widgets) {
Assertion.assertTrue(widget.isLoaded(), MercuryMessages.INVISIBLE_MSG);
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject in project selenium-tests by Wikia.
the class AllTagsTests method prepareTest.
@BeforeMethod(alwaysRun = true)
public void prepareTest() {
driver.manage().timeouts().pageLoadTimeout(100, TimeUnit.SECONDS);
widgets = new ArrayList<>();
widgets.add(new PollsnackWidgetPageObject(driver));
widgets.add(new SoundCloudWidgetPageObject(driver));
widgets.add(new SpotifyWidgetPageObject(driver));
widgets.add(new TwitterWidgetPageObject(driver));
widgets.add(new VKWidgetPageObject(driver));
widgets.add(new WeiboWidgetPageObject(driver));
widgets.add(new GoogleFormWidgetPageObject(driver));
widgets.add(new PolldaddyWidgetPageObject(driver));
widgets.add(new PlaybuzzWidgetPageObject(driver));
widgets.add(new ApesterWidgetPageObject(driver));
String content = "";
for (WidgetPageObject widget : widgets) {
content += widget.getSingleTag();
}
ArticleContent articleContent = new ArticleContent();
articleContent.clear(ARTICLE_NAME);
articleContent.push(content, ARTICLE_NAME);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject in project selenium-tests by Wikia.
the class AllTagsTests method MercuryAllTagsWidgetTest_002_isLoadedOnFirstVisitFromDifferentArticle.
@Test(groups = "MercuryAllTagsWidgetTest_002")
public void MercuryAllTagsWidgetTest_002_isLoadedOnFirstVisitFromDifferentArticle() {
init();
navigate.toPage(MercurySubpages.MAIN_PAGE);
topBar.openSearch().navigateToPage(QUERY_2);
for (WidgetPageObject widget : widgets) {
Assertion.assertTrue(widget.isLoaded(), MercuryMessages.INVISIBLE_MSG);
}
}
Aggregations