org.openqa.selenium.Proxy.setAutodetect()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中org.openqa.selenium.Proxy.setAutodetect()方法的一些代码示例,展示了Proxy.setAutodetect()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Proxy.setAutodetect()方法的具体详情如下:
包路径:org.openqa.selenium.Proxy
类名称:Proxy
方法名:setAutodetect

Proxy.setAutodetect介绍

[英]Specifies whether to autodetect proxy settings.
[中]指定是否自动检测代理设置。

代码示例

代码示例来源:origin: kg.apc/jmeter-plugins-webdriver

/**
 * This is a proxy which will have its settings automatically configured.
 *
 * @return a proxy object which will try to automatically detect the proxy settings.
 */
public Proxy getAutodetectProxy() {
  return new Proxy()
    .setProxyType(Proxy.ProxyType.AUTODETECT)
    .setAutodetect(true);
}

代码示例来源:origin: org.seleniumhq.selenium/selenium-api

setAutodetect((Boolean) raw.get("autodetect"));

代码示例来源:origin: org.paxml/PaxmlSelenium

proxy.setAutodetect(proxyAutoDetect);

代码示例来源:origin: org.paxml/paxml-selenium

proxy.setAutodetect(proxyAutoDetect);

相关文章