selenium-server-4.0.0-alpha-3 - Firefox browser's default download path changing is not working

47 views
Skip to first unread message

Dinesh kumar

unread,
Feb 13, 2020, 10:50:11 PM2/13/20
to Selenium Users
The code for Firefox is:-

FirefoxProfile profile =new FirefoxProfile();
profile.setPreference("browser.download.folderList",2);
profile.setPreference("browser.download.dir","/Users/dinesh/Documents/");
profile.setPreference("browser.download.manager.showWhenStarting",false);
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profile);
driver=new EventFiringWebDriver(new FirefoxDriver(profile));

I have gone through many Google answers but I found no solution for this issue.
Any help please?

##Environment Details:
Firefox  Browsers :Firefox 72.0.2 (64-bit)
OS: MacBook Pro
Programming Language: java
Gem : selenium-webdriver (version  selenium-server-4.0.0-alpha-3)

Screenshot 2020-02-13 at 3.51.10 PM.png
Reply all
Reply to author
Forward
0 new messages