📜  selenium 添加了 chrome 扩展 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:24.455000             🧑  作者: Mango

代码示例1
from selenium import webdriver 
from selenium.webdriver.chrome.options import Options 

options = webdriver.ChromeOptions()
options.add_extension('./exampleOfExtensionDownloadedToFolder.crx')
driver = webdriver.Chrome(chrome_options=options) 
driver.get('http://www.google.com')