SessionNotCreatedException:消息:未创建会话:此版本的ChromeDriver仅支持Chrome版本81 [英] SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
问题描述
我目前是机器人框架的新手.我当前使用的是chrome和chromedriver的最新窗口版本,当前版本为80,但是当我尝试运行测试时,它显示消息"SessionNotCreatedException:消息:未创建会话:此版本的ChromeDriver pycharm仅支持Chrome版本81,但目前仅提供81的Beta版本.我尝试卸载所有内容并重新安装,但是任何人都无法解决这个问题.谢谢!
I am currently new to robot framework.I am currently using latest window version of chrome and chromedriver which is 80 but when i try to run the test it gives the message "SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81" in pycharm but currently beta version of 81 is only available. I have tried uninstalling everthing and reinstalling it again but nothing works can anyone help me with this.Thank you!
以下屏幕截图:
推荐答案
我使用webdrive管理器解决了这类问题.
I solved these kinds of problems using the webdrive manager.
您可以通过使用webdrive-manager自动使用正确的chromedriver. 安装webdrive-manager:
You can automatically use the correct chromedriver by using the webdrive-manager. Install the webdrive-manager:
pip install webdriver-manager
然后按如下所示在python中使用驱动程序
Then use the driver in python as follows
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
此答案来自 https://stackoverflow.com/a/52878725/10741023
这篇关于SessionNotCreatedException:消息:未创建会话:此版本的ChromeDriver仅支持Chrome版本81的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!