MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / setAutodetect

Method setAutodetect

java/src/org/openqa/selenium/Proxy.java:200–212  ·  view source on GitHub ↗

Specifies whether to autodetect proxy settings. @param autodetect set to true to use proxy auto detection, false to leave proxy settings unspecified @return reference to self

(boolean autodetect)

Source from the content-addressed store, hash-verified

198 * @return reference to self
199 */
200 public Proxy setAutodetect(boolean autodetect) {
201 if (this.autodetect == autodetect) {
202 return this;
203 }
204 if (autodetect) {
205 verifyProxyTypeCompatibility(ProxyType.AUTODETECT);
206 this.proxyType = ProxyType.AUTODETECT;
207 } else {
208 this.proxyType = ProxyType.UNSPECIFIED;
209 }
210 this.autodetect = autodetect;
211 return this;
212 }
213
214 /**
215 * Gets the HTTP proxy.

Callers 4

testAutodetectProxyMethod · 0.95
autodetectProxyToJsonMethod · 0.95
ProxyMethod · 0.95

Calls 1