0

What is the right way to set the download directory path using webdrivermanager?
ref:

chromePrefs.put("download.default_directory", downloadFilepath);
Thanks.

Boni García
  • 4,618
  • 5
  • 28
  • 44

1 Answers1

1

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();
Boni García
  • 4,618
  • 5
  • 28
  • 44