from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--start-maximized')
options.add_extension('D:\小狐狸钱包插件')
ph = 'D:\pythonProject\pythonProject\Scripts'
driver = webdriver.Chrome(executable_path='ph', options=Options)
driver.get('https://gm-portal.changyou.com/Giveaway/index')
#报错信息
Traceback (most recent call last):
File "D:\pythonProject\gamefish.py", line 93, in <module>
driver = webdriver.Chrome(executable_path='ph')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebDriver.__init__() got multiple values for argument 'executable_path'
为什么报这个错,