Closed lushi78778 closed 2 years ago
@lushi78778, thank you for creating this issue. We will troubleshoot it as soon as we can.
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!
You need to move your Selenium dependencies to the most recent release (at the time is 4.2.1).
I have the same problem and I tried with your solution but the problem didn't solve. :'(
Open a new ticket with your code and the error, then.
Starting ChromeDriver 102.0.5005.61 (0e59bcc00cc4985ce39ad31c150065f159d95ad3-refs/branch-heads/5005@{#819}) on port 52403
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Jun 21, 2022 3:38:50 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Jun 21, 2022 3:38:50 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 102, so returning the closest version found: a no-op implementation
Jun 21, 2022 3:38:50 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
INFO: Unable to find CDP implementation matching 102.
Jun 21, 2022 3:38:50 PM org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
WARNING: 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.1.2
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.
im confused pls do any solution
Starting ChromeDriver 102.0.5005.61 (0e59bcc00cc4985ce39ad31c150065f159d95ad3-refs/branch-heads/5005@{#819}) on port 52403
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Jun 21, 2022 3:38:50 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Jun 21, 2022 3:38:50 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 102, so returning the closest version found: a no-op implementation
Jun 21, 2022 3:38:50 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
INFO: Unable to find CDP implementation matching 102.
Jun 21, 2022 3:38:50 PM org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
WARNING: 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.1.2
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.
I have the same issue
received the same error :
Jun 22, 2022 4:23:30 PM org.openqa.selenium.remote.ProtocolHandshake createSession WARNING: Support for Legacy Capabilities is deprecated; You are sending the following invalid capabilities: [acceptSslCerts]; Please update to W3C Syntax: https://www.selenium.dev/blog/2022/legacy-protocol-support/ Jun 22, 2022 4:23:30 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch WARNING: Unable to find an exact match for CDP version 103, so returning the closest version found: 102 Jun 22, 2022 4:23:30 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch INFO: Found CDP implementation for version 103 of 102 Exception in thread "main" org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException Build info: version: '4.2.2', revision: '683ccb65d6' System info: host: 'hollys-mbp.lan', ip: '2603:8000:9903:663c:583a:6efc:acdc:2182%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.4', java.version: '11.0.14.1' Driver info: org.openqa.selenium.chrome.ChromeDriver Command: [7b6f9386af35be789e8b8ff6371ea938, get {url=https://ucla-apidevportal:ucla-apidevportal@20.apigee-dev-portal.docksal}] Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 103.0.5060.53, chrome: {chromedriverVersion: 103.0.5060.53 (a1711811edd7..., userDataDir: /var/folders/ny/c0wz9f9n6qj...}, goog:chromeOptions: {debuggerAddress: localhost:51270}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: MAC, proxy: Proxy(), se:cdp: ws://localhost:51270/devtoo..., se:cdpVersion: 103.0.5060.53, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true} Session ID: 7b6f9386af35be789e8b8ff6371ea938 at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:65) at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42) at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56) at org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:49) at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42) at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56) at org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:98) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:181) at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:588) at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:351) at edu.ucla.apim.PortalTest.launchPortalSite(PortalTest.java:44) at edu.ucla.apim.PortalTest.main(PortalTest.java:35) Caused by: java.util.concurrent.TimeoutException at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021) at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206) at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:59) ... 13 more hollywang@hollys-mbp apimportalautotest %
bad thing , I gave up the project for the time being,i suggest you change a new framework
***@***.***
|
From | |
Date | 06/23/2022 08:33 |
To | |
Cc | 、 |
Subject | Re: [SeleniumHQ/selenium] [🐛 Bug]: Unable to find an exact match for CDP version 102, so returning the closest version found: a no-op implementation (Issue #10733) |
I have the same issue
received the same error :
Jun 22, 2022 4:23:30 PM org.openqa.selenium.remote.ProtocolHandshake createSession
WARNING: Support for Legacy Capabilities is deprecated; You are sending the following invalid capabilities: [acceptSslCerts]; Please update to W3C Syntax: https://www.selenium.dev/blog/2022/legacy-protocol-support/
Jun 22, 2022 4:23:30 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 103, so returning the closest version found: 102
Jun 22, 2022 4:23:30 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
INFO: Found CDP implementation for version 103 of 102
Exception in thread "main" org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException
Build info: version: '4.2.2', revision: '683ccb65d6'
System info: host: 'hollys-mbp.lan', ip: '2603:8000:9903:663c:583a:6efc:acdc:2182%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.4', java.version: '11.0.14.1'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [7b6f9386af35be789e8b8ff6371ea938, get {url=https://ucla-apidevportal:}]
Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 103.0.5060.53, chrome: {chromedriverVersion: 103.0.5060.53 (a1711811edd7..., userDataDir: /var/folders/ny/c0wz9f9n6qj...}, goog:chromeOptions: {debuggerAddress: localhost:51270}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: MAC, proxy: Proxy(), se:cdp: ws://localhost:51270/devtoo..., se:cdpVersion: 103.0.5060.53, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 7b6f9386af35be789e8b8ff6371ea938
at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:65)
at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
at org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:49)
at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
at org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:98)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:181)
at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:588)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:351)
at edu.ucla.apim.PortalTest.launchPortalSite(PortalTest.java:44)
at edu.ucla.apim.PortalTest.main(PortalTest.java:35)
Caused by: java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021)
at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206)
at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:59)
... 13 more
***@***.*** apimportalautotest %
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
same issue, solved with:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.3.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-devtools-v102</artifactId>
<version>4.3.0</version>
</dependency>
now: Starting ChromeDriver 103.0.5060.53 (a1711811edd74ff1cf2150f36ffa3b0dae40b17f-refs/branch-heads/5060@{#853}) on port 41457 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. Jul 06, 2022 10:15:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected upstream dialect: W3C Jul 06, 2022 10:15:05 AM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch INFO: Found exact CDP implementation for version 103
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.
What happened?
Selenium works fine with chrome in the idea, but becomes unable to find a CDP implementation after compilation.
console log:
Google Chrome 102.0.5005.63 (正式版本) (64 位) (cohort: Stable Installs & Version Pins) chromedriver:http://chromedriver.storage.googleapis.com/index.html?path=102.0.5005.61/
my pom file:
And this version only seems to be specified one by one, which is strange: maven url: https://developer.aliyun.com/mvn/guide
How can we reproduce the issue?
Relevant log output
Operating System
Microsoft Windows 10 pro
Selenium version
java11.0.12
What are the browser(s) and version(s) where you see this issue?
Google Chrome 102.0.5005.63 stable
What are the browser driver(s) and version(s) where you see this issue?
chromedriver:102.0.5005.61
Are you using Selenium Grid?
4.1.0 and springboot2.4.1