gpt4 book ai didi

WebDriver __init()__ got multiple values for arguments 'options'(WebDriver __init()__为参数“options”获取了多个值)

转载 作者:bug小助手 更新时间:2023-10-22 15:10:16 42 4
gpt4 key购买 nike



This is the code:

这是代码:


    options = Options()
options.add_experimental_option("excludeSwitches", ["enable-logging"])
options.add_argument("--profile-directory=Default")
options.add_argument("--user-data-dir=/var/tmp/chrome_user_data")

driver = webdriver.Chrome(ChromeDriverManager().install(),options=options)

This is the error:

这是错误:


Traceback (most recent call last):
File "C:\Users\Asus\Desktop\Elamaran\script.py", line 48, in <module>
driver = webdriver.Chrome(ChromeDriverManager().install(),options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebDriver.__init__() got multiple values for argument 'options'

更多回答

Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.

请澄清您的具体问题或提供更多详细信息,以突出您的需求。正如目前所写的,很难准确说出你在问什么。

Does this answer your question? TypeError: WebDriver.__init__() got multiple values for argument 'options'

这能回答你的问题吗?类型错误:WebDriver__init__()为参数“options”获取了多个值

优秀答案推荐
更多回答

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com