In Chrome driver 2.28 two annoying things started to appear:
1. “Chrome is being controlled by automated test software” infobar - to fix it I have added
chrome.switches=--disable-infobars;
to serenity.properties file.
2. "Do you want to save your password.." popup. To hide this one I didn't find a solution yet.
I have tried:
1. chrome.switches=--disable-save-password-bubble; It just didn't help.
2. chrome.switches=--incognito; Probably this one would work, but for some reason because of this flag all my tests immediately failing.
On forums people recommend to do this:
ChromeOptions options = new ChromeOptions();
options.AddUserProfilePreference("credentials_enable_service", false);
options.AddUserProfilePreference("password_manager_enabled", false);
ChromeDriver driver = new ChromeDriver(options);
The problem is I cannot understand how to add it in Serenity.
Any ideas to solve this issue?