Selenium chrome配置不加载图片Python版

python

环境: windows 7 + Python 3.5.2 + Selenium 3.4.2 + Chrome Driver 2.29 + Chrome 58.0.3029.110 (64-bit)

 

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)

 

以上是 Selenium chrome配置不加载图片Python版 的全部内容, 来源链接: utcz.com/z/388867.html

回到顶部