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.
请澄清您的具体问题或提供更多详细信息,以突出您的需求。正如目前所写的,很难准确说出你在问什么。
优秀答案推荐
我是一名优秀的程序员,十分优秀!