Selenium Chrome Webdriver SessionNotCreatedException [英] Selenium Chrome webdriver SessionNotCreatedException

查看:131
本文介绍了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

有什么想法要解决吗?

推荐答案

您需要使用匹配的

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:

这篇关于Selenium Chrome Webdriver SessionNotCreatedException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