C
C
cllbck2019-06-20 19:44:03
Google Chrome
cllbck, 2019-06-20 19:44:03

Selenium chromedriver how to disable automatic video download?

Good afternoon.
Who knows how to disable automatic video loading in selenium, similar to image:

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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy _, 2019-06-25
@GeneD88

As an option - using js to find all video elements and stop them .pause()
Second option - try adding "--autoplay-policy=no-user-gesture-required" to the arguments

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question