Prevent fetching images instead of just blocking the loading? #2710
Answered
by
mdmintz
victorbmlabs
asked this question in
Q&A
-
I'm running a SeleniumBase program through a proxy. On my initial test I used about 4.7mb of bandwith (on a page with many images). After setting the Is |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Apr 23, 2024
Replies: 1 comment
-
This is essentially what 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) Source: https://stackoverflow.com/a/31581387/7058266 It blocks the images from being displayed in the DOM. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is essentially what
block_images
does:Source: https://stackoverflow.com/a/31581387/7058266
It blocks the images from being displayed in the DOM.
It doesn't change bandwidth.