Info: Set download file directory path
Asked Answered
D

1

0

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

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

Dube answered 13/6, 2021 at 14:8 Comment(2)
What does the documentation suggest?Cordwood
check out this https://mcmap.net/q/1753066/-puppeteer-chrome-allow-multiple-file-download for idea.Anni
L
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();
Lilia answered 2/7, 2021 at 6:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.