selenium cdp error Unable to find version of CDP to use for

问题

报错信息

Starting ChromeDriver 102.0.5005.61 (0e59bcc00cc4985ce39ad31c150065f159d95ad3-refs/branch-heads/5005@{#819}) on port 60028
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[1657349045.598][WARNING]: This version of ChromeDriver has not been tested with Chrome version 103.
7月 09, 2022 2:44:05 下午 org.openqa.selenium.remote.ProtocolHandshake createSession
信息: Detected dialect: W3C
7月 09, 2022 2:44:05 下午 org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
警告: Unable to find an exact match for CDP version 103, so returning the closest version found: a no-op implementation
7月 09, 2022 2:44:05 下午 org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
信息: Unable to find CDP implementation matching 103.
7月 09, 2022 2:44:05 下午 org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
警告: Unable to find version of CDP to use for . 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.0.0` 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.

环境

解决方案

        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-devtools-v102</artifactId>
            <version>4.2.1</version>
        </dependency>