[問題] Selenium開啟Chrome - headless
code:
chromeOptions = Options()
chromeOptions.add_argument('--headless') #規避google bug
chromeOptions.add_argument('--disable-gpu')
browser = webdriver.Chrome(options=chromeOptions)
or
browser = webdriver.Chrome(chrome_options=chromeOptions)
卻丟出
Message: session not created: No matching capabilities found
環境windows, python3.5, chrome and chromedriver 版本一樣
若把webdriver.Chrome內的參數拿掉,就正常...
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.173.6.95 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1609339521.A.559.html
推
12/31 09:27,
4年前
, 1F
12/31 09:27, 1F
推
12/31 13:07,
4年前
, 2F
12/31 13:07, 2F
→
12/31 13:07,
4年前
, 3F
12/31 13:07, 3F
Python 近期熱門文章
PTT數位生活區 即時熱門文章