private void enableTorSocksProxy(DesiredCapabilities capabilities) { mProxy = new Proxy(); mProxy.setHttpProxy(null); mProxy.setSslProxy(null); mProxy.setSocksProxy("127.0.0.1:9951");//9150 mProxy.setSocksVersion(5); mProxy.setProxyType(Proxy.ProxyType.MANUAL); capabilities.setCapability("proxy", mProxy); }
....
mDriver = new ChromeDriver(capabilities);
Комментариев нет:
Отправить комментарий