Hey guys,
I have an Excel VBA script that uses Selenium Basic ChromeDriver to login and navigate a website.
I'm trying to make it so that Chrome's popup prompts in the right corner asking either to "Save password" or "Restore Pages" don't appear.
Save.jpg
Restore.jpg
My attempt is below, but it isn't working for either case.
Sub ChromeDriverTest()
Dim bot2 As Selenium.ChromeDriver
Set bot2 = New ChromeDriver
bot2.SetCapability "goog:chromeOptions", "{""excludeSwitches"": [""enable-automation""], ""args"":[""--start-maximized"",""--hide-scrollbars"", ""user-data-dir=C:\\ChromeTest"",""--disable-notifications"",""--no-sandbox"",""--no-first-run"",""--no-service-autorun"",""--password-store=basic""]}"
bot2.SetPreference "profile.default_content_setting_values.notifications", 2
bot2.SetPreference "credentials_enable_service", False
bot2.SetPreference "profile.password_manager_enabled", False
bot2.Timeouts.ImplicitWait = 2000
Unfortunately still always getting the "Save Password" prompt. And the "Restore pages?" prompt continues to happen after cases where ChromeDriver is stopped suddenly in the previous run.
Any help is appreciated!
Bookmarks