mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.03k stars 1.51k forks source link

Disable file downloads? #2098

Closed clueless-robot closed 1 year ago

clueless-robot commented 1 year ago

System

Issue

Is there any way to completely disable file downloads? I want to get rid of any auto file downloads and any prompts to ensure smooth navigation / safety.

With Chromedriver I can set an option of "download_restrictions": 3 which blocks all downloads. But I cannot seem to find something similar for geckodriver, only on how to disable download popups (which doesn't block downloads).

whimboo commented 1 year ago

Hi, this is more a general question for Firefox. As such I would propose that you have a look at https://support.mozilla.org/ and may ask the question there if no help is available yet. Thanks.