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

Selenium - Python - AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'

I am trying to get Selenium working with Chrome, but I keep running into this error message (and others like it): AttributeError: 'WebDriver' object has no attribute 'find_element_by_name' The same problem occurs with find_element_by_id(),…
99
votes
22 answers

Selenium Timed out receiving message from renderer

After Chrome released their newest version yesterday (64.0.3282), I am now receiving this error rather sporadically: Timed out receiving message from renderer: 600.000 I'm running about 2,000 selenium tests within a docker container and I see this…
Brandon Schabell
  • 1,735
  • 2
  • 10
  • 21
99
votes
4 answers

Where can I find a list of all available ChromeOption arguments?

I am a big advocate for reading the manual. But in this case, despite searching online for some time I cannot find a manual explaining all of the available ChromeOptions arguments. Somewhere there must be a listing of all of the string arguments and…
sapbucket
  • 6,795
  • 15
  • 57
  • 94
95
votes
5 answers

How do I pass options to the Selenium Chrome driver using Python?

The Selenium documentation mentions that the Chrome webdriver can take an instance of ChromeOptions, but I can't figure out how to create ChromeOptions. I'm hoping to pass the --disable-extensions flag to Chrome.
k107
  • 15,882
  • 11
  • 61
  • 59
94
votes
10 answers

How to Maximize window in chrome using webDriver (python)

Is there a way to maximize the chrome browser window using python selenium WebDriver? Note: I am using Chrome Driver 23.0 Any solution on this would be greatly appreciated!
Naveen Subramani
  • 2,134
  • 7
  • 20
  • 27
90
votes
17 answers

unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.9

I am trying to run Selenium tests on Debian 7 but without success. The error is: unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.9.248316,platform=Linux 3.2.0-4-686-pae x86) (WARNING: The server did not…
redochka
  • 12,345
  • 14
  • 66
  • 79
83
votes
16 answers

How can I control Chromedriver open window size?

I'm using Selenium WebDriver for automation and I'm using Chromedriver. I have noticed that when my driver runs and opens the chrome browser, it opens the browser with a strange size. I tried to fixed it but in vain. Does anybody know how can I…
Nimrod_G
  • 871
  • 1
  • 6
  • 6
76
votes
2 answers

Python Selenium Chrome Webdriver

I'm beginning the automate the boring stuff book and I'm trying to open a chrome web browser through python. I have already installed selenium and I have tried to run this file: from selenium import webdriver from selenium.webdriver.common.by import…
Fernando Garibaldi
  • 895
  • 1
  • 7
  • 8
71
votes
6 answers

How to load default profile in Chrome using Python Selenium Webdriver?

I'd like to launch Chrome with its default profile using Python's webdriver so that cookies and site preferences persist across sessions. How can I do that?
MadRabbit
  • 2,460
  • 2
  • 17
  • 18
71
votes
7 answers

How do I simulate hitting enter in an input field with Capybara and ChromeDriver?

I have the following helper method to input a string into an input field and press the enter key, but it seems the enter key is never pressed. I see the string entered into the input field, but the events that take place upon hitting enter never…
Eric M.
  • 5,399
  • 6
  • 41
  • 67
70
votes
4 answers

AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'

from selenium import webdriver import time test = webdriver.Chrome() test.get('https://docs.google.com/forms/d/e/1FAIpQLSeYUmAYYZNtbU8t8MRxwJo- d1zkmSaEHodJXs78RzoG0yFY2w/viewform') time.sleep(5) Name = 'kuch bhi' last =…
69
votes
25 answers

Take screenshot of full page with Selenium Python with chromedriver

After trying out various approaches... I have stumbled upon this page to take full-page screenshot with chromedriver, selenium and python. The original code is here. (and I copy the code in this posting below) It uses PIL and it works great!…
ihightower
  • 3,093
  • 6
  • 34
  • 49
64
votes
8 answers

How to fix "[SEVERE]: bind() failed: Cannot assign requested address (99)" while starting chromedriver

I downloaded the latest version of chromedriver in Centos 7 platform: https://chromedriver.storage.googleapis.com/index.html?path=74.0.3729.6/ I start chromedriver and get this error. Error : Starting ChromeDriver 74.0.3729.6…
LisaQiu
  • 649
  • 1
  • 5
  • 4
64
votes
8 answers

org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'

Sendkeys not working. Please help me to resolve this.. WebElement username = driver.findElement(By.xpath("//*[@id='username']")); username.sendKeys("123456"); Console: Exception in thread "main" org.openqa.selenium.WebDriverException: unknown…
62
votes
2 answers

How can I get the href of elements found by partial link text?

Using Selenium and the Chrome Driver I do: links = browser.find_elements_by_partial_link_text('##') matches about 160 links. If I try, for link in links: print link.text with it I get the text of all the links: ##1 ##2 ... ##160 The links are…
Eduard Florinescu
  • 16,747
  • 28
  • 113
  • 179