I essentially need to translate this (#1) Python solution or this (#2) Python solution into VBA, (Python code also shown below). It's the same as asking how one might start a VBA Selenium driver with 'safebrowsing' enabled.
Python Solution #1
prefs = {
'safebrowsing' => {
'enabled' => true,
}
}
b = Watir::Browser.new :chrome, :prefs => prefs, :switches => %w[--safebrowsing-disable-download-protection]))
Python Solution #2:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_experimental_option("prefs", {
"download.default_directory": r"C:\Users\downloads",
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"safebrowsing.enabled": False
})
driver = webdriver.Chrome(chrome_options=chrome_options)
Any ideas how VBA's version of this might appear? Thanks for taking the time to read, much appreciated.