Selenium WebDriver DeprecationWarning: 解决'use options instead of chrome_options'错误
可以将'chrome_options'改为'options',即:
options = Options()
options.debugger_address = '127.0.0.1:9222'
chrome_driver = 'C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe'
driver = webdriver.Chrome(chrome_driver, options=options)
print(driver.title)
原文地址: https://www.cveoy.top/t/topic/oAJB 著作权归作者所有。请勿转载和采集!