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

Chromedriver on Travis-CI

I am having trouble getting chromedriver on Travis-CI working for my project knockout-secure-binding. I am trying to use WebdriverJS to automate testing with Chrome, at the least. I noted that there seems to be some issues with chromedriver on…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
22
votes
4 answers

How to perform right click using Selenium ChromeDriver?

I have been searching for this a lot, but could not find an answer for Python. Is it possible to simulate right click, or open up the context menu via selenium/chromedriver? I have seen options for Java, and some other languages, but never in…
22
votes
4 answers

Running multiple Selenium tests at the same time

I would like to run multiple Selenium Tests (on a Jenkins server) at the same time. It currently runs only a single test at a time cause ChromeDriver seems to communicate over a special port. So somehow I guess I have to pass some kind of port…
seba.wagner
  • 3,800
  • 4
  • 28
  • 52
22
votes
4 answers

set chrome options with remote driver

So there's a nice long list of switches that can be passed to the chromedriver. I would like to use some of them, specifically --disable-logging. I do no want to (only) use chromedriver locally though, I'd like to write all my code to use …
Jachin
  • 2,025
  • 2
  • 19
  • 26
21
votes
6 answers

How to update chromedriver to the latest version on MacOS using homebrew?

My current version is 81.0.4044.69 and I want to update to the latest version 83.0.4103.39 When I open Terminal and I do: brew cask install chromedriver It says: Warning: Cask 'chromedriver' is already installed. How can I update to the latest…
Tony
  • 7,767
  • 2
  • 22
  • 51
21
votes
4 answers

How to solve 'Getting Default Adapter failed' error when launching Chrome and try to access a webpage using the ChromeDriver using Selenium

I have updated Selenium but the error keeps occurring even though the web page loads. However, in some instances, the driver starts but it is stagnant. Is this causing an issue and if so, how do I resolve…
21
votes
1 answer

selenium inside windows docker container fails with ff/chrome "session deleted because of page crash"

DOCKER WITH SELENIUM AND ASP.NET 4.5 MVC What am I trying to do? Attempting to have a docker image that does following. Yes, I'm aware there are other ways to accomplish the end game here but I have a specific request on this. Runs an ASP.NET…
21
votes
10 answers

selenium clear() command doesn't clear the element

I have been writing selenium scripts for a while in Java. I encountered a very weird issue today. Here is the issue: I cleared a text field using webelement.clear() method, later while executing next command (click event), the text area I had…
21
votes
11 answers

Selenium (Python) - waiting for a download process to complete using Chrome web driver

I'm using selenium and python via chromewebdriver (windows) in order to automate a task of downloading large amount of files from different pages. My code works, but the solution is far from ideal: the function below clicks on the website button…
BlackMamba
  • 213
  • 1
  • 2
  • 4
21
votes
7 answers

Not able to maximize Chrome Window in headless mode

I recently upgraded my chrome version to 60 and chromedriver to version 2.31. Post that I have started getting the following exception when I try to do a maximize of the browser…
Pinaki
  • 473
  • 1
  • 3
  • 14
21
votes
12 answers

Getting "The path to the driver executable must be set by the webdriver.chrome.driver system property"though set correct path

My code is very simple code: WebDriver wd =new ChromeDriver(); System.setProperty("webdriver.chrome.driver", "D:\\List_of_Jar\\chromedriver.exe"); String baseUrl = "https://www.google.com";wd.get(baseUrl); have…
sathish kumar
  • 255
  • 1
  • 3
  • 13
21
votes
4 answers

Page load strategy for Chrome driver (Updated till Selenium v3.12.0)

I'm using Chrome browser for testing WebApp. Sometimes pages loaded after very long time. I needed to stop downloading or limit their download time. In FireFox I know about PAGE_LOAD_STRATEGY = "eager". Is there something similar for chrome? P.S.:…
21
votes
6 answers

Open a new tab in an existing browser session using Selenium

My current code below in C# opens a window then navigates to the specified URL after a button click. protected void onboardButton_Click(object sender, EventArgs e) { IWebDriver driver = new ChromeDriver(); …
21
votes
2 answers

Getting chrome performance and tracing logs

I'm trying to follow the idea suggested in the Web Performance Testing with WebDriver google test automation conference talk and ChromeDriver "Performance Log" documentation page to get the trace data which I want to submit to webpagetest for…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
21
votes
9 answers

Accessing Shadow DOM tree with Selenium

Is it possible to access elements within a Shadow DOM using Selenium/Chrome webdriver? Using the normal element search methods doesn't work, as is to be expected. I've seen references to the switchToSubTree spec on w3c, but couldn't locate any…
lambinator
  • 10,616
  • 7
  • 55
  • 57