简体   繁体   English

org.openqa.selenium.SessionNotCreatedException: session not created: 此版本的 ChromeDriver 仅支持使用 Selenium 的 Chrome 75 版

[英]org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 75 using Selenium

I want to open the Chrome browser it displays error.我想打开显示错误的 Chrome 浏览器。

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Homepage {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        //Create Driver object
        System.setProperty("webdriver.chrome.driver", "C:\\Workdirectory\\chromedriver.exe");
        WebDriver driver = new ChromeDriver();
    }
}

Here I am expecting My Chrome Browser but it throws an error like在这里,我期待我的 Chrome 浏览器,但它引发了一个错误,如

Starting ChromeDriver 75.0.3770.8 (681f24ea911fe754973dda2fdc6d2a2e159dd300-refs/branch-heads/3770@{#40}) on port 21714
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 75
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'DESKTOP-3JIP3OF', ip: '192.168.1.73', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_101'
Driver info: driver.version: ChromeDriver

Error session not created: This version of ChromeDriver only supports Chrome version 75 . session not created: This version of ChromeDriver only supports Chrome version 75错误session not created: This version of ChromeDriver only supports Chrome version 75 So there is a compatibility issue with the chrome browser version and the chromedriver version.所以存在chrome浏览器版本和chromedriver版本的兼容性问题。 Please get the appropriate chrome driver based on your chrome browser version from the below location.请从以下位置根据您的 chrome 浏览器版本获取适当的 chrome 驱动程序。

http://chromedriver.chromium.org/downloads http://chromedriver.chromium.org/downloads

This error message...这个错误信息...

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 75

...implies that the ChromeDriver v75 supports Chrome Browser v75 only which wasn't available within your system. ...暗示ChromeDriver v75仅支持Chrome 浏览器 v75 ,而您的系统中不支持该浏览器


Your main issue is the incompatibility between the version of the binaries you are using as follows:您的主要问题是您使用的二进制文件版本之间的不兼容,如下所示:

Supports Chrome version 75支持Chrome 75 版

  • The latest released Chrome version is chrome=74.0 which you are currently using.最新发布的Chrome版本是您当前使用的chrome=74.0

So there is a clear mismatch between the ChromeDriver v75.0 and the Chrome Browser v74.0所以ChromeDriver v75.0Chrome 浏览器 v74.0之间存在明显的不匹配


Solution解决方案


Reference参考

You can find a relevant detailed discussion in:您可以在以下位置找到相关的详细讨论:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SessionNotCreatedException: session not created: 此版本的 ChromeDriver 仅支持使用 Selenium ChromeDriver 的 Chrome 版本 77 - SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 77 using Selenium ChromeDriver org.openqa.selenium.SessionNotCreatedException:会话未创建断开连接:无法使用 ChromeDriver 和 Chrome 将消息发送到渲染器错误 - org.openqa.selenium.SessionNotCreatedException: session not created disconnected:unable to send message to renderer error with ChromeDriver and Chrome org.openqa.selenium.SessionNotCreatedException:会话未为Chrome创建异常 - org.openqa.selenium.SessionNotCreatedException: session not created exception for Chrome org.openqa.selenium.NoSuchSessionException: invalid session id message= 此版本的 ChromeDriver 仅支持 Chrome 版本 74 - org.openqa.selenium.NoSuchSessionException: invalid session id message= This version of ChromeDriver only supports Chrome version 74 org.openqa.selenium.SessionNotCreatedException:无法创建新的会话。 (原始错误:'java -version'失败。错误:产生ENOENT) - org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: 'java -version' failed. Error: spawn ENOENT) org.openqa.selenium.SessionNotCreatedException - org.openqa.selenium.SessionNotCreatedException org.openqa.selenium.SessionNotCreatedException - org.openqa.selenium.SessionNotCreatedException Selenium(OSX 和 Linux)抛出错误 org.openqa.selenium.SessionNotCreatedException:会话未创建:找不到匹配的功能 - Selenium(OSX and Linux) thowing error org.openqa.selenium.SessionNotCreatedException: session not created: No matching capabilities found org.openqa.selenium.SessionNotCreatedException:无法通过 Selenium 和 Java 使用 GeckoDriver 和 Firefox 创建会话错误 - org.openqa.selenium.SessionNotCreatedException: Unable to create session error using GeckoDriver and Firefox through Selenium and Java SeleniumError:org.openqa.selenium.SessionNotCreatedException - SeleniumError : org.openqa.selenium.SessionNotCreatedException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM