Questions tagged [selenium-chromedriver]
Developed in collaboration with the Chromium team, ChromeDriver is a standalone server which implements WebDriver's wire protocol.
selenium-chromedriver
14,953
questions
628
votes
26
answers
472k
views
Can a website detect when you are using Selenium with chromedriver?
I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium even though there's no automation at all. Even when I'm just browsing manually just ...
380
votes
35
answers
889k
views
Error message: "'chromedriver' executable needs to be available in the path"
I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/
After downloading the zip ...
368
votes
52
answers
612k
views
WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser
I am trying to launch chrome with an URL, the browser launches and it does nothing after that.
I am seeing the below error after 1 minute:
Unable to open browser with url: 'https://www.google.com' (...
201
votes
24
answers
446k
views
session not created: This version of ChromeDriver only supports Chrome version 74 error with ChromeDriver Chrome using Selenium
I'm trying to run RSelenium using the rsDriver function, but when I run
rD <- rsDriver()
I get a message telling me I need a newer version of Chrome:
> rD <- rsDriver()
checking Selenium ...
190
votes
42
answers
523k
views
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
I am currently new to robot framework.I am currently using latest window version of chrome and chromedriver which is 80 but when i try to run the test it gives the message "SessionNotCreatedException: ...
172
votes
21
answers
181k
views
Disable developer mode extensions pop up in Chrome
Since the latest release of chrome (34.0.1847.116) last week, I have been receiving the “Disable developer mode extensions" when running automated tests using watir-webdriver.
This seems to be the ...
160
votes
13
answers
633k
views
How to run Selenium WebDriver test cases in Chrome
I tried this
WebDriver driver = new ChromeDriver();
But I'm getting the error as
Failed tests: setUp(com.TEST): The path to the driver executable must be set by the webdriver.chrome.driver system ...
144
votes
3
answers
103k
views
Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
Some of my GitHub Actions workflows started recently to return this error when installing Chromedriver:
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://...
133
votes
18
answers
307k
views
How to configure ChromeDriver to initiate Chrome browser in Headless mode through Selenium?
I'm working on a python script to web-scrape and have gone down the path of using Chromedriver as one of the packages. I would like this to operate in the background without any pop-up windows. I'm ...
131
votes
28
answers
225k
views
release Selenium chromedriver.exe from memory
I set up a python code to run Selenium chromedriver.exe. At the end of the run I have browser.close() to close the instance. (browser = webdriver.Chrome()) I believe it should release chromedriver.exe ...
129
votes
11
answers
302k
views
How to run headless Chrome with Selenium in Python?
I'm trying some stuff out with selenium, and I really want my script to run quickly.
I thought that running my script with headless Chrome would make it faster.
First, is that assumption correct, or ...
128
votes
6
answers
495k
views
selenium - chromedriver executable needs to be in PATH [duplicate]
Error message:
'chromedriver' executable needs to be in PATH
I was trying to code a script using selenium in pycharm, however the error above occured. I have already linked my selenium to pycharm ...
119
votes
5
answers
280k
views
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 ...
118
votes
23
answers
322k
views
Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
Recently I switched computers and since then I can't launch chrome with selenium. I've also tried Firefox but the browser instance just doesn't launch.
from selenium import webdriver
d = webdriver....
114
votes
10
answers
122k
views
unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium
I'm using InstaPy which use Python and Selenium. I start the script per Cron and from time to time it crashes. So it'r really irregular, sometimes it runs well through. I'v posted on GitHub Repo as ...
111
votes
12
answers
259k
views
When running WebDriver with Chrome browser, getting message, "Only local connections are allowed" even though browser launches properly
When I run Chrome browser using WebDriver, I am getting following message on console. Please let me know how to resolve it.
"Starting ChromeDriver (v2.10.267521) on port 22582 " "Only local
...
108
votes
22
answers
209k
views
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 ...
102
votes
5
answers
171k
views
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 ...
100
votes
6
answers
216k
views
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 ...
96
votes
10
answers
204k
views
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!
91
votes
17
answers
163k
views
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-...
86
votes
18
answers
180k
views
How to set window size for Chrome in Selenium?
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 ...
77
votes
4
answers
189k
views
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....
76
votes
2
answers
443k
views
Python Selenium Chrome Webdriver [duplicate]
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 ...
74
votes
26
answers
151k
views
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 ...
72
votes
7
answers
37k
views
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 ...
71
votes
6
answers
141k
views
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?
68
votes
15
answers
182k
views
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127
I'd like to construct my crawler using selenium on my server.
Thus I had installed/download required dependencies- such as chromedriver, chromium-browser etc on my Ubuntu17.10 server
However, when I ...
66
votes
8
answers
92k
views
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 "...
66
votes
8
answers
78k
views
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 :
...
63
votes
4
answers
97k
views
"Error while loading shared libraries: libnss3.so" while running Gtlab CI job to perform automated testing using webdriverio
I'm setting up the CI job for automated testing in selenium inside Gitlab CI, but the test is failing due to the issue.
019-09-27T11:03:17.404Z INFO @wdio/cli:Launcher: Run onPrepare hook
/builds/...
62
votes
2
answers
102k
views
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 ...
60
votes
6
answers
236k
views
How can I bypass the Google CAPTCHA with Selenium and Python?
How can I bypass the Google CAPTCHA using Selenium and Python?
When I try to scrape something, Google give me a CAPTCHA. Can I bypass the Google CAPTCHA with Selenium Python?
As an example, it's ...
60
votes
13
answers
85k
views
Selenium Google Login Block
I have a problem with Google login. I want to login to my account but Google says that automation drivers are not allowed to log in.
I am looking for a solution. Is it possible to get a cookie of ...
58
votes
11
answers
85k
views
Unknown error: Chrome failed to start: exited abnormally
I am getting this error when I run my tests with Selenium using chromedriver.
selenium.common.exceptions.WebDriverException: Message:
unknown error: Chrome failed to start: exited abnormally
(Driver ...
57
votes
11
answers
136k
views
Selenium Webdriver in Python - files download directory change in Chrome preferences
I'm using Selenium Webdriver (in Python) to automate the downloading of thousands of files. I want to set Chrome's download folder programmatically. After reading this, I tried this:
chromepath = '/...
56
votes
10
answers
82k
views
getText() method of selenium chrome driver sometimes returns an empty string
I have a curious case where the selenium chrome driver getText() method (java) returns an empty string for some elements, even though it returns a non-empty string for other elements with the same ...
55
votes
10
answers
157k
views
Using chromedriver with selenium/python/ubuntu
I am trying to execute some tests using chromedriver and have tried using the following methods to start chromedriver.
driver = webdriver.Chrome('/usr/local/bin/chromedriver')
and
driver = ...
55
votes
6
answers
264k
views
Where to find 64 bit version of chromedriver.exe for Selenium WebDriver?
Can anybody tell where I can find 64 bit version of chromedriver.exe? I tried it with 32bit also but it doesn't call main method.
54
votes
5
answers
84k
views
How to start ChromeDriver in headless mode
I want to try out headless chrome, but I am running into this issue, that I can't start the driver in headless mode. I was following google documentation. am I missing something ? The code execution ...
52
votes
6
answers
209k
views
Passthrough is not supported, GL is disabled
I tried crawling a specific site using selenium and webdriver_manager.chrome, and my code crawled elements of that site totally. But after crawling, the following error message appears in the console ...
50
votes
21
answers
141k
views
'Webdrivers' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
I've looked around checked both documentations and have found no answer.
I've been trying to use InstaPy a instagram api for python. After failing with multiple errors and assuming InstaPy is just ...
50
votes
3
answers
206k
views
How to set "value" to input web element using selenium?
I have element in my code that looks like this:
<input id="invoice_supplier_id" name="invoice[supplier_id]" type="hidden" value="">
I want to set its value, so I created a web element with it'...
48
votes
4
answers
58k
views
Timed out receiving message from renderer: 0.100 log messages using ChromeDriver and Chrome v80 through Selenium Java
We recently upgraded our test environment with ChromeDriver v80.0.3987.16 and Chrome v80.0.3987.87 (Official Build) (64-bit) and after the upgradation even the minimal program is producing a lot of ...
47
votes
12
answers
274k
views
WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome
For compatibility reasons I prefer to use Chrome version 55.0.2883.75 with Chromedriver v. 2.26. I downloaded the older version of chrome from https://www.slimjet.com/chrome/google-chrome-old-version....
47
votes
2
answers
95k
views
How does reCAPTCHA 3 know I'm using Selenium/chromedriver?
I'm curious how reCAPTCHA v3 works. Specifically the browser fingerprinting.
When I launch an instance of Chrome through Selenium/chromedriver and test against reCAPTCHA 3 (https://recaptcha-demo....
45
votes
14
answers
70k
views
protractor/selenium "could not find chromedriver at" (on Windows)
I installed protractor following this tutorial and when i use webdriver-manager update it says:
selenium standalone is up to date.
chromedriver is up to date.
thou when i try to run the protractor ...
45
votes
12
answers
144k
views
Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS
I got this while running the selenium webdriver script in python I also set the path in System Environment and also tried downloading the webdriver that matches with my chrome version. And also letest ...
44
votes
3
answers
82k
views
shared libraries libgconf-2.so.4 is missing
I want to install chromedriver in one of the AWS EC2 instance which is linux(Red Hat Enterprise Linux Server release 6.7 Santiago - 64 bit). While installing the chromedriver, we ran into issue due to ...
43
votes
7
answers
53k
views
How to suppress console error/warning/info messages when executing selenium python scripts using chrome canary
I am running python script (complete script link below) for selenium test using Chrome Canary. The test seems to be running fine, however, there are lots of error/warning/info messages displayed on ...