Search in sources :

Example 6 with WatchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject in project selenium-tests by Wikia.

the class FollowVideosTests method FollowVideo_001_setup.

@Test(groups = "FollowVideo")
@Execute(asUser = User.USER)
public void FollowVideo_001_setup() {
    WikiBasePageObject base = new WikiBasePageObject();
    SpecialVideosPageObject special = base.openSpecialVideoPage(wikiURL);
    WatchPageObject watch = special.unfollowVideo(wikiURL, special.getRandomVideo());
    watch.confirmWatchUnwatch();
    special.verifyPageUnfollowed();
    videoName = special.getHeaderText();
}
Also used : WatchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) SpecialVideosPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

WatchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject)6 Test (org.testng.annotations.Test)6 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)5 Execute (com.wikia.webdriver.common.core.annotations.Execute)4 MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)2 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)1 UserProfilePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.UserProfilePageObject)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1 SpecialNewFilesPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialNewFilesPage)1 SpecialVideosPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject)1 BlogPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.blog.BlogPageObject)1