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
29
votes
10 answers

Automation Google login with python and selenium shows ""This browser or app may be not secure""

I've tried login with Gmail or any Google services but it shows the following "This browser or app may not be secure" message: I also tried to do options like enable less secure app in my acc but it didn't work. then I made a new google account and…
29
votes
6 answers

Chromedriver / Capybara Too many open files - socket(2) for "127.0.0.1" port 9518

I'm getting this error (details below) when a capybara selector is malformed or can't find. Why is it happening, and how can I prevent the error? This is new, I think, since our recent upgrade to the latest driver. The command that triggers…
pixelearth
  • 13,674
  • 10
  • 62
  • 110
29
votes
3 answers

How to open a Chrome Profile through --user-data-dir argument of Selenium

I am attempting to load a chrome browser with selenium using my existing account and settings from my profile. I can get this working using ChromeOptions to set the userdatadir and profile directory. This loads the browser with my profile like i…
29
votes
6 answers

What is default location of ChromeDriver and for installing Chrome on Windows

I need to install chromedriver on Windows OS. In the article below they specify: https://sites.google.com/a/chromium.org/chromedriver/getting-started "...ChromeDriver expects you to have Chrome installed in the default location for your…
29
votes
3 answers

Headless chrome + ignore-certificate-errors

I need to get headless chrome to ignore certificate errors. The option is ignored when running in headless mode, and the driver returns empty html body tags when navigating to an https resource.
29
votes
9 answers

org.openqa.selenium.SessionNotCreatedException: session not created exception

I'm trying to run some Selenium tests using the ChromeDriver, and I started getting this error: Starting ChromeDriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129) on port 42985 Only local connections are allowed. Exception in thread "main"…
sujith kumar
  • 301
  • 1
  • 3
  • 4
28
votes
4 answers

Python selenium: DevTools listening on ws://127.0.0.1

Today I got this message on the console when running selenium using the chromedriver. How do I suppress this? DevTools listening on ws://127.0.0.1:12740/devtools/browser/97101fe4-3b1f-42b0-b5c8-373cc18040b6 Relevant code: from selenium import…
foosion
  • 7,619
  • 25
  • 65
  • 102
28
votes
6 answers

How to run Selenium tests on the Brave web browser?

I am trying to run some Selenium tests on the Brave web browser. I am able to start the Brave web browser through Selenium by using the ChromeDriver. However, nothing else works, e.g. I cannot cause Brave to load a certain web page. As Brave is…
28
votes
4 answers

Chromedriver is extremely slow on a specific machine using Selenium Grid and .net

Overview: Chromedriver works normally on one machine but extremely slowly on two other identical machines. Setup: Selenium Webdriver using .Net for coding and Selenium Grid for distributing the tests. MSTest is being used from within Visual Studio…
27
votes
1 answer

Handling "Accept Cookies" popup with Selenium in Python

I've been trying to scrape some information of this real estate website with selenium. However when I access the website I need to accept cookies to continue. This only happens when the bot accesses the website, not when I do it manually. When I try…
27
votes
14 answers

How to Fix this C# issue No test matches the given testcase filter `FullyQualifiedName =

I am new to C# and Selenium and I have pretty much made a number of scripts but there comes a problem when I make more than 1 method or more than 1 class single method and single class always runs good. I have tried every possible solution on the…
touqeer
  • 387
  • 1
  • 3
  • 8
27
votes
9 answers

How to disable 'This type of file can harm your computer' pop up

I'm using selenium chromedriver for automating web application. In my application, I need to download xml files. But when I download xml file, I get 'This type of file can harm your computer' pop up. I want to disable this pop up using selenium…
Mosam Mehta
  • 1,658
  • 6
  • 25
  • 34
27
votes
4 answers

How do I confirm I'm using the right chromedriver?

I came in to the office yesterday morning to find that my Capybara tests couldn't interact with Chrome. I'm seeing Selenium::WebDriver::Error::UnknownError: unknown error: unable to discover open pages Googling around revealed that this was likely…
James Martineau
  • 951
  • 1
  • 13
  • 29
26
votes
1 answer

How can I get Chrome Browser Version running now with Python?

I'm running a application using selenium, and I want to know actual chrome browser version installed, before running Chrome Driver to avoid any Exception for compatibility reason. I know I can use driver =…
leminhnguyen
  • 1,518
  • 2
  • 13
  • 19
26
votes
11 answers

Error Loading Extension Could not load extension from 'C:\..\Local\Temp\scoped_dir6312_32763\internal'. Loading of unpacked extensions is disabled

When am running my webdriver script, am getting a confirmation dialog box with below message: Error Loading Extension Could not load extension from 'C:\Users\username\AppData\Local\Temp\scoped_dir6312_32763\internal'. Loading of unpacked extensions…