Skip to content

[🐛 Bug]: There seems to be some confusion in the ChromiumDriver when checking the CDP version. #12406

@666asd

Description

@666asd

What happened?

In the ChromiumDriver.java file of Selenium, the check for the CDP version is performed using the originalCapabilities, while the logging statement utilizes the capabilities.

How can we reproduce the issue?

I'm unsure about the intended usage of either originalCapabilities or capabilities in this specific context of checking the CDP version in ChromiumDriver. However, if you wish to specify the version of selenium-devtools by specifying the BrowserVersion in capabilities, you may achieve that.

Relevant log output

七月 24, 2023 4:20:06 下午 org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
警告: Unable to find CDP implementation matching 115
七月 24, 2023 4:20:07 下午 org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
警告: Unable to find version of CDP to use for 110. You may need to include a dependency on a specific version of the CDP using something similar to `org.seleniumhq.selenium:selenium-devtools-v86:4.8.1` where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's.

Operating System

all

Selenium version

java

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

all

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

all

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-javaJava BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions