Search in sources :

Example 6 with GalleryBuilderComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.gallery.GalleryBuilderComponentObject in project selenium-tests by Wikia.

the class SourceEditModePageObject method addComponent.

public Object addComponent(String componentName) {
    if ("slideshow".equals(componentName)) {
        wait.forElementVisible(createSlideshow);
        createSlideshow.click();
        PageObjectLogging.log("addComponent", "selected " + componentName + " component", true);
        return new SlideshowBuilderComponentObject(driver);
    } else if ("gallery".equals(componentName)) {
        wait.forElementVisible(createGallery);
        createGallery.click();
        PageObjectLogging.log("addComponent", "selected " + componentName + " component", true);
        return new GalleryBuilderComponentObject(driver);
    } else if ("slider".equals(componentName)) {
        wait.forElementVisible(createSlider);
        createSlider.click();
        PageObjectLogging.log("addComponent", "selected " + componentName + " component", true);
        return new SliderBuilderComponentObject(driver);
    } else {
        PageObjectLogging.log("addComponent", "not supported component name: " + componentName, false);
        return null;
    }
}
Also used : SliderBuilderComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.slider.SliderBuilderComponentObject) SlideshowBuilderComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.slideshow.SlideshowBuilderComponentObject) GalleryBuilderComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.gallery.GalleryBuilderComponentObject)

Aggregations

GalleryBuilderComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.gallery.GalleryBuilderComponentObject)6 Test (org.testng.annotations.Test)5 Execute (com.wikia.webdriver.common.core.annotations.Execute)4 AddPhotoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.addphoto.AddPhotoComponentObject)4 VisualEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject)4 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)2 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)2 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)2 CreationTicket (com.wikia.webdriver.common.core.annotations.CreationTicket)1 SliderBuilderComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.slider.SliderBuilderComponentObject)1 SlideshowBuilderComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.slideshow.SlideshowBuilderComponentObject)1 SourceEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject)1 SpecialCreatePage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialCreatePage)1 BlogPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.blog.BlogPageObject)1