Having trouble establishing a connection with localhost at port 4445 using Nightwatch and Selenium

I am encountering an issue while trying to execute my Nightwatch script in Javascript. The error message I am receiving is:

      \ Connecting to localhost on port 4445...

     ‼ Error connecting to localhost on port 4445.
      × failed
        Error: An error occurred while retrieving a new session: "session not created: This 
        version 
       of ChromeDriver only supports Chrome version 90"   

      × failed
      Error: Nightwatch client is not ready.
                Looks like function "createSession" did not succeed or was not called yet.
      at Object.globals [as get] (C:\automation-Nightwatcg-12-27\QA Automation 
     \node_modules\nightwatch-api\lib\proxy.js:21:17)
      at World.<anonymous> (C:\automation-Nightwatcg-12-27\QA 
      Automation\/cucumber.conf.js:72:17) 

Extracted from nightwatch.js.conf

    webdriver: {
    start_process: !Boolean(process.env.NIGHTWATCH_SELENIUM_GRID),
    port: process.env.NIGHTWATCH_SELENIUM_PORT || 4445,
   
    }, 

I attempted to launch ChromeDriver with the following command:

  Starting ChromeDriver 96.0.4664.45 (76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-refs/branch-
  heads/4664@{#947}) on port 9515
  Only local connections are allowed.
  Please see https://chromedriver.chromium.org/security-considerations for suggestions on 
  keeping ChromeDriver safe.
  ChromeDriver was started successfully.

Upon running ChromeDriver, it appears to be functioning on port 9515. Despite updating the nightwatch.js.conf file with this port configuration, the problem persists.

I have also tried several troubleshooting steps including:

Delete package-lock.json file and node_modules folder, then run npm cache clean followed by npm install: 1-npm cache clean --force 2-npm install

Based on my observation, it seems that there might be a port conflict causing this issue. If anyone has any insights on how to proceed, I would greatly appreciate your help. Thank you in advance.

Answer â„–1

It appears that the current version of ChromeDriver is only compatible with Chrome version 90

This situation indicates a potential compatibility issue between the version of Chrome installed on your system and the version of ChromeDriver being used. Updating both components may resolve this issue.

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

Tips for transferring data between iframes on separate pages

I am currently working on implementing a web calendar module within an iframe on page-b. This module consists of 1 page with two sections. Upon entering zipcodes and house numbers, the inputs are hidden and the calendar is displayed. The technology used he ...

Guidance on uploading a file with AJAX in PHP following the display of a Sweet Alert

I am currently facing an issue with inserting a file input (images) into my database. When I try to insert it, the value returned is empty. Below is the script I am using: <script> $("#insertform").on('submit',(function(e) { ...

Ways to determine if an AngularJS modal is currently displayed

I am currently in the process of determining whether a modal is opened or closed. However, I keep encountering an error that says "cannot read property of open." To address this issue, I realize that I need to connect with $modal.open and retrieve the resu ...

The error states that the type '() => string | JSX.Element' cannot be assigned to the type 'FC<{}>'

Can someone help me with this error I'm encountering? I am fairly new to typescript, so I assume it has something to do with that. Below is the code snippet in question: Any guidance would be greatly appreciated. const Pizzas: React.FC = () => { ...

Using TypeScript to type styled-system props

Currently, I am utilizing styled-system and one of the main features of this library is its shorthand props that allow for simple and quick theming. Although I have streamlined my component, a significant aspect lies here: import React from 'react&a ...

merging inline scripts within the <head> section

I have the following code snippet in my HTML file and am looking for ways to optimize its loading process. <script type="text/javascript"> function downloadJSAtOnload() { var element1 = document.createElement("script"); element1.src = "js/jque ...

The JavaScript code is producing a numerical output instead of the intended array

I am facing an issue with my program that is designed to eliminate items from a list of arguments. function destroyer(arr) { var args = [].slice.call(arr); var data = args.shift(); for(var i = 0; i < args.length; i++){ var j = 0; while(j ...

JavaScript error: Cannot use `.splice()` on [array] ("Uncaught TypeError: collisions.splice is not a function")

Struggling to remove specific items from an array in javascript, the [array].splice function seems to be causing issues. This piece of code is designed to detect collisions between SVG objects (for a game). The goal is to eliminate 3 objects that the pl ...

javascript to retrieve data by reducing

Here is the code snippet I am working with: var points = 4; var yModifier = []; for (var i = 0; i <= points; i++) { yModifier.push([]); }; yModifier.forEach( (a, j) => { var start = j; var end = start + points; fo ...

Launching Chrome using a Python script

I am currently developing a Python script to launch the Chrome browser and bypass Cloudflare bot detection (captcha, Java rendering, etc.). However, I have encountered an issue where Chrome is not being launched using the following script: pip install un ...

What is the best way to locate and list all video links, and include options for "Play Video" and "Download Video"?

I have a project where I am using PHP to crawl and generate video links from the web. Now, I am looking to implement an option for users to either "Play Video" or "Download Video" when a video link is detected, along with adding a video player if the user ...

Using Regex instead of the method resulted in logging an unexpected output, displaying the matched text as $& and the

I have a regular expression that I'm using with the .replace method to extract paragraphs from a string and add them to an array. I've been struggling with my getValues function; when I logged Match and Group1 to the console, I got unexpected re ...

Middleware in Express can be executed more than once

I am encountering a frustrating issue where my middlewares are being called multiple times without explanation. Despite having written short and simple code while learning Express and Node, I cannot pinpoint the reason for this behavior. I find it confusin ...

JavaScript not functioning properly with HTML loaded via .load()

I'm facing a perplexing dilemma: My issue revolves around this JS code: EDIT updated JS $(".img-thumb").on("click", function(){ // displaying the same behavior as .click() thumbID = $(this).attr("id"); console.log(thumbID); $(".gal-act" ...

The latest update of Watir Webdriver (0.9.1) no longer supports launching a Firefox browser instance

When I was using Watir Webdriver v0.9.1 for rails (along with Selenium Webdriver 2.53.1), Firefox would open as expected when browser = Watir::Browser.new :firefox was executed. However, now it fails at that specific line displaying the error message: u ...

Implementing dynamic AngularJS functionality within an older HTML structure using JQuery

I am facing an issue while trying to load dynamic content using AngularJS. In my system, I have legacy pages that utilize JQuery for dynamic loading. However, as I am developing new features with AngularJS, I am encountering the same problem with dynamic ...

I am looking to switch from a hamburger menu to a cross icon when clicked

Hey there, I'm currently working on a Shopify website and trying to make the hamburger menu change to a cross when clicked. I've been experimenting with different methods, but unfortunately haven't had any success so far. I have two images â ...

Navigate to the end of a container

Is there a method to automatically scroll to the bottom of a div when the page is loaded? I have attempted several solutions without success. If you have any insights, please share them. Thank you! ...

Tips for adding a Search Bar to the header in a React Native application

I've been working on creating a header for my app in React Native that includes the screen title, a back button, and a search bar spanning the width of the screen. However, I've encountered some challenges along the way. Initially, I began with ...

Is it possible to alter the video dynamically according to the state in Vuex?

I am working on a small web application that mimics the appearance of FaceTime. My goal is to switch between video elements by clicking a "Next" button, which will update a value in Vuex and swap out the video accordingly. I initially attempted this appr ...