Disable image load in Chrome with Selenium in Python [duplicate] Disable image load in Chrome with Selenium in Python [duplicate] selenium selenium

Disable image load in Chrome with Selenium in Python [duplicate]


option = webdriver.ChromeOptions()chrome_prefs = {}option.experimental_options["prefs"] = chrome_prefschrome_prefs["profile.default_content_settings"] = {"images": 2}chrome_prefs["profile.managed_default_content_settings"] = {"images": 2}browser = webdriver.Chrome(chrome_options=option)