use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.filepage.FilePage in project selenium-tests by Wikia.
the class VetSpecialVideosTests method SpecialVideos_001_Provider.
@Test(groups = { "VetTests001" })
@Execute(asUser = User.USER)
public void SpecialVideos_001_Provider() {
YoutubeVideo video = YoutubeVideoProvider.getLatestVideoForQuery("flower");
SpecialVideosPageObject specialVideos = new SpecialVideosPageObject(driver);
specialVideos.openSpecialVideoPage(wikiURL);
VetAddVideoComponentObject vetAddingVideo = specialVideos.clickAddAVideo();
vetAddingVideo.addVideoByUrl(video.getUrl());
specialVideos.verifyVideoAdded(video.getTitle());
FilePage filePage = new FilePage().open(video.getFileName());
// filePage.getGlobalNavigation().openAccountNavigation().clickLogOut();
filePage.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
DeletePageObject deletePage = filePage.deletePage();
deletePage.submitDeletion();
filePage = filePage.open(video.getFileName());
filePage.verifyEmptyFilePage();
}
Aggregations