Skip to content
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]: Selenium NuGet package not updated with newer CDP bindings #10583

Closed
jeffreyrivor opened this issue Apr 27, 2022 · 3 comments
Closed

Comments

@jeffreyrivor
Copy link

What happened?

The Selenium.WebDriver 4.1.0 NuGet package is several major releases behind the stable Chrome DevTools Protocol, so it does not work with latest stable of Chrome (v100.x as of this writing). The latest version in 4.1.0 release is v96 which is no longer works against v100. The .NET bindings are clearly being kept updated as the CDP is versioned (see https://github.com/SeleniumHQ/selenium/commits/trunk/dotnet/src/webdriver/DevTools) but no NuGet package releases have been made.

It seems to me that there should be a new 4.x.x release of the Selenium.WebDriver NuGet package based on the latest trunk.

How can we reproduce the issue?

- Create .NET 5.0 test project using dotnet new
- Install latest Chrome (v100.x)
- Add Selenium.WebDriver 4.1.0 and Selenium.WebDriver.ChromeDriver 100.x matching Chrome version

In a test, attempt to create a DevTools session to use something available in the latest available DevTools version in the 4.1.0 package.


using OpenQA.Selenium.DevTools.V96.Fetch; // no newer NuGet package version to use V100.Fetch

var driver = new ChromeDriver();
var fetchAdapater = new FetchAdapater(driver.GetDevToolsSession());


### Relevant log output

```shell
Error: OpenQA.Selenium.WebDriverException: Unexpected error creating WebSocket DevTools session. ---> System.NullReferenceException: Object reference not set to an instance of an object..
  Stack Trace:
      at OpenQA.Selenium.DevTools.DevToolsDomains.InitializeDomains(Int32 protocolVersion, DevToolsSession session, Int32 versionRange)
   at OpenQA.Selenium.DevTools.DevToolsDomains.InitializeDomains(Int32 protocolVersion, DevToolsSession session)
   at OpenQA.Selenium.DevTools.DevToolsSession.StartSession(Int32 requestedProtocolVersion)
   at OpenQA.Selenium.Chromium.ChromiumDriver.GetDevToolsSession(Int32 devToolsProtocolVersion)
--- End of inner exception stack trace ---

Operating System

Windows Server 2022

Selenium version

.NET 4.1.0

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

Chrome 101.0.4951.15

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

ChromeDriver 101.0.4951.15

Are you using Selenium Grid?

No response

@github-actions
Copy link

@jeffreyrivor, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol
Copy link
Member

diemol commented Apr 28, 2022

4.1.1 was released earlier today which supports recent CDP versions.

@diemol diemol closed this as completed Apr 28, 2022
@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants