What is the right way to set the download directory path using webdrivermanager?
ref:
chromePrefs.put("download.default_directory", downloadFilepath);
Thanks.
What is the right way to set the download directory path using webdrivermanager?
ref:
chromePrefs.put("download.default_directory", downloadFilepath);
Thanks.
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();
© 2022 - 2024 — McMap. All rights reserved.