I’m using node 5.10.0 on this version of Linux
[davea@mydevbox mydir]$ uname -a
Linux mydevbox.mydomain.com 7.3.8-25.26.amzn1.x86_64 #1 SMP Wed Mar 16 17:15:
In my case I was missing a Java Runtime environment (JRE). I'm running e2e tests with Selenium in a Debian-based docker image, hence apt-get install default-jre
did the trick for me. It's a pity selenium doesn't give a more useful error message in this case.
As suggested by other answers, the error message means you have unmet dependencies.
In my case of selenium e2e test, fixes are:
apt-get install default-jre
as mentioned by @Johannesapt-get -f install
for a fix installapt-get install chromium-browser
Make sure to install the correct version of chrome related to your chromedriver, e.g. chrome 60-62 for chromedriver 2.33
const options = new chromeDriver.Options();
options.addArguments(
'headless',
'disable-gpu',
);
new webdriver.Builder()
.forBrowser('chrome')
.setChromeOptions(options)
.build();
I had a similar issue where it was missing a shared library that I solved by symlinking libnss3.so:
ln -s /usr/lib/x86_64-linux-gnu/libnss3.so /usr/lib/libnss3.so
If the first directory doesn't work for you, find with:
find /usr/lib/ -name libnss3*
OR
find /usr/lib64/ -name libnss3*
and replace accordingly.
It might also require an update, so try:
yum update nss
I was using node.js based selenium script and overcome the issue by installing google chrome manually using the command curl https://intoli.com/install-google-chrome.sh | bash
This worked for me. Please give a try. Thanks.
I had the same problem. I had different versions of chromedriver and google-chrome-stable package in Ubuntu. I checked the chrome version by google-chrome-stable --version
CLI command. And then downloaded the suitable chromedriver from here: http://chromedriver.storage.googleapis.com/index.html. Copped it into /usr/bin/local and set 777 permissions to the file. Everything started working.