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
15
votes
1 answer

Selenium ChromeDriver does not recognize newly compiled Headless Chromium (Python)

I am trying to use the new (2016) headless version of Chromium with Selenium/ChromeDriver (In the past, I used Firefox with xfvb but this promises to be much better). I have compiled a headless version of Chromium from sources (I did not find any…
15
votes
4 answers

Chrome driver stopped working for Chrome browser version 54 with the latest Chrome driver 2.24

Today the latest build for chrome browser version got installed automatically which is now 54.0.2840.71 m (64-bit). I am unable to drive the browser using the latest Chrome driver 2.24 with any version of Selenium. Help me solve this issue..?
Kireeti Annamaraj
  • 1,037
  • 1
  • 8
  • 12
15
votes
3 answers

Programmatically get web request initiator

The Chrome Dev Tools network tab has an initiator column that will show you exactly what code initiated the network request. I'd like to be able to get network request initiator information programmatically, so I could run a script with a url and…
15
votes
7 answers

Cannot get automation extension from timeout: Timed out receiving message from renderer

Using Selenium Webdriver (C#) I'm getting the next error from time to time: System.InvalidOperationException : unknown error: cannot get automation extension from timeout: Timed out receiving message from renderer: -3.959 (Session info:…
15
votes
4 answers

Emulating mobile in ChromeDriver

If you're using WebDriver with Chrome (via Chromedriver) you may want to emulate mobile viewport characteristics. Similarly, you may want to automate tests on desktop without having to use a proper Chrome on Android setup. How do you do that?
Paul Irish
  • 47,354
  • 22
  • 98
  • 132
15
votes
5 answers

Selenium sendkeys drops character with Chrome Driver

Selenium sendkeys with Chrome Driver drops character "2" and "4". Other characters are OK. When I use other browser (IE or FF), everything is OK. code: WebElement name = driver.findElement(localizator); name.clear(); name.sendKeys("1234567890…
15
votes
4 answers

Selenium.WebDriver - I get error when I try to run my test in Chrome

I get this error when I try to run my test in Chrome: Initialization method AutomationUsingSelenium.SmuladorChrome.MyTestInitialize threw exception. OpenQA.Selenium.DriverServiceNotFoundException:…
Dumitru Chirutac
  • 617
  • 2
  • 8
  • 28
14
votes
5 answers

TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path' in Selenium Python

My code: from selenium import webdriver from selenium.webdriver.chrome.options import Options option = webdriver.ChromeOptions() driver = webdriver.Chrome(executable_path='./chromedriver.exe',…
Huu Quy
  • 141
  • 1
  • 1
  • 3
14
votes
1 answer

TypeError: WebDriver.__init__() got multiple values for argument 'options'

Error is: TypeError: WebDriver.__init__() got multiple values for argument 'options' ` The code is: chrome_options =…
14
votes
5 answers

TypeError: __init__() got an unexpected keyword argument 'service' error using Python Selenium ChromeDriver with company pac file

I've been struggling with this problem for sometime, but now I'm coming back around to it. I'm attempting to use selenium to scrape data from a URL behind a company proxy using a pac file. I'm using Chromedriver, which my browser uses the pac file…
14
votes
4 answers

12296:26672:0420/163936.459:ERROR:browser_switcher_service.cc(238) XXX Init() Error in "Selenium Python"

I am using Version 81.0.4044.113 (Official Build) (64-bit). It was not happening before and the code was working completely fine. But after few days I ran it again and this error came. I am using these modules-> from selenium import webdriver from…
14
votes
1 answer

Selenium.WebDriver.ChromeDriver - chromedriver.exe is not being publishing for netcore2.2 target framework

I installed nuget package - Selenium.WebDriver.ChromeDriver 2.46.0.. When I publish (through dotnet publish .Net CLI command) .csproject (target framework - netcore2.2) the chromedriver.exe is not being copying on output/publish folder.. Can you…
sanjay kulkarni
  • 197
  • 2
  • 13
14
votes
1 answer

Missing elements when using selenium chrome driver to automatically 'Save as PDF'

I am trying to automatically save a PDF file created with pdftohtmlEX (https://github.com/coolwanglu/pdf2htmlEX) using the selenium (chrome) webdriver. It almost works except captions of figures and sometimes even part of the figures are…
Max S.
  • 3,704
  • 2
  • 13
  • 34
14
votes
17 answers

unknown error: DevToolsActivePort file doesn't exist error while executing Selenium UI test cases on ubuntu

I have an ubuntu server having the UI as well. U can execute the test cases by firing mvn test command. But the problem is when I do ssh of the machine through the terminal from another machine I get the following error- unknown error:…
14
votes
8 answers

How to work with a specific version of ChromeDriver while Chrome Browser gets updated automatically through Python selenium

I'm new comer of Selenium, and I can use selenium with Chromedriver to do basic auto-test now, the code works fine, but the problem is Chrome browser always update automatically at the backend, and code always fail to run after Chrome update. I know…