admin管理员组

文章数量:1391981

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?

本文标签: