Search in sources :

Example 6 with VideoComponentObject

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

the class PlayingVideoTests method PlayingVideoTests_005_anyclip.

@Test(enabled = false, groups = { "Media", "ProviderTests", "PlayingVideoTests", "PlayingVideoTests_005" })
@RelatedIssue(issueID = "QAART-750", comment = "Test disabled as Selenium doesn't allow to access" + "elements with <object> tag. Check after Selenium update.")
@Execute(onWikia = "sktest123", disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void PlayingVideoTests_005_anyclip() {
    int itemNumber = 0;
    String providerName = "anyclip";
    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.verifyVideoEmbedWidth();
    video.verifyFlashVideoObjectVisible();
    video.verifyVideoAnyclipEmbed();
}
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) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 7 with VideoComponentObject

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

the class LightboxComponentObject method verifyVideoAutoplay.

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

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