Sindhu prasad
Sindhu prasad

Reputation: 1

Info: Set download file directory path

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

Answers (1)

Boni García
Boni García

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

Related Questions