`
# 下列设置让浏览器不弹出,不影响正常电脑使用
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--disable-gpu')
# print(chrome_options)
driver = webdriver.Chrome(chrome_options)
`
传入参数chrome_options一直报错
TypeError: argument of type 'Options' is not iterable
arg类型为
<class 'selenium.webdriver.chrome.options.Options'>
chrome版本为 60.0.3112.113 (正式版本) (32 位)
chromedriver 版本为 2.33
参考