[英]SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 99 Current browser version is 105
I am currently new to robot framework.我目前是机器人框架的新手。 currently using latest version of chrome and ChromeDriver which is 105 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 99" I have tried uninstalling everything and reinstalling it again but nothing works can anyone help me with this.目前使用的是最新版本的 chrome 和 ChromeDriver,它是 105,但是当我尝试运行测试时,它会显示消息“SessionNotCreatedException:消息:session 未创建:此版本的 ChromeDriver 仅支持 Chrome 版本 99”我已尝试卸载所有内容并重新安装它再次但没有任何工作可以帮助我解决这个问题。 Thank you!谢谢!
Screenshots below: enter image description here SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 99 Current browser version is 105.0.5195.127 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe enter image description here下面的截图:在此处输入图像描述SessionNotCreatedException:消息:session 未创建:此版本的 ChromeDriver 仅支持 Chrome 版本 99 当前浏览器版本为 105.0.5195.127,二进制路径为C :\Program Files\Chrome。图片说明在这里
Chrome driver has a page on how to identify the exact version that you need, but it's a pain, especially if you regularly update chrome, or want to make it part of a build process. Chrome 驱动程序有 一个关于如何识别您需要的确切版本的页面,但这很痛苦,特别是如果您定期更新 chrome,或者想让它成为构建过程的一部分。
Not sure about robot framework, but chromedriver-autoinstaller sure helped me out when building a pipeline to get a selenium/chrome project going, as it will detect the version of chrome installed and install the correct driver version automatically.不确定机器人框架,但chromedriver-autoinstaller在构建管道以使 selenium/chrome 项目运行时确实帮助了我,因为它会检测已安装的 chrome 版本并自动安装正确的驱动程序版本。
Have you install the latest chromedriver for chrome version 105.0.5195.127?您是否安装了适用于 chrome 版本 105.0.5195.127 的最新 chromedriver?
https://chromedriver.chromium.org/downloads https://chromedriver.chromium.org/downloads
Or maybe you have two different version of binaries and linked into environment variables that makes the error, Check it.或者,也许您有两个不同版本的二进制文件并链接到导致错误的环境变量,检查它。
To check the version of the chromedriver use the v
command argument.要检查 chromedriver 的版本,请使用v
命令参数。 Example: chromedriver.exe /v
示例: chromedriver.exe /v
I really don't know exactly how to find the chromedriver you have installed.我真的不知道如何找到您已安装的 chromedriver。
Im trying to help, and i can't comment.我试图提供帮助,我无法发表评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.