Package jp.vmi.selenium.webdriver

Source Code of jp.vmi.selenium.webdriver.SafariDriverFactory

package jp.vmi.selenium.webdriver;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.safari.SafariDriver;

/**
* Factory of {@link SafariDriver}.
*/
public class SafariDriverFactory extends WebDriverFactory {

    @Override
    public boolean isProxySupported() {
        return false;
    }

    @Override
    public WebDriver newInstance(DriverOptions driverOptions) {
        DesiredCapabilities caps = setupProxy(DesiredCapabilities.safari(), driverOptions);
        caps.merge(driverOptions.getCapabilities());
        SafariDriver driver = new SafariDriver(caps);
        setInitialWindowSize(driver, driverOptions);
        return driver;
    }
}
TOP

Related Classes of jp.vmi.selenium.webdriver.SafariDriverFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.