geckodriver 0.24.0 introduces the capability strictFileInteractability see below, but I haven't found a possibility to set this capability.
Code trials:
FirefoxProfile profile=new FirefoxProfile();
// Has no effect
profile.setPreference("strictFileInteractability", true);
...
FirefoxOptions options = new FirefoxOptions();
// Has no effect
options.setCapability("strictFileInteractability", true);
...
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
// Has no effect
capabilities.setCapability("strictFileInteractability", true);
Did someone manage to successfully set this capability?
Changelog: github.com/mozilla/geckodriver/releases w3c.github.io/webdriver/