The Chrome (version 58) webdriverio is currently inactive, while Firefox is up and running

Previously, I successfully ran automation tests on Firefox and Chrome locally. However, there seems to be an issue that has arisen when trying to run them on Chrome recently.

My system configurations:

  • Operating System: Windows 10 (64-bit)
  • Chrome Version: 58
  • Node.js Version: 6.10.3

The specific error I'm encountering in the console while attempting to execute Chrome is:

ERROR: An unknown server-side error occurred while processing the command. (UnknownError:13) Chrome
.

Additionally, in the selenium-server console, I noticed this message:

os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121' Driver info: driver.version: unknown

Furthermore, the following details were logged:

Executing: [new session: Capabilities [{rotatable=true, seleniumProtocol=WebDriver, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@8ac8f23, browserName=chrome, javascriptEnabled=true, chromeOptions={args=[--start-maximized, --start-fullscreen]}, handlesAlerts=true, maxInstances=1, requestOrigins={name**=webdriverio, version=4.6.2**, url=}}]]) INFO - Creating a new session for Capabilities [{rotatable=true, seleniumProtocol=WebDriver, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@, browserName=chrome, javascriptEnabled=true, chromeOptions={args=[--start-maximized, --start-fullscreen]}, handlesAlerts=true, maxInstances=1, requestOrigins={name=webdriverio, version=4.6.2, url=}}] ERROR - org.apache.commons.exec.ExecuteException: Process exited with an error: -1073741819 (Exit value: -1073741819) WARN - Exception thrown

The testing framework being used is WebdriverIO, and the test scripts are authored in JavaScript.

Contents of package.json:

dependencies": {
    "chai": "3.5.0",
    "chai-as-promised": "6.0.0",
    ... (remaining content omitted for brevity)

After deleting the node_modules directory and reinstalling via npm locally, the problem persisted.

Interestingly, switching from Chrome to Firefox in the wdio.config.js file allows Firefox to run without issues. A colleague using the same Chrome version faced no such problems.

The console displays webdriverio, version=4.6.2, which differs from the version specified in package.json. Should I opt for an alternative version or pursue another course of action?

Appreciate any insights or advice.

UPDATE: wdio config file

pastebin com/Jd9WrH7B

Answer №1

Below are your options:

1.) If you prefer to continue executing your test cases using npm run <testName> with the latest version ("webdriverio": "4.8.0"), you can follow these steps:

a. Update your global WebdriverIO instance by running:

npm install -g webdriverio@latest
, or
npm install -g <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ed9a888f899f849b889f8482add9c3d5c3dd">[email protected]</a>
(this will upgrade your global WebdriverIO version to 4.8.0);

b. Alternatively, run your test case with your current WebdriverIO version using:

./node_modules/.bin/wdio <wdioConfigFile>
(in this case wdio.config.js). This command should be executed from your project root folder;

c. Attempt to force updates on your dependencies by running npm update in your project's root directory; (this is more of a Last Resort!).

Note: These methods will only work if you have selenium-standalone configured as a service in your wdio.config.js file (

services: ['selenium-standalone']
).

2.) If problems persist, comment out the selenium-standalone service line from your wdio.config.js file and initiate your own chromedriver selenium-standalone instance:

In your preferred command line interface (e.g., cmd), enter:

java -Dwebdriver.chrome.driver=C:\selenium\chromedriver.exe -jar selenium-server-standalone-3.0.1.jar -port 4444
.

Note: Ensure that you have the most recent chromedriver.exe binary in the same directory where you're starting the server, along with the selenium-standalone .jar file. I usually keep them in C:\selenium\.

Let me know if any of these solutions prove helpful! As mentioned earlier, the error could stem from various reasons, but we're making progress by ruling out possibilities.

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

Using jQuery to Capture Datepicker Input and Assigning to PHP Variable

I need help figuring out how to save a jQuery datepicker value in a php date formatted variable. My goal is to have: input field named "reviewdate" = 03/02/2015 input field named "reviewmonth" = 3 Both values should be stored in a mysql database. I am ...

Tips for retrieving data from a concealed input within a div that is being looped through in Angular.js

Currently, I have a controller that sends data to the UI and uses the ng-repeat directive to map them. My next goal is to bind this data with a hidden input form and then send it to another function in the controller when a click event occurs. Any tips on ...

How can I efficiently retrieve the "value" of a cookie and store it in a .txt file using Python?

Seeking to automate certain requests, I am currently using selenium's get_cookie function to extract cookies from a website. The retrieved cookie data is returned as a dict structured like this: {'domain': 'website-name-here', &a ...

Filtering a string that contains commas using another string that also contains commas

