Search in sources :

Example 1 with PlaybuzzWidgetPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject 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);
}
Also used : SoundCloudWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SoundCloudWidgetPageObject) ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) TwitterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.TwitterWidgetPageObject) GoogleFormWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.GoogleFormWidgetPageObject) WeiboWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WeiboWidgetPageObject) ApesterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.ApesterWidgetPageObject) VKWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.VKWidgetPageObject) SoundCloudWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SoundCloudWidgetPageObject) PolldaddyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PolldaddyWidgetPageObject) TwitterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.TwitterWidgetPageObject) SpotifyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SpotifyWidgetPageObject) WidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject) PollsnackWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PollsnackWidgetPageObject) PlaybuzzWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject) SpotifyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SpotifyWidgetPageObject) PollsnackWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PollsnackWidgetPageObject) GoogleFormWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.GoogleFormWidgetPageObject) ApesterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.ApesterWidgetPageObject) WeiboWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WeiboWidgetPageObject) PolldaddyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PolldaddyWidgetPageObject) VKWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.VKWidgetPageObject) PlaybuzzWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with PlaybuzzWidgetPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject 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);
}
Also used : SoundCloudWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SoundCloudWidgetPageObject) ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) TwitterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.TwitterWidgetPageObject) SpotifyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SpotifyWidgetPageObject) GoogleFormWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.GoogleFormWidgetPageObject) WidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject) WeiboWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WeiboWidgetPageObject) ApesterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.ApesterWidgetPageObject) VKWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.VKWidgetPageObject) PollsnackWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PollsnackWidgetPageObject) SoundCloudWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SoundCloudWidgetPageObject) PolldaddyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PolldaddyWidgetPageObject) PlaybuzzWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject) TwitterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.TwitterWidgetPageObject) SpotifyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SpotifyWidgetPageObject) PollsnackWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PollsnackWidgetPageObject) GoogleFormWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.GoogleFormWidgetPageObject) ApesterWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.ApesterWidgetPageObject) WeiboWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WeiboWidgetPageObject) PolldaddyWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PolldaddyWidgetPageObject) VKWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.VKWidgetPageObject) PlaybuzzWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 3 with PlaybuzzWidgetPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject in project selenium-tests by Wikia.

the class PlaybuzzTests method init.

private void init() {
    this.widget = new PlaybuzzWidgetPageObject(driver);
    this.navigate = new Navigate();
}
Also used : Navigate(com.wikia.webdriver.elements.common.Navigate) PlaybuzzWidgetPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject)

Example 4 with PlaybuzzWidgetPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject in project selenium-tests by Wikia.

the class PlaybuzzTests method init.

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

Aggregations

PlaybuzzWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PlaybuzzWidgetPageObject)4 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)2 Navigate (com.wikia.webdriver.elements.common.Navigate)2 ApesterWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.ApesterWidgetPageObject)2 GoogleFormWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.GoogleFormWidgetPageObject)2 PolldaddyWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PolldaddyWidgetPageObject)2 PollsnackWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.PollsnackWidgetPageObject)2 SoundCloudWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SoundCloudWidgetPageObject)2 SpotifyWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.SpotifyWidgetPageObject)2 TwitterWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.TwitterWidgetPageObject)2 VKWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.VKWidgetPageObject)2 WeiboWidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WeiboWidgetPageObject)2 WidgetPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.widget.WidgetPageObject)2 BeforeMethod (org.testng.annotations.BeforeMethod)2 TopBar (com.wikia.webdriver.elements.mercury.components.TopBar)1