Update dependency on selenium-webdriver to 3.7.0 or newer
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:4
- Comments:17 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
@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.