SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.23k stars 8.12k forks source link

[🐛 Bug]: WARNING: Unable to find an exact match for CDP version 129, returning the closest version; found: 128; Please update to a Selenium version that supports CDP version 129 #14526

Open kipid opened 6 hours ago

kipid commented 6 hours ago

What happened?

org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch WARNING: Unable to find an exact match for CDP version 129, returning the closest version; found: 128; Please update to a Selenium version that supports CDP version 129

After upgrading Chrome to Version 129.0.6668.59 (Official Build) (64-bit), and Chrome Driver to 129.0.6668.58

This warning appears. Selenium upgrade which supports version 129 might be needed.

How can we reproduce the issue?

In JAVA program,
with build.gradle.kts
implementation("org.seleniumhq.selenium:selenium-java:4.24.0")

========================================================

JAVA code.

ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--headless=new", "--disable-web-security", "--allow-running-insecure-content", "--blink-settings=imagesEnabled=false", "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36", "--disable-software-rasterizer", "--disable-blink-features", "--window-size=1200,730", "--disable-gpu", "--disable-notifications", "--disable-extensions", "--ignore-certificate-errors", "--remote-allow-origins=*", "--no-sandbox", "--disable-dev-shm-usage", "--port=" + curPort);
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER);
chromeOptions.setAcceptInsecureCerts(true);
chromeOptions.setUnhandledPromptBehaviour(UnexpectedAlertBehaviour.DISMISS_AND_NOTIFY);

WebDriver driver = new ChromeDriver(chromeOptions());
driver.get("https://www.youtube.com/watch?v=OUlCf8WlUVg");
List<WebElement> elements = chromeDriver.findElements(By.cssSelector("title, meta[name='title'], meta[name='og:title'], h1, h2"));

Relevant log output

9월 21, 2024 9:03:49 오전 org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 129, returning the closest version; found: 128; Please update to a Selenium version that supports CDP version 129

Operating System

Windows 11 Home

Selenium version

4.24.0

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

129.0.6668.59 (Official Build) (64-bit)

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

129.0.6668.58

Are you using Selenium Grid?

No

github-actions[bot] commented 6 hours ago

@kipid, 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!