Adding "GetDownloadFolder" to WebDriver class? #100
Replies: 2 comments 6 replies
-
Hi @GHRyunosuke, how do you download the file? |
Beta Was this translation helpful? Give feedback.
-
@GHRyunosuke I think that's an idea worth considering, but I can't find a straight-forward way of doing it. The Anyway, I think the factory setting default folder for MOST systems is "%USERPROFILE%\Downloads". But the user/admin can alter that and set it to a different location in user's Chrome/Edge profile, so it's not a given. The surest way to know what it is currently (in a programmatic sense) is to set it yourself. Do you use the SeleniumVBA.ini file? I use the pre-loaded capabilities feature in that to set the default download folder to my preference of ".\" so that I do not have to worry about setting it at runtime. That way I always know where the default location is and I can change that at runtime if needed using Cheers, Mike PS: you might be thinking that it would be feasible to save the argument value from |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While there is already "SetDownloadFolder", how about adding a corresponding "GetDownloadFolder" that returns the current configured DownloadFolder?
It could come in handy when using "WaitForDownload":
Beta Was this translation helpful? Give feedback.
All reactions