public class ProxyFactory extends Object
Proxy instances.| 限定符和类型 | 方法和说明 |
|---|---|
org.openqa.selenium.Proxy |
getAutodetectProxy()
This is a proxy which will have its settings automatically configured.
|
org.openqa.selenium.Proxy |
getConfigUrlProxy(String pacUrl)
If the proxy can be configured using a PAC file at a URL, set this value to the location of this PAC file.
|
org.openqa.selenium.Proxy |
getDirectProxy()
This will not use a proxy and expects a direct connection to the internet.
|
static ProxyFactory |
getInstance() |
org.openqa.selenium.Proxy |
getManualProxy(ProxyHostPort httpProxy,
ProxyHostPort httpsProxy,
ProxyHostPort ftpProxy,
ProxyHostPort socksProxy,
String noProxy)
This returns a
Proxy with HTTP, HTTPS and FTP hosts and ports configured as specified. |
org.openqa.selenium.Proxy |
getSystemProxy()
This will sttempt to use the system's proxy settings.
|
public static ProxyFactory getInstance()
public org.openqa.selenium.Proxy getManualProxy(ProxyHostPort httpProxy, ProxyHostPort httpsProxy, ProxyHostPort ftpProxy, ProxyHostPort socksProxy, String noProxy)
Proxy with HTTP, HTTPS and FTP hosts and ports configured as specified.httpProxy - is the http proxy host and porthttpsProxy - is the https proxy host and portftpProxy - is the ftp proxy host and portsocksProxy - is the socks proxy host and portnoProxy - is a comma separated list of hosts that will bypass the proxypublic org.openqa.selenium.Proxy getDirectProxy()
public org.openqa.selenium.Proxy getAutodetectProxy()
public org.openqa.selenium.Proxy getConfigUrlProxy(String pacUrl)
pacUrl - is the url to the Proxy PAC filepublic org.openqa.selenium.Proxy getSystemProxy()
Copyright © 2023. All rights reserved.