Reputation: 1
What is the right way to set the download directory path using webdrivermanager?
ref:
chromePrefs.put("download.default_directory", downloadFilepath);
Thanks.
Upvotes: 0
Views: 904
Reputation: 4858
If you mean the folder in which WebDriverManager downloads drivers (e.g., chromedriver), it would be as follows:
WebDriverManager.chromedriver().cachePath("/path/to/my/folder").setup();
Upvotes: 1