1

In a crawling project, the Shockwave Flash plugin keeps crashing. Is there a simple way to disable it to begin with?

Many thanks in advance!

3
  • Yes: uninstall it. Commented Jun 16, 2016 at 21:39
  • Thanks, but in Chrome you cannot uninstall it, you can only disable it. However, when using selenium in the new window it is enabled again. I am looking for a command to disable it. Commented Jun 16, 2016 at 23:15
  • 1
    does this help? stackoverflow.com/questions/16406719/…, it is not an exact match, it is about disable plugin using selenium and python. Commented Jun 17, 2016 at 4:42

1 Answer 1

1

This worked for me pretty well.

from selenium.webdriver.chrome.options import Options

options= webdriver.ChromeOptions()
profile = {"plugins.plugins_disabled": ["Shockwave Flash"]}
options.add_experimental_option("prefs", profile)

# Make sure to add chrome_options=options 
browser = webdriver.Chrome(executable_path=path,chrome_options = options)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.