org.openqa.selenium
Class Proxy
java.lang.Object
org.openqa.selenium.Proxy
public class Proxy
- extends Object
Configuration parameters for using proxies in WebDriver.
Generally you should pass an object of this type to a WebDriver constructor, or in some cases to
the profile object used in the WebDriver construction.
For simplicity, setting values here commits the proxy to a certain configuration. That is, it is
an error to set an httpProxy manually and then turn on proxy autodetect.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Proxy
public Proxy()
Proxy
public Proxy(Map<String,?> raw)
getProxyType
public Proxy.ProxyType getProxyType()
setProxyType
public Proxy setProxyType(Proxy.ProxyType proxyType)
- Explicitly sets the proxy type, useful for forcing direct connection on Linux.
- Returns:
isAutodetect
public boolean isAutodetect()
setAutodetect
public Proxy setAutodetect(boolean autodetect)
getFtpProxy
public String getFtpProxy()
setFtpProxy
public Proxy setFtpProxy(String ftpProxy)
getHttpProxy
public String getHttpProxy()
setHttpProxy
public Proxy setHttpProxy(String httpProxy)
getNoProxy
public String getNoProxy()
setNoProxy
public Proxy setNoProxy(String noProxy)
getProxyAutoconfigUrl
public String getProxyAutoconfigUrl()
setProxyAutoconfigUrl
public Proxy setProxyAutoconfigUrl(String proxyAutoconfigUrl)
getSslProxy
public String getSslProxy()
setSslProxy
public Proxy setSslProxy(String sslProxy)
Copyright © 2012. All Rights Reserved.