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
19
votes
2 answers

Downloading a PDF using Selenium, Chrome and Python

I tried following previous posts on this topic such as these (post 1, post 2), but I'm still stuck. My script has to log into a site using a set of credentials, then navigate through some drop down menus to select a report. Once the report is…
erik7970
  • 693
  • 1
  • 8
  • 21
19
votes
4 answers

ChromeDriver --print-to-pdf after page load

According to the docs, Chrome can be started in headless mode with --print-to-pdf in order to export a PDF of a web page. This works well for pages accessible with a GET request. Trying to find a print-to-pdf solution that would allow me to export a…
19
votes
3 answers

IllegalAccessError thrown by new ChromeDriver() on OSX (Java)

Getting this under Eclipse straight out of the gate. Code: System.setProperty("webdriver.chrome.driver" , "/path/to/selenium/chromedriver"); WebDriver driver = new ChromeDriver(); Throws Exception: Exception in thread "main"…
Igor Urisman
  • 717
  • 1
  • 6
  • 22
19
votes
5 answers

WebDriverError: no such session error using ChromeDriver Chrome through Jenkins and Selenium

Often I am getting no such session error when I am running the scripts from Jenkins. What's the cause for it? Is there any connection failure or is it due to someother reason (I am running around 26 scripts and out of it atleast one script has no…
19
votes
1 answer

E2E Testing in Protractor using Firefox or Safari?

I am using Protractor to test my angular.js app and its working great in Chrome. I had some issues getting it set up and learning the extra webdriver syntax for jasmine, but now I'm getting the hang of it and have a number of tests that are running…
19
votes
8 answers

WebDriver Chrome Browser: Avoid 'Do you want chrome to save your password' pop up

Every time my webdriver tests login into the application, 'Do you want chrome to save your password' pop up appears.. Is there a way to avoid this?? Please help. Thanks, Mike
19
votes
9 answers

Disable chrome download multiple files confirmation

I developed a crawler with ruby watir-webdriver that downloads some files from a page. My problem is that when I click to download the second file, Chrome opens a bar in the top asking for confirmation that I am downloading multiple files from this…
18
votes
3 answers

How to slow down the speed of send_keys action in a selenium script using python?

I am currently creating a selenium script in python. I need to enter something in a text box using send_keys function. It is doing that correctly as of now. However, for an observation for I need to slow down the speed at which send_keys populates…
karan juneja
  • 387
  • 2
  • 4
  • 10
18
votes
6 answers

How do I allow Chrome to use my microphone programmatically?

I am currently trying to run some tests made with webdriverjs and chromedriver but they need microphone permissions. This is the popup that shows up: I have tried: chromedriver.start(['--disable-popup-blocking']); driver = new…
18
votes
1 answer

ChromeDriver/Spinach/Selenium error: Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs

I am getting an error with my spinach tests (Ruby on Rails). Every test fails for the same reason: : Failed to read the 'localStorage' property from 'Window': Storage is disabled inside 'data:' URLs. (Session info:…
17
votes
10 answers

There is no such driver by URL https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790 error with Python webdrivermanager & Chrome 115.0

I recently updated my Google Chrome browser to version 115.0.5790.99 and I'm using Python webdrivermanager library (version 3.8.6) for Chrome driver management. However, since this update, when I call the ChromeDriverManager().install() function, I…
17
votes
4 answers

Selenium use chrome on Colab got unexpectedly exited

I have been using selenium chromedriver in google colab for a while. Today I start my work, I get the error never got before. I'm wondering if this error is related to the chromedriver version. This is install log today !apt-get update !apt install…
17
votes
8 answers

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 96 Current browser version is 98.0

Error tracelogs: DevTools listening on ws://127.0.0.1:54791/devtools/browser/6f264bcc-d44a-40d9-b6cf- 8b1655c97ccd Traceback (most recent call last): File "c:\Users\alsgn\OneDrive\desktop\mypython\getselenium\dc\findbulletins.py", line 11, in…
17
votes
3 answers

Chromedriver can’t be opened because Apple cannot check it for malicious software

Environment: OS : Big Sur 11.1 Homebrew 3.2.13 Python 3.9.7 Command: chromedriver —version Error GUI Alert:  Error via output of .py file attempt to run chromedriver: raise WebDriverException(selenium.common.exceptions.WebDriverException:…
MikeySherm
  • 327
  • 4
  • 9
17
votes
6 answers

Unable to sign into google with selenium automation because of "This browser or app may not be secure."

I am trying to login to google with selenium and I keep getting the error that "This browser or app may not be secure." The function I use to log in is: async function loginToChrome(driver, username, password) { await…