-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: Browser-wide DevTools client failed to connect: disconnected: unable to connect to renderer #11809
Comments
@riki95, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
This is likely a duplicate of #11750 Take a look at #11750 (comment) |
I already tried the fix suggested in the comment, but it does not work. |
We also tried the fix suggested in the comment, but it does not work. Approximately, when can we expect the next version of Selenium will be released with this fix? |
Doesn't snap have its own driver you need to use? I don't think WebDriverManager manages that right now. |
Good morning, is there an ETA for this? |
Please try with 4.8.3 which was released earlier this week. If it is not working, please provide a full stack trace / logs. Thanks. |
Still not working. I am using these dependencies: pom.xml
This is the code I use to run my script and open Chrome: Code
I tried with different Chrome Driver versions, both The only difference is that with Chrome Driver 112, I don't get this error: The program just runs and do nothing. |
Updates on this? |
So is it Chrome or Chromium? What are you using? |
Does it only happen with headless? |
Chromium on linux |
No even without and using chrome on Mac, same issue |
OK, so if I use the code from this link on macOS, I should be able to reproduce the issue. Did I get that right? |
Well that's the connection part, you can try |
If it is snap, I think you need to pass in the location of the driver distributed with snap |
What do you mean? |
Snap requires different driver settings so there is a different driver distributed by snap, which webdriver manager doesn't support. You need to specify that driver in the system properties instead of using the manager. |
I fixed installing Chrome instead of Chromium. Thanks |
riki95 can you please explain what do you mean by installing Chrome instead Chromium mean? I’m getting the same issue. I thought it is because an organization ban on third tools. If you can pass one script here, it would be great |
Hi, it's simple Hope it helps |
Hi @riki95, I installed google-chrome but I'm still seeing basically the same error. Selenium::WebDriver::Error::UnknownError:
unknown error: Chrome failed to start: crashed.
(chrome not reachable)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Has anybody else resolved this issue by replacing chromium with google-chrome? |
"I had the same problem and tried changing the chromedriver to match my Chrome browser version, but it didn't help. I double-checked my Chrome version by going to Settings -> About Chrome and saw that it was the same as my chromedriver's version. As a result, Chrome started updating automatically. After the update was complete, everything started working correctly and the problem disappeared." |
|
We encounter inconsistent DevTools errors (sometimes, the test pass without DevTools issues). We believe that this inconsistency may be due to some sort of network or timing-related issues. For example, if we run Capybara spec features tests n times, half of the time we have DevTools errors. We don't think there are issues with our setup since sometimes the test passes without DevTools issues. Has anyone also encountered inconsistency issues? Driver Setup:
Capybara.register_driver :headless_chrome do |app|
opts = Selenium::WebDriver::Chrome::Options.new
chrome_args = %w[--no-sandbox --verbose --log-level=1 --start-maximized --disable-infobars --disable-extensions --disable-browser-side-navigation --headless=new --disable-dev-shm-usage --disable-gpu --disable-extensions --disable-popup-blocking --window-size=1920,2000 --remote-debugging-port=9222 --page_load_strategy='none']
chrome_args.each { |arg| opts.add_argument(arg) }
Capybara::Selenium::Driver.new(app, browser: :chrome, options: opts)
end Log output: 2.1) Failure/Error: expect(page).to have_text('Any Text')
2.2) Failure/Error: Unable to infer file and line number from backtrace
Operating System
Selenium version
The browser and version
The browser driver and version
|
IT is because driver is not closed and you try run again. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
I have a script that runs Selenium to open a ChromeDriver in headless mode and perform some operations.
I am using
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
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
The text was updated successfully, but these errors were encountered: