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;
}
}
Aggregations