Search in sources :

Example 1 with VideoComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject in project selenium-tests by Wikia.

the class ArticlePageObject method clickThumbnailVideoInline.

public VideoComponentObject clickThumbnailVideoInline() {
    WebElement thumbnail = getThumbnailVideoInline();
    wait.forElementClickable(thumbnail);
    thumbnail.click();
    PageObjectLogging.log("clickThumbnailVideoInline", "Video thumbnail is clicked", true);
    verifyVideoInline();
    Integer videoWidth = getVideoWidth(thumbnail);
    return new VideoComponentObject(driver, videoInline, videoWidth);
}
Also used : VideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject) VetAddVideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject) WebElement(org.openqa.selenium.WebElement)

Example 2 with VideoComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject in project selenium-tests by Wikia.

the class ArticlePageObject method verifyVideoAutoplay.

public void verifyVideoAutoplay(String providerName) {
    VideoComponentObject video = new VideoComponentObject(driver, videoInline);
    video.verifyVideoAutoplay(providerName, true);
}
Also used : VideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject) VetAddVideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)

Example 3 with VideoComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject in project selenium-tests by Wikia.

the class PlayingVideoTests method PlayingVideoTests_002_ooyala.

@Test(groups = { "Media", "ProviderTests", "PlayingVideoTests", "PlayingVideoTests_002" })
@Execute(onWikia = "sktest123", disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void PlayingVideoTests_002_ooyala() {
    String articleName = "VideoOoyalaAgegateInline";
    ArticlePageObject article = new ArticlePageObject().open(articleName);
    article.verifyVideo();
    VideoComponentObject video = article.clickThumbnailVideoInline();
    video.verifyVideoEmbedWidth();
    video.verifyVideoOoyalaAgeGate();
    video.verifyVideoObjectVisible();
    video.verifyVideoOoyalaEmbed();
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 4 with VideoComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject in project selenium-tests by Wikia.

the class PlayingVideoTests method PlayingVideoTests_001_ooyala.

@Test(groups = { "Media", "ProviderTests", "PlayingVideoTests", "PlayingVideoTests_001" })
@Execute(onWikia = "sktest123", disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void PlayingVideoTests_001_ooyala() {
    String articleName = "VideoOoyalaAgegateLightbox";
    ArticlePageObject article = new ArticlePageObject().open(articleName);
    article.verifyVideo();
    LightboxComponentObject lightbox = article.clickThumbnailVideoLightbox();
    lightbox.verifyLightboxVideo();
    VideoComponentObject video;
    video = lightbox.getVideoPlayer();
    video.verifyVideoEmbedWidth();
    video.verifyVideoOoyalaAgeGate();
    video.verifyVideoObjectVisible();
    video.verifyVideoOoyalaEmbed();
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject) LightboxComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 5 with VideoComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject in project selenium-tests by Wikia.

the class PlayingVideoTests method PlayingVideoTests_004_ign.

@Test(groups = { "Media", "ProviderTests", "PlayingVideoTests", "PlayingVideoTests_004" })
@Execute(onWikia = "sktest123", disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void PlayingVideoTests_004_ign() {
    int itemNumber = 0;
    String providerName = "ign";
    String queryString = "provider=" + providerName;
    SpecialVideosPageObject specialVideos = new SpecialVideosPageObject(driver).openSpecialVideoPage(wikiURL, queryString);
    LightboxComponentObject lightbox = specialVideos.openLightboxForGridVideo(itemNumber);
    lightbox.verifyLightboxPopup();
    lightbox.verifyLightboxVideo();
    lightbox.verifyVideoAutoplay(providerName);
    VideoComponentObject video = lightbox.getVideoPlayer();
    video.verifyVideoIframeVisible();
    video.verifyVideoIframeWidth();
    video.verifyVideoIgnEmbed();
}
Also used : VideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject) SpecialVideosPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject) LightboxComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Aggregations

VideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject)7 Execute (com.wikia.webdriver.common.core.annotations.Execute)4 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)4 Test (org.testng.annotations.Test)4 LightboxComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject)3 VetAddVideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)2 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)2 SpecialVideosPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject)2 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)1 WebElement (org.openqa.selenium.WebElement)1