Proxy proxy = new Proxy();
proxy.setProxyAutoconfigUrl("http://youdomain/config");
capabilities.setCapability(CapabilityType.PROXY, proxy);
Report.action("With proxy '" + Config.proxy_url + "'");
}
WebDriver driver = new FirefoxDriver(capabilities);
return driver;
} catch (Throwable th) {
log.info(th.getMessage());
}
return new NullWebDriver();