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?
本文标签:
版权声明:本文标题:selenium webdriver - How to get rid of the warning in Eclipse " Unable to find an exact match for CDP version 134, retu 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744685701a2619683.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论