question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update dependency on selenium-webdriver to 3.7.0 or newer

See original GitHub issue

I have been seeing a lot of random errors like

- Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:62416
at ClientRequest.<anonymous> (C:\AzureAgentUI14\_work\4\s\src\Gandalf.Web\node_modules\selenium-webdriver\http\index.js:238:15)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)

While exploring this error I found that it is selenium-webdriver that throws the error (as also noted in the error dump above). Protractor relies on selenium-webdriver@3.6.0.

However, in selenium-webdriver@3.7.0 they fixed this issue and implemented a more generic retry feature in case of any network issues with the webdriver socket.

Is there a possibility to update the dependencies on selenium-webdriver? As this would fix some of our problems with unstable tests.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
tbowmocommented, May 22, 2018

@simonua I ended up using https://github.com/ds300/patch-package to patch the http client in selenium-webdriver. Basically just copying over this file to node_modules/selenium-webdriver/http, and create a patch using the patch-package module

You have to edit the index.js after you copied it over, as it doesn’t do retries on ECONNREFUSED out of the box

1reaction
tbowmocommented, Sep 5, 2018

@rene-leanix In our case we needed to add ECONNREFUSED to the retry list as well, as we got frequent issues with that on our azure CI agents.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update dependency on selenium-webdriver to 3.7.0 or newer
I have been seeing a lot of random errors like - Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:62416 at ClientRequest.
Read more >
Upgrade to Selenium 4
These are the steps we will follow to upgrade to Selenium 4: Preparing our test code; Upgrading dependencies; Potential errors and deprecation ...
Read more >
Selenium.WebDriver 3.7.0 - NuGet
Version Downloads Last updated 4.7.0 79,065 21 days ago 4.6.0 205,003 2 months ago 4.5.1 280,860 3 months ago
Read more >
selenium-java » 3.7.0 - Maven Repository
Compile Dependencies (17) ; Core Utils Apache 2.0, logo, com.google.guava » guava2 vulnerabilities ; Base64 Apache 2.0, logo, commons-codec » ...
Read more >
What version of chrome is required for selenium version 3.7.1 ...
I believe I updated my system yesterday as well. <dependency> <groupId>org.seleniumhq.selenium</groupId> ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found