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
16
votes
5 answers

DeprecationWarning: use options instead of chrome_options error using ChromeDriver and Chrome through Selenium on Windows 10 system

Trying to run this code on my windows 10 machine https://github.com/KalleHallden/reddit_automations/blame/master/movie-tickets.py from selenium import webdriver from selenium.webdriver.common.keys import Keys from decouple import config import…
Ali
  • 161
  • 1
  • 1
  • 4
16
votes
0 answers

Chrome memory leak using Selenium and Chrome Dev Tools

I'm using Selenium in Python to perform some web scraping in Chrome. The scraper loads a page, types a search in a searchbox, solves a basic captcha, scrapes the data, and repeats. Problem The chrome.exe process memory usage climbs continually,…
OscarVanL
  • 701
  • 1
  • 6
  • 21
16
votes
6 answers

Selenium on MAC, Message: 'chromedriver' executable may have wrong permissions

I'm just trying to do something very basic on my Mac using selenium and I can't even open a webpage. I'm getting an error of : Traceback (most recent call last): File "/Users/godsinred/Desktop/InstagramLiker/GmailAccountGenerator.py", line 10, in…
16
votes
3 answers

How to disable CSS in Python Selenium using ChromeDriver using ChromeOptions

I try to show the page without CSS to make loading faster, and I have managed to disable images and javascript using the following code: option = webdriver.ChromeOptions() prefs = {'profile.default_content_setting_values': {'images': 2,…
16
votes
8 answers

Unable to locate elements on webpage with headless chrome

I have a script that's accessing printers, and my code works totally fine when chrome is run normally, but when it's run headless, selenium can't seem to find elements on the webpage. Here's the relevant code: init method: def __init__(self,…
16
votes
4 answers

WebDriver vs ChromeDriver

In Selenium 2 - Java, what's the difference between ChromeDriver driver = new ChromeDriver(); and WebDriver driver = new ChromeDriver(); ? I've seen both of these used in various tutorials, examples, etc and am not sure about the difference between…
16
votes
4 answers

How to find a radio button element by value using Selenium?

Until now I just did like: val radioButton4: WebElement = driver.findElement(By.id("FieldsubCode2")) radioButton4.click but now I want to find element by value, this value: So I want to go: val radioButton4: WebElement =…
Joe
  • 2,543
  • 3
  • 25
  • 49
15
votes
4 answers

Disable console output of webdriver using selenium in python

I'm trying to run a python program that uses Selenium and Chrome to analyze data from some websites. The problem I'm having is that either Selenium or the Webdriver is flooding the console with output I don't care about and making it difficult to…
VagrantC
  • 687
  • 2
  • 13
  • 31
15
votes
8 answers

Automatic download of appropriate chromedriver for Selenium in Python

Unfortunately, Chromedriver always is version-specific to the Chrome version you have installed. So when you pack your python code AND a chromedriver via PyInstaller in a deployable .exe-file for Windows, it will not work in most cases as you won't…
tim
  • 9,896
  • 20
  • 81
  • 137
15
votes
1 answer

How to fix this Selenium Error: bind() failed: Cannot assign requested address (99)

I've installed the latest version of selenium via Docker: docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:latest and then ran this in my python console: from selenium import webdriver from…
vgoklani
  • 10,685
  • 16
  • 63
  • 101
15
votes
4 answers

Timed out receiving message from renderer: 10.000 while capturing screenshot using chromedriver and chrome through Jenkins on Windows

OS: Windows 10 Browser: Chrome Browser version: Version 73.0.3683.86 (Official Build) (32-bit) I am running selenium cucumber BDD project where I am verifying title of one page. I am using extent-report version4. Project running successfully in…
Ajinkya
  • 413
  • 2
  • 5
  • 18
15
votes
10 answers

NoSuchMethodError: com.google.common.collect.ImmutableList.toImmutableList()

I keep getting the above error (full text below) with guava-23.6-jre.jar I'm doing everything with IntelliJ IDEA so I don't have pom.xml anywhere in my project. My code does nothing special, the line 39 is the setProperty() call: @Before …
Nick Slavsky
  • 1,300
  • 3
  • 19
  • 39
15
votes
4 answers

Heroku: unable to connect to chromedriver 127.0.0.1:9515 when using Watir/Selenium

This runs locally (without specifying driver_path), but not on Heroku. Code: Selenium::WebDriver::Chrome.driver_path = ENV['GOOGLE_CHROME_SHIM'] browser = Watir::Browser.new :chrome I've confirmed below values in heroku rails…
tim_xyz
  • 11,573
  • 17
  • 52
  • 97
15
votes
6 answers

Selenium - stale element reference: element is not attached to the page

I am trying to understand why it gives an error while I am trying to display items that took from websites. I am also using google chrome for a…
15
votes
5 answers

Selenium gives "unknown error: cannot find Chrome binary" when running chrome driver on Ubuntu

I am trying to run selenium [java] tests using chrome driver on Latest ubuntu.[16.04] I am getting the following error/exception. As an experiment, I replaced ChromeDriver binary with my native "helloworldApp"; I found that selenium is executing my…
George
  • 1,330
  • 1
  • 9
  • 12