The Selenium server is currently operational, however, it is encountering issues while attempting to establish a connection with the

I am currently working on setting up test automation using WebdriverIO. After successfully installing all the necessary packages with selenium-standalone, I encountered an issue when trying to start the server.

https://i.sstatic.net/7K1O5.png

Upon running the command "

selenium-standalone start

" I received the following error message:

11:46:41.260 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
11:46:41.373 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444
2019-02-12 11:46:41.429:INFO::main: Logging initialized @411ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:46:41.705 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
11:46:42.103 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
C:\dev\v5\flatsite-qaautomation\node_modules\selenium-standalone\bin\selenium-standalone:79
        throw err;
        ^

Error: Unable to connect to selenium
    at Timeout.hasStarted [as _onTimeout] (C:\dev\v5\flatsite-qaautomation\node_modules\selenium-standalone\lib\check-started.js:17:10)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)

If anyone has any insights or solutions to this problem, your help would be greatly appreciated.

Answer №1

Consider inserting 127.0.0.1 localhost into your

Run this command: sudo open -a TextEdit /etc/hosts

After saving and closing the file, restart the selenium server

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

Refreshing a Node.js server page upon receiving a JSON update

My web application serves as a monitoring interface for tracking changes in "objects" processed by the computer, specifically when they exceed a certain threshold. The Node Js server is running on the same machine and is responsible for displaying data in ...

Tips for matching variable content with button identification to display content within a variable for ThreeJS?

I'm currently working on a project using Three.js where I need to load multiple 3D models and store them in an array. Each model has a corresponding button with a unique ID that when clicked, should add that specific model to the scene and remove any ...

After cloning the variable from props, the Vue 3 Composition API variable becomes undefined

I have a main component containing code and tables, including a modal that is displayed based on a boolean value. The main component features the following modal: <ConfirmPaymentModal ref="confirmPaymentModal" :invoice="markAsPa ...

Make the div disappear upon clicking the back button in the browser

When a user selects a thumbnail, it triggers the opening of a div that expands to cover the entire screen. Simultaneously, both the title and URL of the document are modified. $('.view-overlay').show(); $('html,body').css("overflow","h ...

React project automatically refreshing when local server generates new files

I have developed a tool for developers that allows them to retrieve device data from a database for a specific time period, generate plots using matplotlib, save the plots locally, and display them on a webpage. The frontend is built using create-react-app ...

Filtering a list with a custom condition using the jQuery method $.grep()

When working with a list, I often need to filter out certain objects based on specific conditions: var list = [ { mode: 1, type: 'foo' }, { mode: 2, type: 'foo' }, { mode: 3, type: 'foo' }, // remove this item ...

Errors are being displayed in the console when attempting to use Vuex getters in a component. This is happening because the Vuex state properties are still null at the time the getters

When assigning results from GET requests to my Vuex state properties, it's expected that they won't be available instantly. However, I have a getter like the following: findChampion: (state) => (id) => { let championId = id.toString() ...

Changing innerHTML in CoffeeScript

Are there other options instead of using the 'innerHTML' property in CoffeeScript? In JavaScript, you typically write something like this: document.getElementById('element').innerHTML = "blah_blah" Is there a different approach to ac ...

Animated Debugging with Node.js

Encountering an issue with code that runs smoothly on other devices but seems to be laptop-specific. Even a simple "hello world" application is only displaying a debug image instead of the expected output. repository folder> node app.js Express Server ...

What is the method to include a date object in the request body when sending an axios post request?

My API contains data for name and date. The type of name is a string, and the type of date is also a string. Additionally, this project includes the latest version of Vue.js. postTodo(){ axios({ method: 'post', url: 'my ...

Is there a way to determine if an iframe has finished expanding?

I have a contenteditable iframe that can be resized so that not all of its contents are visible. What is the best way to determine if this iframe is fully expanded or not? ...

What is the best way to save and retrieve a JSON object as a cookie using vanilla JavaScript?

When it comes to writing the cookie, I have no issues doing it like so: ["4c3dd477c441e17957000002","4c2ac3cc68fe54616e00002e","4c3dd477c441e17957000003","4c3dd477c441e17957000004"] But what's the trick to reading the cookie? I'm currently wo ...

Transform large GeoJSON files into TopoJSON format

I am struggling to convert a large GeoJSON file that is approximately 1.4GB in size. The command line tool is unable to handle the file due to its filesize. I typically use the topojson command tool like so: topojson {{ input file }} >> {{ output fi ...

Dynamic VueJS v-model binding target

We are currently in the process of designing a form with numerous dependencies that span across different levels of inputs. For example, if parent1.input1 = 'test', then child1.input1 should also be 'test'. However, if child1.input2 = & ...

Issue with Angular: no action taken when re-calling function and utilizing the

In one of my components, I am using route parameters to switch between different "tabs". Whenever I switch tabs, I call a function specific to that tab which is subscribed to the route parameters. Here is an example of one of those functions: getUserFeed( ...

What is the method for inputting text into the 'textarea' tag with Selenium?

I am trying to input the text "ABCD" as displayed in the image on https://translate.google.com/ I have attempted the following methods without success. Using sendKeys()--unsuccessful. driver.findElement(By.xpath("//textarea[@id='sourceis']")) ...

Using JavaScript, extract individual objects from a JSON object

Recently, I've been tasked with displaying items from a JSON-file in a well-organized manner. However, the format of the JSON file is unfamiliar to me. The code snippet provided below pertains to this task: function readFile(file) { var rawFile = ...

Executing the serverless invoke local command produces no output

Attempting to locally run a node lambda for debugging purposes. Utilizing Serverless and the provided launch configuration in vsCode. { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launc ...

Adding several <div> elements with the correct indices

I need help with a dynamic form that requires users to select a state before revealing the corresponding cities within that state. <form method="post"> <div class="summary"> <div class="trip"> <select name="State" class="s ...

Strategies for identifying specific children in my particular situation

Here's a snippet of my code: <ul id='nav'> <li><h1 id='unique' class='title'>Topic</h1></li> <li><h1 class='toptitle'>Department</h1></ ...