最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

selenium webdriver - How to get rid of the warning in Eclipse " Unable to find an exact match for CDP version 134, retu

programmeradmin1浏览0评论

I am new to selenium and running a simple code to open the chrome browser. The code works fine but it is giving me the following error in the console

Mar 12, 2025 11:58:56 A.M. .openqa.selenium.devtools.CdpVersionFinder findNearestMatch WARNING: Unable to find an exact match for CDP version 134, returning the closest version; found: 133; Please update to a Selenium version that supports CDP version 134

import .openqa.selenium.WebDriver;
import .openqa.selenium.chrome.ChromeDriver;
public class checkClass {
    
    public static void main(String[] args) {
        
        //Google chrome
        
        System.setProperty("webdriver.chrome.driver", "C:\\Users\\user\\Downloads\\chromedriver-win64\\chromedriver-win64\\chromedriver.exe")
");
        
        WebDriver driver = new ChromeDriver();
        
        driver.get("/");
        
        String title = driver.getTitle();
        
        if(title.equalsIgnoreCase("GooglE")) {
            System.out.println("Correct Title");
        }else {
            System.out.println("InCorrect Title");
        }
        
        System.out.println(driver.getCurrentUrl());
        driver.quit();
    }
}

I have:

  • Chrome version 134.0.6998.89
  • Selenium-java-4.29.0

Chrome driver downloaded :.0.6998.88/win64/chromedriver-win64.zip

how to resolve the issue?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论