[🐛 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 issueWhat 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

4.5.1 has been released. Thanks for reporting.
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.