selenium: [🐛 Bug]: Browser-wide DevTools client failed to connect: disconnected: unable to connect to renderer
What happened?
I have a script that runs Selenium to open a ChromeDriver in headless mode and perform some operations.
I am using
chromium --version
Chromium 111.0.5563.64 snap
And I have a row in the code that sets Chromedriver version to the same one: WebDriverManager.chromedriver().driverVersion("111.0.5563.64").setup();
I also have this settings as arguments:
options.addArguments("--headless", "--lang=it", /* "--no-sandbox", */ /*"--disable-dev-shm-usage", */"start-maximized", "--disable-gpu", "--window-size=1920,1200", "--ignore-certificate-errors", "--disable-extensions", "disable-infobars", "--remote-allow-origins=*");
Also, I am using the latest 4.8.1 Selenium Version through Maven.
When I run my script, I get this error: [1679566402.801][WARNING]: Browser-wide DevTools client failed to connect: disconnected: unable to connect to renderer
How can we reproduce the issue?
- Install Chromium 111.0.5563.64 snap
- Use WebDriverManager.chromedriver().driverVersion("111.0.5563.64").setup();
Relevant log output
[pool-1-thread-2] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /home/forge/.cache/selenium/chromedriver/linux64/111.0.5563.64/chromedriver
[2023-03-23 10:13:22.698] [pool-1-thread-2] Setting up --remote-debugging-port=59112
Starting ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) on port 31037
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[1679566402.801][WARNING]: Browser-wide DevTools client failed to connect: disconnected: unable to connect to renderer
Operating System
Ubuntu 20.04.5 LTS (Focal Fossa)
Selenium version
4.8.1
What are the browser(s) and version(s) where you see this issue?
Chrome / Chromium 111.0.5563.64
What are the browser driver(s) and version(s) where you see this issue?
111.0.5563.64
Are you using Selenium Grid?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26 (9 by maintainers)
I fixed installing Chrome instead of Chromium. Thanks