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
3
votes
4 answers

This version of ChromeDriver only supports Chrome version 79 - Python

This error drives me crazy. My code is: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as…
3
votes
8 answers

WebDriverException: target frame detached while interacting with elements within iframe using ChromeDriver Chrome and Selenium

I use Chromedriver 78.0.3904.70, WebDriverException: target frame detached exception has occurred, but in previous version of chromedriver all worked fine. Now in my iFrame I can't find any elements during the autotest, where should be another…
3
votes
0 answers

unable to run selenium chrome-driver on google-cloud-run

I have a docker container that runs a working selenium chrome driver script, however when the same image is deployed to Google Cloud Run I encounter the following error. webdriver.Chrome('/home/vmagent/app/chromedriver', chrome_options=self.options)…
3
votes
1 answer

Select drop down option using Selenium. Headless chrome. Python

I am attempting to select an option from a drop down menu that expands the records on a page. It works fine when I am not running headless. When I run in headless I get a timeout exception error while the page waits to find the element.
3
votes
1 answer

How do I correctly use the Custom Profile with Selenium Chrome Webdriver, Python

options_ = webdriver.ChromeOptions() options_.add_argument("user-data-dir=C:\\Users\\Anton\\\\AppData\\Local\\Google\\Chrome\\User Data\\Default") driver = webdriver.Chrome(executable_path='C:\chromedriver\chromedriver.exe',…
3
votes
0 answers

Python Selenium Headless Chromedriver taking all white screenshots and can't locate any element?

Im setting a script up to flush the cache of a certain application, When running chromedriver not headless all xpath locators work fine. I set up the chrome options chrome_options =…
3
votes
1 answer

Selenium doesn't refresh page on Jenkins

I have a test case that goes something like this: open homepage if there is no content present refresh page continue with other steps... This is the relevant part of the code: public JpoPO() { driver.get(Settings.JPO_TEST_URL); …
Mate Mrše
  • 7,997
  • 10
  • 40
  • 77
3
votes
2 answers

OSError: [Errno 8] Exec format error: 'chromedriver' using Chromedriver on Ubuntu server

I'm trying to use Chromedriver with Ubuntu (AWS instance). I've gotten Chromedriver to work no problem in a local instance, but having many, many issues doing so in a remote instance. I'm using the following code: options =…
DiamondJoe12
  • 1,879
  • 7
  • 33
  • 81
3
votes
2 answers

How to make protractor run with puppeteer and chrome 78?

I am using Protractor for Angular E2E Tests + Puppeteer for a consistent Chrome Version in all CI-Servers. Lately I am getting SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 78 Errors.…
3
votes
1 answer

How to enable DRM in chromedriver headless mode

I am aware that there is no official support for DRM-protected content (e.g. Spotify webplayer, netflix, etc.) when using headless chromedriver. Has anyone here gotten it to work despite the aforementioned limitation? I went as far as using a custom…
Thijmen
  • 374
  • 2
  • 14
3
votes
2 answers

Python/Selenium/Chromedriver: the script opens just a blank Google Chrome page

I have a problem with a browser automation script on a specific windows 7 machine. The code is written in python 3.7.4 with Selenium and Chromedriver. When I run it from a command line only Chrome browser starts but it does not open the url. This…
lxndrbnsv
  • 33
  • 5
3
votes
1 answer

Using Chromedriver with Google Images download

I am trying to run the following code to pull in some images: from google_images_download import google_images_download #importing the library response = google_images_download.googleimagesdownload() #class instantiation arguments =…
Jerel
  • 73
  • 1
  • 2
  • 6
3
votes
1 answer

Setup selenium with headless chrome error: WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally

I am trying to get selenium running with a headless chrome in the following environment: OS: Ubuntu 16.04.6 Chrome: 77.0.3865.90 (Official Build) (64-bit) ChromeDriver: 77.0.3865.40 Selenium server version: 3.141.59, revision: e82be7d358 I've…
3
votes
1 answer

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) using findElement(By.className()) through Selenium and Java

When I execute the following code: driver.findElement(By.className("qview-product-name")).click(); I get the following error Session ID: d5df6f837164b1738991e8dc09027fe0 *** Element info: {Using=class name, value=qview-product-name} at…
Aaron
  • 53
  • 1
  • 1
  • 5
3
votes
1 answer

Selenium Python Set Chrome Default Download directory in VPS

I'm trying to download a pdf using the latest google-chrome & chromedriver on a Ubuntu 16.04 LTS VPS server with the following code. import json import time from pyvirtualdisplay import Display from selenium import webdriver display =…
Wasi
  • 1,473
  • 3
  • 16
  • 32