use of com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_009_filepage_image.
/**
* Open lightbox from Special:NewFiles, verify title url, verify More Info button and verify file
* page (logged-in user)
*/
@Test(groups = "LightboxTest_009")
@RelatedIssue(issueID = "MAIN-6170", comment = "Test manually")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_009_filepage_image() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
SpecialNewFilesPage specialNewFiles = base.openSpecialNewFiles(wikiURL);
int itemNumber = 2;
LightboxComponentObject lightbox = specialNewFiles.openLightbox(itemNumber);
lightbox.verifyLightboxPopup();
lightbox.verifyLightboxImage();
// lightbox.verifyTitleUrl(fileUrl);
// lightbox.verifyMoreInfoUrl(fileUrl);
FilePage filePage = lightbox.clickTitle();
filePage.verifyTabsExistImage();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_001_unusedFiles.
@Test(groups = "LightboxTest_001")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_001_unusedFiles() {
LightboxComponentObject lightbox = new SpecialUnusedFilesPage().open().getGalleryGrid().openLightboxForGridImage(0);
lightbox.verifyLightboxPopup();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject 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.lightbox.LightboxComponentObject 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();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject 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();
}
Aggregations