Driver info: driver.version: unknown with ChromeDriver Chrome using Selenium and Python

不羁的心 提交于 2021-02-05 07:37:09

问题


It is showing timed out for driver server to start when I use chrome driver. And when I try to use Firefox it is showing session unexpectedly exited. I am trying to run the Remote driver on a server using selenium in python what should I do? Unable to create new session.

UnknownError: Timed out waiting for driver server to start. Build info: version: '3.141.0', revision: '2ecb7d9a', time: '2018-10-31T20:22:52' System info: host: 'server.*******.com', ip: '61.16.155.6', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-862.11.6.el7.x86_64', java.version: '1.8.0_201' Driver info: driver.version: unknown


回答1:


This error message...

Driver info: driver.version: unknown

...implies that the ChromeDriver wasn't recognized back by the Browsing Context i.e. Chrome browser.


Solution

Ensure that:

  • JDK is upgraded to current levels JDK 8u222.
  • Selenium is upgraded to current levels Version 3.141.59.
  • ChromeDriver is updated to current ChromeDriver v78.0 level.
  • Chrome is updated to current Chrome Version 78.0 level. (as per ChromeDriver v78.0 release notes)
  • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.

Reference

You can find a detailed discussion on version compatibility in:

  • How to work with a specific version of ChromeDriver while Chrome Browser gets updated automatically through Python selenium


来源:https://stackoverflow.com/questions/59266021/driver-info-driver-version-unknown-with-chromedriver-chrome-using-selenium-and

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