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);
}
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);
}
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();
}
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();
}
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();
}
Aggregations