chrome_options
遇到chrome_options.add_experimental_option ("debuggerAddress", port_number)调起浏览器报错的情况
1、查看谷歌版本和chromedriver版本是否一致: 手动查找ChromeDriver路径。在终端中输入以下命令: which chromedriver 这将输出ChromeDriver的路径,例如: /usr/local/bin/chromedriver 可以在Chrome浏览器中输入以下网址 ......
linux selenium chrome_options.add_argument()
from pyvirtualdisplay import Display import undetected_chromedriver as uc from selenium.webdriver.common.keys import Keys from selenium.webdriver.comm ......