chromedriver 控制360极速浏览器chrome_options报错,请教怎么修改代码
程序代码:
from selenium import webdriver from selenium.webdriver.chrome.options import Options import time browser_url = r'D:\360\360Chrome\Chrome\Application\360chrome.exe' #360极速浏览器 chrome_options = Options() chrome_options.binary_location = browser_url driver = webdriver.Chrome(chrome_options = chrome_options) driver.get('https://www.baidu.com') time.sleep(3)
下面是错误提示:
程序代码:
D:\anaconda\python.exe D:\python学习\lianxi.py Traceback (most recent call last): File "D:\python学习\lianxi.py", line 7, in <module> driver = webdriver.Chrome(chrome_options = chrome_options) TypeError: __init__() got an unexpected keyword argument 'chrome_options'
[此贴子已经被作者于2023-6-24 22:31编辑过]