RobotFramework error - TypeError: __init__() got an unexpected keyword argument ‘service_log_path‘

我第一次尝试安装和使用RobotFramework。我已经完成了所有的安装,并有一个测试用例,它只是试图打开Chrome。每次我运行它,我得到以下错误…
TypeError: init() got an unexpected keyword argument ‘service_log_path’

这里是我的安装环境Chrome Version 114.0.5735.106(官方版本)(arm64) Python 3.7 PyCharm 2023.1.2 CE Robotframework 6.1.0 robotframe -seleniumlibrary 6.1.0 selenium 4.10.0 chromedriver 114.0.5735.90

我已经完全重新安装了所有的东西,除了Chrome。
RobotFramework error - TypeError: __init__() got an unexpected keyword argument ‘service_log_path‘_第1张图片
原因:Selenium WebDriver 版本与库文件不兼容
RobotFramework error - TypeError: __init__() got an unexpected keyword argument ‘service_log_path‘_第2张图片

解决解决办法:selenium版本号更换为: pip install selenium==4.9.1
RobotFramework error - TypeError: __init__() got an unexpected keyword argument ‘service_log_path‘_第3张图片

你可能感兴趣的:(RobotFramework,python,chrome,RobotFramework)