Questions tagged [selenium-chromedriver]

Developed in collaboration with the Chromium team, ChromeDriver is a standalone server which implements WebDriver's wire protocol.

ChromeDriver is a standalone server which implements WebDriver's wire protocol.

The ChromeDriver consists of three separate pieces. There is the browser itself ("chrome"), the language bindings provided by the Selenium project ("the driver") and an executable downloaded from the Chromium project which acts as a bridge between "chrome" and the "driver". This executable is called "chromedriver".

ChromeDriver is available for Chrome on Android and Chrome on Desktop (Mac, Linux, Windows, and ChromeOS).

The ChromeDriver consists of three separate pieces. There is the browser itself ("chrome"), the language bindings provided by the Selenium project ("the driver") and an executable downloaded from the Chromium project which acts as a bridge between "chrome" and the "driver". This executable is called "chromedriver".

You can find the documentation for chromedrive here.

The latest version of chromedriver can be download from Google ChromeDriver's page.

You can find the necessary documentation for using chromedriver with Selenium on Selenium Wiki.

14388 questions
20
votes
8 answers

This version of ChromeDriver only supports Chrome version 102

I'm using VS Code and Anaconda3. Currently trying to install ChromeDriver_Binary but, when I try to execute code, I get this error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver…
Angel Wang
  • 251
  • 1
  • 2
  • 7
20
votes
5 answers

How do I correct this Selenium initialisation command deprecation warning?

Using Rails 6 I'm trying to set up selenium in headless mode for system tests, I'm using this statement in application_system_test_case.db: driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] (according to Agile Web Dev Rails 6…
jbk
  • 1,911
  • 19
  • 36
20
votes
4 answers

How to run Selenium ChromeDriver from python3 on wsl2?

I'm trying to headless open Chrome from WSL2 (Ubuntu 18.04) using python 3. On Windows I'm using Chrome 84. I've downloaed Chrome Driver 84 from ChromeDriver - WebDriver for Chrome. And installed the .exe under C:\ChromeDriver\chromedriver.exe I've…
20
votes
10 answers

ElementNotInteractableException: element not interactable: element has zero size appears since upgrade to chromedriver 83

I use the following docker image to run my cucumber tests: https://hub.docker.com/r/selenium/standalone-chrome/ Unfortunately, starting from today it seems that whenever I run my tests I get the errors below. They appear at the start of each test.…
Robert Curetean
  • 333
  • 1
  • 3
  • 9
20
votes
8 answers

Cannot call non W3C standard command while in W3C mode (Selenium::WebDriver::Error::UnknownCommandError) with Selenium ChromeDriver in Cucumber Ruby

We have Cucumber Ruby automation framework where we run few tests on Chrome headless browser in a Docker on Jenkins. A few days ago we started receiving an error "This version of ChromeDriver only supports Chrome version 75" this time we were using…
20
votes
7 answers

How to update Chromedriver on Ubuntu?

I want to update Chromedriver to the latest version. How can I do this on the command line?
user6487208
20
votes
3 answers

Take full page screenshot in Chrome with Selenium

I know this was not possible before, but now with the following update: https://developers.google.com/web/updates/2017/04/devtools-release-notes#screenshots this seems to be possible using Chrome Dev Tools. Is it possible now using Selenium in Java?
Majid Laissi
  • 19,188
  • 19
  • 68
  • 105
20
votes
1 answer

Selenium: "DevTools Request: 127.0.0.1:12583/json/version failed" upon instantiation

When I create a new chrome driver in Selenium while Google Chrome is already running AND I am referencing the users settings/data (via user-data-dir). A new Chrome window will open, but my application will hang. The ChromeDriver console will…
Douglas Gaskell
  • 9,017
  • 9
  • 71
  • 128
20
votes
3 answers

Passing require('chromedriver).path directly to selenium-webdriver

tl;dr: Does anyone know how to pass the path of chromedriver to selenium-webdriver in code without setting the PATH environment variable? I'm attempting to use selenium-webdriver with chrome, but would prefer to not physically install chromedriver…
jt000
  • 3,196
  • 1
  • 18
  • 36
20
votes
7 answers

Disable images in Selenium Google ChromeDriver

How does one disable images in Google chrome when using it through Selenium and c#? I've attempted 6 ways and none worked. I've even tried the answer on this StackOverflow question, however I think the info in it is out of date. Chrome driver:…
Fidel
  • 7,027
  • 11
  • 57
  • 81
20
votes
8 answers

Getting Chrome to launch via Selenium

I am having issues getting an instance of a Chrome browser from selenium in python. I'm using Windows 8. I have downloaded the chromedriver binary and added it to my path but I get the following error in…
19
votes
13 answers

Unable to download chrome driver for version 115

I am unable to download the Chrome driver for Chrome version 115. I have downloaded the ZIP file from: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win64/chrome-win64.zip But I am unable to find the chromedriver.exe…
Prachi Dange
  • 199
  • 1
  • 1
  • 3
19
votes
5 answers

OSX fix Selenium Chromedriver launch error spawn Unknown system error -86 Bad CPU type in executable?

Suddenly on the afternoon of January 6, 2021, my Selenium Protractor tests under OSX stopped working with the mysterious error spawn Unknown system error -86 I did some research and discovered that error number 86 is the same as Bad CPU type in…
emery
  • 8,603
  • 10
  • 44
  • 51
19
votes
8 answers

How to turn off w3c in chromedriver to address the error unknown command: Cannot call non W3C standard command while in W3C

With version 75 of Chrome just released, our tests no longer run properly. They give the stacktrace pasted below. We are using ruby on rails v. 5.1.6.2 with rspec, selenium-webdriver…
19
votes
5 answers

Chrome version must be between 71 and 75 error after updating to ChromeDriver 2.46

After update of chromedriver to version 2.46 my tasts fail to initialize. I got message like this: Starting ChromeDriver 2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1) on port 44269 Only local connections are allowed. Please protect ports…
Suule
  • 2,197
  • 4
  • 16
  • 42