Search in sources :

Example 1 with SpecialPromotePageObject

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

the class PromoteTests method PromoteTests_001_changePromoteElements.

@Test(groups = { "PromoteTests_001", "PromoteTests" })
public void PromoteTests_001_changePromoteElements() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
    SpecialPromotePageObject promote = base.openSpecialPromotePage(wikiURL);
    promote.typeIntoHeadline(PageContent.LOREM_IPSUM_SHORT);
    promote.typeIntoDescription(PageContent.LOREM_IPSUM_LONG);
    promote.uploadThumbnailImage(PageContent.FILEPNG);
    promote.verifyUploadedImage(PageContent.FILEPNG);
    promote.modifyThumnailImage(PageContent.FILE2PNG);
    promote.verifyUploadedImage(PageContent.FILE2PNG);
}
Also used : SpecialPromotePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialPromotePageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Aggregations

WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)1 SpecialPromotePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialPromotePageObject)1 Test (org.testng.annotations.Test)1