SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Starting ChromeDriver 100.0.4896.60 (6a5d10861ce8de5fce22564658033b43cb7de047-refs/branch-heads/4896@{#875}) on port 50749
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 100
Current browser version is 104.0.5112.81 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Build info: version: '4.3.0', revision: 'a4995e2c09*'
IDEA运行selenium程序提示错误:Exception in thread “main“ org.openqa.selenium.SessionNotCreatedException:
最新推荐文章于 2024-01-24 15:35:12 发布
在运行Selenium程序时遇到SessionNotCreatedException,原因是Chrome浏览器(v104.0.5112.81)与ChromeDriver(v100.0.4896.60)版本不匹配。解决方案是下载与当前浏览器版本相匹配的ChromeDriver,例如,对于Chrome v104应使用ChromeDriver 104.0.5112.29。
摘要由CSDN通过智能技术生成