All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.galasa.selenium.internal.OperaOptionsImpl Maven / Gradle / Ivy

The newest version!
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.selenium.internal;

import java.io.File;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.openqa.selenium.Platform;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.opera.OperaOptions;

import dev.galasa.selenium.IOperaOptions;

public class OperaOptionsImpl implements IOperaOptions {
	
	public OperaOptions options;

    public OperaOptionsImpl() {
        options = new OperaOptions();
    }
    
    protected OperaOptions get() {
    	return this.options;
    }

	@Override
	public void addEncodedExtensions(String... encoded) {
		options.addEncodedExtensions(encoded);
	}

	@Override
	public void addEncodedExtensions(List encoded) {
		options.addEncodedExtensions(encoded);
	}

	@Override
	public void addExtensions(File... paths) {
		options.addExtensions(paths);
	}

	@Override
	public void addExtensions(List paths) {
		options.addExtensions(paths);
	}

	@Override
	public void setBinary(File path) {
		options.setBinary(path);
	}

	@Override
	public void setBinary(String path) {
		options.setBinary(path);
	}

	@Override
	public void addArguments(String... arguments) {
		options.addArguments(arguments);
	}

	@Override
	public void addArguments(List arguments) {
		options.addArguments(arguments);
	}

	@Override
	public void setCapability(String key, Object value) {
		options.setCapability(key, value);
	}

	@Override
	public void setCapability(String key, String value) {
		options.setCapability(key, value);
	}

	@Override
	public void setCapability(String key, Boolean value) {
		options.setCapability(key, value);
	}

	@Override
	public void setCapability(String key, Platform value) {
		options.setCapability(key, value);
	}

	@Override
	public void setExperimentalOption(String key, Platform value) {
		options.setExperimentalOption(key, value);
	}

	@Override
	public void setProxy(Proxy proxy) {
		options.setProxy(proxy);
	}


	@Override
	public Map asMap() {
		return options.asMap();
	}

	@Override
	public String getBrowserName() {
		return options.getBrowserName();
	}

	@Override
	public Object getCapability(String capabilityName) {
		return options.getCapability(capabilityName);
	}

	@Override
	public Set getCapabilityNames() {
		return options.getCapabilityNames();
	}

	@Override
	public Object getExperimentalOption(String name) {
		return options.getExperimentalOption(name);
	}

	@Override
	public Platform getPlatform() {
		return options.getPlatform();
	}

	@Override
	public String getVersion() {
		return options.getVersion();
	}

	@Override
	public boolean is(String capabilityName) {
		return options.is(capabilityName);
	}

	@Override
	public boolean isJavaScriptEnabled(String capabilityName) {
		return options.isJavascriptEnabled();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy