question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: `RemoteWebDriver.GetDevToolsSession` throws `OpenQA.Selenium.WebDriverException: A WebSocket address for DevTools protocol has been detected, but the protocol version cannot be automatically detected. You must specify a protocol version.` when chrome is 106

See original GitHub issue

What happened?

  • Run latest version (4.5.0) of Selenium Grid, with Chrome 106.
  • Create a dotnet project referencing WebDriver 4.5.0
  • After creating the remote driver call:
var devtools = driver.GetDevToolsSession(106);

Actual result:

OpenQA.Selenium.WebDriverException: A WebSocket address for DevTools protocol has been detected, but the protocol version cannot be automatically detected. You must specify a protocol version.

Expected Result:

No exception occurs and a DevTools session is created

Root cause:

This commit changed DevToolsSession.AutoDetectDevToolsProtocolVersion from 0 to 106.

How can we reproduce the issue?

See above.

Relevant log output

N/A

Operating System

Windows 10

Selenium version

DotNet 4.5.0

What are the browser(s) and version(s) where you see this issue?

Chrome 106

What are the browser driver(s) and version(s) where you see this issue?

105.0.5195.52

Are you using Selenium Grid?

4.5.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
titusfortnercommented, Oct 7, 2022

4.5.1 has been released. Thanks for reporting.

2reactions
titusfortnercommented, Oct 6, 2022

Nope. that was a temp change when I was trying to get tests to work before I upgraded chrome version, and I didn’t change it back. I’ll fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenQA.Selenium.WebDriverException: 'Unexpected error ...
After Chrome is updated more than 5 versions, Driver.GetDevToolsSession() throws the following exception: OpenQA.Selenium.WebDriverException ...
Read more >
Using DevTools features with Selenium Grid on Docker
In order to investigate it, I installed a local grid with one Chrome node using docker-compose and I got the same error: OpenQA.Selenium....
Read more >
[Code example]-Chrome DevTools getting websocket address
When using Chrome as Selenium webdriver as follow: from selenium import webdriver driver = webdriver.Chrome(executable_path='chromedriver.exe') driver.close ...
Read more >
Implementing a Chrome DevTools Protocol server in Firefox
Hi everyone, Mozilla DevTools is exploring implementing parts of the Chrome DevTools. Protocol ("CDP") [0] in Firefox. This is an HTTP, WebSockets, and...
Read more >
Selenium + Chrome Dev-tools makes a Perfect Browser ...
I was just browsing the Twitter and came accross a tweet mentioning that Chrome 63 is coming with Multi-client remote debugging support. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found