Selenium Chrome Webdriver SessionNotCreatedException [英] Selenium Chrome webdriver SessionNotCreatedException
问题描述
使用硒Chrome网络驱动程序,尝试启动时出现异常.我浏览了很多帖子,并尝试了所有可能的方法.我正在使用兼容的Chrome浏览器和Chrome驱动程序版本-
Using selenium & Chrome webdriver, I'm getting below exception on trying to launch. I have gone through lot of posts and tried all possible ways. I'm using compatible chrome browser and chrome drivers versions -
- 版本80.
- Java-1.8
- Windows 10操作系统
当我在个人计算机上运行时,该测试仍有效.但这给我的组织机构的机器带来了以下错误.另外,如果使用边缘驱动程序也没问题.
The same test when i run on my personal computer, its working. But it's giving below error on my organization s machine. Also, no issues if I use edge drivers.
org.openqa.selenium.SessionNotCreatedException: session not created
disconnected: unable to send message to renderer
有什么想法要解决吗?
推荐答案
您需要使用匹配的 google-chrome 版本的问题.
You need to use the matching ChromeDriver (matching MAX number) with respect to the installed google-chrome version installed in your system.
例如,如果您有效地使用当前的 chrome = 88.0.4324.104
,则可以使用以下版本的 ChromeDriver 之一:
As an example if you are using the current chrome=88.0.4324.104
effectively you can use either of the following versions of ChromeDriver:
您可以在以下位置找到几个相关的详细讨论:
You can find a couple of relevant detailed discussions in:
- SessionNotCreatedException:消息:未从断开连接创建会话:无法使用ChromeDriver 2.45 Chrome v71连接到渲染器
- WebDriverException:断开连接:无法甚至在提供最新chromedriver正确路径的情况下也可以连接到渲染器
- 自动化测试错误:org.openqa.selenium.WebDriverException:断开连接:无法连接到渲染器
这篇关于Selenium Chrome Webdriver SessionNotCreatedException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!