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

selenium.common.exceptions.WebDriverException: Message: disconnected: received Inspector.detached event with ChromeDriver and Selenium through Python

I'm getting an error E ====================================================================== ERROR: test_01Login (__main__.LoginTest) ---------------------------------------------------------------------- Traceback (most recent call last): File…
3
votes
1 answer

A process has requested access to an object, but has not been granted those access rights On windows 10 Using Selenuim with Chrome Driver

I am trying to scrape the contents of a webpage. My code works on a Windows 7 machine that has the same versions of the drivers as my Windows 10 machine. When I run it on windows 10, it opens a selenium controlled window, but then returns None,…
3
votes
6 answers

ChromeDriver 76.0.3809.68 is throwing exception with SelectByVisibleText method: Script returns unexpected result

I have updated the selenium chromedriver to 76.0.3809.68 and the existing tests started to fail with new Select(webElement).selectByVisibleText(value) is failing with the following exception org.openqa.selenium.WebDriverException: unknown error:…
vini007
  • 595
  • 1
  • 6
  • 13
3
votes
1 answer

Chrome driver is not working on azure web apps

I have used .NetCore2 App and try to takes the screenshot of given URL. It works perfect on local but After deploy to Azure have problems on create Webdriver. at OpenQA.Selenium.DriverService..ctor(String servicePath, Int32 port, String…
3
votes
2 answers

Python Selenium Printing Save-As-PDF Waiting for Filename Input

I'm trying to save a website as PDF through printing dialog. My code allows me to save as pdf, but asks me to input a filename, which I don't know how to pass a filename to the pop up box. Attached is my code: import time from selenium import…
Alice Shen
  • 41
  • 1
  • 5
3
votes
3 answers

How to restart a selenium webdriver? (Python)

for one of my scripts, I need to restart a browser (chromeDriver) session at some random point. I have tried to restart the webdriver in a test script without success. def start_browser(): driver.get('https://www.google.com/') …
3
votes
3 answers

Google Chrome window resizing limitation

We have an open bug in our Automation Testing Framework regarding the resizing limitations of a Chrome Window when it is controlled by Selenium + ChromeDriver and I need help since I can't track down an official answer. As far as I am aware this was…
3
votes
1 answer

Selenium newer Chrome cannot disable browser notification (Tried other solns)

I know this is an old question, and I've tried answers from a few posts such as Disable Chrome notifications (Selenium) Unfortunately none worked, the browser notification popup still comes and interrupts my simulations. My Chrome version is…
3
votes
1 answer

Why local chrome-urls like: chrome://downloads or chrome://apps doesn't work in headless mode?

I am trying to visit chrome local urls. But it's not working. Does headless chrome support local urls?
3
votes
0 answers

Can Selenium Command Line Runner run .side files using a local, authenticated Chrome profile?

For lord knows what reason, I'm trying to use Selenium Command Line Runner to run some tests inside a particular Selenium IDE .side file that crawl the UI of a logged-in G Suite account. This is not a problem in the IDE--I can log into the G Suite…
drumbo3000
  • 31
  • 3
3
votes
2 answers

Selenium Chrome Driver (75 onward) problem accessing Logs using GetLog() method

In version 74.0.3729.6 of the Selenium.WebDriver.ChromeDriver I am able to run the following code without problem: foreach (var logItem in driverInstance.Manage().Logs.GetLog(LogType.Browser).ToList()) { NLogLogger.Debug(logItem.Message); } But…
BernardV
  • 640
  • 10
  • 28
3
votes
0 answers

Java Selenium ChromeDriver Program Runs Fast On My Machine But Slow On Other Machines

I have written a java program that utilizes Selenium to control Google Chrome. If I run the program on my machine, the program runs properly and at a reasonable speed. However, when I export this file to another machine (as a .jar or .exe), it still…
3
votes
1 answer

WebDriverException: Message: unknown error: bad inspector message error while printing HTML content using ChromeDriver Chrome through Selenium Python

I am scraping some HTML content.. for i, c in enumerate(cards[75:77]): print(i) a = c.find_element_by_class_name("influencer-stagename") print(a.get_attribute('innerHTML')) Works fine for all records except the 76th one. Output before…
3
votes
1 answer

Chromedriver crashes with "unrecognized capability: chromeOptions"

I have been using a simple Python2.7 script using Selenium with Chromedriver to open a browser and download some files. Lately, I got an error saying that Chromedriver is outdated (Chrome version must be between 70 and 73) while my Chrome was ver.…
miclis
  • 55
  • 1
  • 7
3
votes
2 answers

Selenium take element screenshot - Google Chrome

I'm trying to take screenshot of a tag element from google chrome using selenium web driver and python. I tried using the below code, driver.find_element_by_css('#canvas-xyz').save_screenshot('canvas.png') It returned AttributeError:…