Selenium Chrome webdriver SessionNotCreatedException

戏子无情 提交于 2021-02-11 12:13:37

问题


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 -

  • Version 80.
  • Java - 1.8
  • Windows 10 os

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

Any thoughts to solve this?


回答1:


Check for chromedriver version in organization's machine. Please update your chromedriver with lastest version in organization machine. Issue will get resolve




回答2:


The ChromeDriver Version you are using in your code might be different than the Chrome Browser installed in your system.

Check and download the same version of driver as of your browser version.




回答3:


You need to use the matching ChromeDriver (matching MAX number) with respect to the installed google-chrome version installed in your system.

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:

  • ChromeDriver 88.0.4324.27
  • ChromeDriver 88.0.4324.96

References

You can find a couple of relevant detailed discussions in:

  • SessionNotCreatedException: Message: session not created from disconnected: unable to connect to renderer with ChromeDriver 2.45 Chrome v71
  • WebDriverException: disconnected: unable to connect to renderer even on providing correct path of latest chromedriver
  • Automation Testing Error : org.openqa.selenium.WebDriverException: disconnected: unable to connect to renderer


来源:https://stackoverflow.com/questions/61648667/selenium-chrome-webdriver-sessionnotcreatedexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!