There seems to be an issue preventing the Chrome browser from launching with the error message: "ERROR: connect ECONNREFUSED 127.0

My setup includes:

  • Operating System: Windows 10 (64 bit)
  • Browser: Chrome version 58
  • Node.js: 6.10.1
  • Npm: 3.10.10
  • Chromedriver: 2.29.0

After running my tests with Chrome using Selenium standalone, I encountered an error in the console where Selenium was launched:

Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
        at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:193)
        ...
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:41643/status] to be available after 20002 ms

Furthermore, when I tried to access 27.0.0.1:4444 in the browser after opening Selenium standalone and loading the page, I received the following error in the console:

chrome
Error: connect ECONNREFUSED 127.0.0.1:4444

I have attempted switching between different versions of Node.js and npm, as well as using webdriver-manager instead of the selenium-standalone server, but the issue persists.

Interestingly, when I switch from Firefox to Chrome, the FF browser actually opens...

Previously, everything worked smoothly with Chrome until it suddenly stopped working. The current configurations match those of another team member who did not encounter this problem originally.

Answer №1

Facing a similar problem, I decided to upgrade my chromedriver version and that seemed to fix the issue.

Answer №2

It seems like the Chrome driver hasn't been properly started. You have two options to fix this issue:

  • Make sure that chromedriver.exe (latest version) is located in one of the directories specified in your PATH environment variable.

  • Alternatively, you can specify the location of the chromedriver file in your code. Although I personally do it in Java, there is a helpful discussion on how to do it in Javascript here: Passing require('chromedriver').path directly to selenium-webdriver

If you have already taken these steps and are still encountering the error, please provide the code where you instantiate and initialize the driver.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Encountered an error while running npm run dev on a Laravel Vue 3 project: opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],

I am facing an issue in my Laravel 9 Vue 3 project. When I run php artisan serve and then npm run dev, I encounter the following error: opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'di ...

What could have caused the lack of output from the render function?

I've been working on generating my navigation drawer from JSON data and have everything functioning using components. Now, I'm in the process of refactoring to functions for better performance and to enhance my knowledge of React and JavaScript. ...

In angular, concealing the pagination bar can be achieved when the quantity of pages is lower than the items per page count. Let's delve into

I am facing an issue where I need to hide the pagination bar if the number of pages being rendered is less than the items per page. I attempted to use ng-show but it was not successful. <tr ng-repeat="row in allItems"> ...

Utilizing Jquery to interchange two values and update styling

I am looking to create a script that allows me to select a black div by clicking on it (turning it red), and then transfer the value from the black div into a white div with another click. The functionality works as expected when swapping values between tw ...

Identify all elements that include the designated text within an SVG element

I want to target all elements that have a specific text within an SVG tag. For example, you can use the following code snippet: [...document.querySelectorAll("*")].filter(e => e.childNodes && [...e.childNodes].find(n => n.nodeValue ...

Check the response from the API call

Is there a way to confirm that the birthdate is equal to 1990-07-11? { "count": 1, "results": [ { "birthDate": "1990-07-11", "cardNumber": "0QBD0040267646", "cellPhone": "(514) 333-4444", " ...

Looking for matching index in rotated array

Currently, I am working on a design with a reference rectangle (colored in red). Within a rotated container div (#map), I am trying to create a duplicate rectangle (in yellow) that matches the size and position of the original "base" rectangle, regardless ...

most efficient method to execute numerous API requests at the same time

Currently, I am developing a backend using expressJS. Imagine that I need to make 10,000 calls to an API consecutively and store the obtained data in a database. What would be the most effective approach for achieving this task? Is it possible that Promis ...

Locating div element text using span element in Selenium with C#

I need to extract the text inside a <div> element, but I can only use a <span> element within it. <div> <span id="lblName" class="fieldTitle">Name</span> John </div> Is there a way to retrieve the text "John" b ...

The issue with AngularJS ng-show and $timeout functionality not functioning as expected

As a newcomer to AngularJS, I recently started an individual project utilizing ng-show and if else statements with $timeout. Despite my efforts, I have been unable to make the answers timeout after being displayed for a few seconds. I've tried various ...

Storing JSONP data in a variable: Tips and Tricks

Having an issue with storing JSONP data into variables and using it as input for a Google Pie Chart. Consider the following: Data in test.json: { "name": "ProjA", sp": 10, "current": 20 } The goal is to retrieve the SP value. Attempted solution usin ...

A chart using JavaScript that displays text values instead of a traditional website

I am a student with no background in programming, however, for my project I need to create a chart based on values from a txt file to display sensor data. I came across a chart that retrieves its values from a website, but I would like to modify it so it c ...

What is the significance of the term "Object object"?

I am new to javascript and encountering an issue. When I use alert in my script, the output data is shown as [Object object]. The function below is called when the button (onClick) is clicked. There are [Object object] elements in the array. The last line ...

Issues with AngularJS UI Router functionality are being experienced specifically on localhost

What is causing the discrepancy in UI-Router functionality between JSFiddle and localhost? The localhost link is http://127.0.0.1:54046/preview/app/index.html. Have I overlooked something crucial here? There are no visible JS errors present in the console. ...

Tips for populating CKEditor using Capybara with the WebKit or Selenium driver

Is there a way to populate a CKEditor field in Capybara with a javascript enabled driver such as capybara-webkit or selenium? ...

Encountering a Selenium Webdriver issue of "Element not click-able at specified point" in regards to PrimeFaces SelectOneMenu

I've browsed through various resources to find a solution to my current issue, but none of the suggested fixes seem to work for me. The problem I'm facing is that my tests on SelectOneMenu elements are successful in Firefox and Internet Explorer, ...

Is it safe to utilize an AngularJS filter for parsing a URL?

When working on a web application, my client-side (angularjs based) receives JSON data from a web service. The JSON can contain a text field with some URLs, such as: blah blah ... http://www.example.com blah blah blah ... To render these links as HTML, I ...

Issue with cross-origin in Salesforce reply (Access-Control-Allow-Origin)

While attempting to retrieve records from Salesforce using external local files via JS, I encountered an issue. Although I can see a response in the network tab, the console displayed the following error message: "XMLHttpRequest cannot load . No 'A ...

Is there a way to keep the text animation going even when I'm not hovering over it with the cursor?

Is there a way to make text continue animating on the page even when the cursor is not placed on it? I understand the hover function, but how can I ensure the text keeps animating without interruption? $(document).ready(function () { $("#start&q ...

Animations experiencing delays on mobile Chrome

I am currently exploring the world of website animations. I have a version of the jsfiddle code linked below that is similar to what I am working on. The animations function perfectly when viewed on desktop, but when accessed on mobile - specifically on my ...