Edge setting download preferences using VBA

480 views
Skip to first unread message

Marcel Schleicher

unread,
Oct 27, 2021, 4:30:47 AM10/27/21
to Selenium Users
Hi all,

I am using edge driver 95 and Selenium Basic 2.
How can change download preferences using VBA?
My last guess was 

bot.SetProfile "C:\Users\" & sUserName & "\AppData\Local\MicrosoftEdge\User\Default", False
bot.SetPreference "profile.download.prompt_for_download", True
bot.SetPreference "profile.download.default_directory", sPath
bot.SetPreference "profile.download.manager.showWhenStarting", False

bot.Start "edge"
bot.Get "edge://settings/downloads"

But the settings shows me always the same values.
What is wrong or do I need another installation?

Warm regards
Reply all
Reply to author
Forward
0 new messages