com.consol.citrus.dsl.builder.SeleniumActionBuilder Maven / Gradle / Ivy
package com.consol.citrus.dsl.builder;
import java.nio.charset.Charset;
import com.consol.citrus.TestActionBuilder;
import com.consol.citrus.selenium.actions.AlertAction;
import com.consol.citrus.selenium.actions.CheckInputAction;
import com.consol.citrus.selenium.actions.ClearBrowserCacheAction;
import com.consol.citrus.selenium.actions.ClickAction;
import com.consol.citrus.selenium.actions.CloseWindowAction;
import com.consol.citrus.selenium.actions.DropDownSelectAction;
import com.consol.citrus.selenium.actions.FindElementAction;
import com.consol.citrus.selenium.actions.GetStoredFileAction;
import com.consol.citrus.selenium.actions.HoverAction;
import com.consol.citrus.selenium.actions.JavaScriptAction;
import com.consol.citrus.selenium.actions.MakeScreenshotAction;
import com.consol.citrus.selenium.actions.NavigateAction;
import com.consol.citrus.selenium.actions.OpenWindowAction;
import com.consol.citrus.selenium.actions.PageAction;
import com.consol.citrus.selenium.actions.SeleniumAction;
import com.consol.citrus.selenium.actions.SetInputAction;
import com.consol.citrus.selenium.actions.StartBrowserAction;
import com.consol.citrus.selenium.actions.StopBrowserAction;
import com.consol.citrus.selenium.actions.StoreFileAction;
import com.consol.citrus.selenium.actions.SwitchWindowAction;
import com.consol.citrus.selenium.actions.WaitUntilAction;
import com.consol.citrus.selenium.endpoint.SeleniumBrowser;
import com.consol.citrus.selenium.model.WebPage;
import com.consol.citrus.util.FileUtils;
import org.springframework.core.io.Resource;
/**
* @author Christoph Deppisch
*/
public class SeleniumActionBuilder implements TestActionBuilder.DelegatingTestActionBuilder {
private final com.consol.citrus.selenium.actions.SeleniumActionBuilder delegate = new com.consol.citrus.selenium.actions.SeleniumActionBuilder();
public SeleniumActionBuilder browser(SeleniumBrowser seleniumBrowser) {
delegate.browser(seleniumBrowser);
return this;
}
public StartBrowserAction.Builder start() {
return delegate.start();
}
public StartBrowserAction.Builder start(SeleniumBrowser seleniumBrowser) {
return delegate.start(seleniumBrowser);
}
public StopBrowserAction.Builder stop() {
return delegate.stop();
}
public StopBrowserAction.Builder stop(SeleniumBrowser seleniumBrowser) {
return delegate.stop(seleniumBrowser);
}
public AlertAction.Builder alert() {
return delegate.alert();
}
public NavigateAction.Builder navigate(String page) {
return delegate.navigate(page);
}
public PageAction.Builder page(WebPage page) {
return delegate.page(page);
}
public PageAction.Builder page(Class extends WebPage> pageType) {
return delegate.page(pageType);
}
public FindElementAction.Builder find() {
return delegate.find();
}
public DropDownSelectAction.Builder select(String option) {
return delegate.select(option);
}
public DropDownSelectAction.Builder select(String ... options) {
return delegate.select(options);
}
public SetInputAction.Builder setInput(String value) {
return delegate.setInput(value);
}
public CheckInputAction.Builder checkInput(boolean checked) {
return delegate.checkInput(checked);
}
public ClickAction.Builder click() {
return delegate.click();
}
public HoverAction.Builder hover() {
return delegate.hover();
}
public ClearBrowserCacheAction.Builder clearCache() {
return delegate.clearCache();
}
public MakeScreenshotAction.Builder screenshot() {
return delegate.screenshot();
}
public MakeScreenshotAction.Builder screenshot(String outputDir) {
return delegate.screenshot(outputDir);
}
public StoreFileAction.Builder store(String filePath) {
return delegate.store(filePath);
}
public GetStoredFileAction.Builder getStored(String fileName) {
return delegate.getStored(fileName);
}
public WaitUntilAction.Builder waitUntil() {
return delegate.waitUntil();
}
public JavaScriptAction.Builder javascript(String script) {
return delegate.javascript(script);
}
public JavaScriptAction.Builder javascript(Resource script) {
return javascript(script, FileUtils.getDefaultCharset());
}
public JavaScriptAction.Builder javascript(Resource scriptResource, Charset charset) {
return delegate.javascript(scriptResource, charset);
}
public OpenWindowAction.Builder open() {
return delegate.open();
}
public CloseWindowAction.Builder close() {
return delegate.close();
}
public SwitchWindowAction.Builder focus() {
return delegate.focus();
}
@Override
public SeleniumAction build() {
return delegate.build();
}
@Override
public TestActionBuilder> getDelegate() {
return delegate;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy