Skip to content Skip to sidebar Skip to footer

Python, Selenium, Download All Mime Types

I am trying to download some files using selenium webdriver for Firefox. How to set option browser.helperApps.neverAsk for any MIME type? Now this option working only for applicati

Solution 1:

You have to list the mimetypes explicitly and separate the values with commas:

profile.set_preference('browser.helperApps.neverAsk.saveToDisk',
                       'application/pdf,text/csv')

Post a Comment for "Python, Selenium, Download All Mime Types"