I need help with removing elements from one comma-separated string based on another. String 1: 6,2 String 2: 1,2,4,5,6,7,9,12,13 Is there a function or method that can accomplish this task for me? ...

Generate a fresh array from the existing array and extract various properties to form a child object or sub-array

I am dealing with an array of Responses that contain multiple IDs along with different question answers. Responses = [0:{Id : 1,Name : John, QuestionId :1,Answer :8}, 1:{Id : 1,Name : John, QuestionId :2,Answer :9}, 2:{Id : 1,Name : John, QuestionId :3,An ...

Building a versatile and interactive table using AngularJS with data sourced from a

I am currently working on creating a dynamic table using Angular JS to display data received from a Spring Rest Service. Here is the code snippet I have been working with: // JavaScript Document var app = angular.module("SDLC", []); app.config([&apos ...

Discover the Power of Node.js with the @aws-sdk/client-s3 Package, Leveraging AWS CLI Credentials Stored in

A Nodejs project has been set up with media files stored in an S3 Bucket and utilizing the @aws-sdk/client-s3 as the AWS SDK Client. The project consists of two important files, namely .env and S3Bucket.js. The content of .env (located in the root directo ...

What is the most effective approach to seamlessly conceal and reveal a button with the assistance

I have two buttons, one for play and one for pause. <td> <?php if($service['ue_status'] == "RUNNING"){ $hideMe = 'd-none'; } ?> <a href="#" class="btn btn-warning ...

The Typescript compiler is unable to locate the module './lib'

I'm currently integrating the winston-aws-cloudwatch library into my TypeScript server-side application. If you want to replicate the issue, I have provided a SSCCE setup on GitHub. Here are the details: index.ts import logger from './logger& ...

Encountering a hydration issue with an SVG element embedded within a Link component in Next

I'm encountering a hydration error related to an icon within a link, Here is the error message: Error: Hydration failed because the initial UI does not match what was rendered on the server. Warning: Expected server HTML to contain a matching <svg ...

verified firebase/firestore requests

I've been struggling with the process of sending authenticated firebase/firestore calls. I set up firestore in my web app using Next.js as shown below: import { initializeApp } from "firebase/app"; import { getFirestore } from 'firebase ...

What is the best way to transfer data from one function to another file in React without directly calling the component or using props?

filename - Header.jsx import { useEffect, useState } from 'react' import { getValue } from './Input' import TextField from '@mui/material/TextField'; export const Header = () => { const [search, setSearch] = useState( ...

next-pwa seems to be malfunctioning without any discernible errors in the production environment

The repository is publicly available // next.config.js const withPWA = require("next-pwa"); module.exports = withPWA({ pwa: { dest: "public", sw: '/sw.js' }, }); _document.js _app.js Live I have verified the fu ...

Customizing the DatePicker with a unique button in material-ui

For my current project, I am utilizing a Datepicker component. I am looking to incorporate a custom information button in the upper right corner of the calendar layout, similar to the example image provided below: https://i.stack.imgur.com/fHMbn.png Unfo ...

Is there a way to automatically select all checkboxes when I select contacts in my case using Ionic 2?

initializeSelection() { for (var i = 0; i < this.groupedContacts.length; i++) { for(var j = 0; j < this.groupedContacts[i].length; j++) this.groupedContacts[i][j].selected = this.selectedAll; } } evaluateSelectionStatus() { ...

The request for data:image/png;base64,{{image}} could not be processed due to an invalid URL

I am facing an issue with converting image data that I receive from the server using Angular.js for use in ionic-framework. Here is the code snippet I have been working with: $http.post(link, { token: token, reservationCode: reservatio ...

Create a simple carousel using only vanilla JavaScript, without relying on any external plugins

Currently, I am working on implementing a carousel using plain JavaScript without the use of any plugins. My goal is to have previous and next buttons that will control the sliding images. var firstval = 0; function ...

Is it possible to extract tooltip text from a website using Python and Selenium, specifically when the text is generated by JavaScript?

Can anyone help me retrieve the tooltip text that appears when I hover over the time indicating how long ago a game was played? You can find my summoner profile here. I have noticed that the tooltip text is not visible in the HTML code and suspect it may ...

When deployed, Angular 14 and Bootsrap 5 are functioning properly on a local environment but encountering issues on an online

My Angular application (version 14.2.0) is integrated with bootstrap (version 5.2.3). Upon building and deploying the application on a local IIS server, everything displays correctly as shown in the image below: https://i.sstatic.net/pLDs6.jpg However, w ...

unable to access the object3D within the current scene

Currently facing an issue where I am unable to retrieve Object3D from the scene, despite the mesh objects being displayed within the scene. Strangely, the scene.children array does not reflect this. Take a look at the screenshot here Here is the code sni ...