Trying to disable Flash in Firefox with Selenium in Python using profile settings. This question defines a way to do this using the graphical interface, but for this particular use case it would be useful to do this programmatically. In particular, the best possible solution would be to disable Flash in the newly created profile object.
Many thanks!
You can disable flash memory using the profile below.
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile def disableImages(self): ## Firefox profile object firefoxProfile = FirefoxProfile() ## Disable Flash firefoxProfile.set_preference('dom.ipc.plugins.enabled.libflashplayer.so', 'false') ## Set the modified profile while creating the browser object self.browserHandle = webdriver.Firefox(firefoxProfile)