TypeError:__init__() 得到一个意外的关键字参数“chrome_options”

TypeError: __init__() got an unexpected keyword argument 'chrome_options'

提问人:Mizo U 提问时间:11/7/2023 最后编辑:Mizo U 更新时间:11/7/2023 访问量:41

问:

我在尝试运行机器人测试时遇到问题。我收到以下错误:

TypeError:init() 得到一个意外的关键字参数“chrome_options”

法典:

${chrome_options} =    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver

create webdriver    Chrome    chrome_options=${chrome_options}

go to    https://www.google.com/

我安装了 Selenium 和 Chrome Webdriver。Pip 预装了 Python 3。但是,我收到此错误消息。我刚刚开始学习这门语言,所以如果错误很愚蠢,请善待。

任何帮助将不胜感激。非常感谢。

python-3.x selenium-webdriver chrome-web-driver ride

评论


答: 暂无答案