1

I need to use webdriver-manager to execute:

 webdriver-manager update --proxy=https://proxy.company.com:8080

But get

webdriver-manager: using local installed version 12.0.6
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:1020:11)
    at TLSWrap.onread (net.js:568:26)

i.e. the proxy command still does not seem to work for 12.0.6 for me.

djangofan
  • 28,471
  • 61
  • 196
  • 289
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292

2 Answers2

3

What worked for me was adding --ignore_ssl in addition to --proxy

webdriver-manager update --proxy=http://someproxy:8080 --ignore_ssl
Vojtech Ruzicka
  • 16,384
  • 15
  • 63
  • 66
1

As question title sounds if-you want to use webDriver manager being behind proxy then use it like below in your browser instantiation class-

WebDriverManager.chromedriver().proxy("YourProxyServerUrl:YourPort").setup();

driver = new ChromeDriver(chromeOptions-if you have);

And if you looking for:updating the selenium webdriver using the "webdriver-manager Refer below thread - selenium webdriver manager update - npm

Satyendra Sharma
  • 1,436
  • 13
  • 19
  • Thanks, this resolved one of my problem but I'm facing same issue with other dependencies too for ex- Cucumber Reports[masterthought one] and javax.mail for Sending email ..what to do? – saTya Sep 05 '19 at 18:00
  • You can Configure maven proxy urls in settings.xml as per your proxy needs. This file is located in the maven installation 'conf' folder. – Satyendra Sharma Sep 06 '19 at 03:27
  • When you have a proxy url that contains a username/password, I bet this solution will not work. For example, by default Java ignores Basic auth on proxy tunneling. But still, I think this answer needs more evidence. Also, the question was Javascript based, not Java. – djangofan May 22 '20 at 16:19