📜  禁用图像 selenium python 代码示例

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

代码示例1
from selenium import webdriver

chrome_options = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2}
chrome_options.add_experimental_option("prefs", prefs)
driver = webdriver.Chrome(chrome_options=chrome_options)