Hi All
I’m working on Selenium through Java 17.
Selenium version: 4.20.0
Chrome version: 125.0.6422.61
From Chrome 124, I got “change your password” popup, for some sites that I test.
The page is not interactable until I close this popup.(see picture below)
I use the follow preferences for the chrome driver
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("safebrowsing.enabled", true);
prefs.put("credentials_enable_service", false);
prefs.put("profile.password_manager_enabled", false);
The only thing that success to disable this popup is to set safebrowsing.enabled preference to false.
But than some downloads are blocked for me, due to it required safebrowsing.
The only thing that worked at Selenium 3 is to click Esc in the Keyboard class. But it’s not supported in Selenium4.
for example: (Keyboard keyBoard = ((HasInputDevices) driver).getKeyboard() )
Press Esc with Actions does not close the popup.
for Example: Actions(driver).keyDown(key).keyUp(key).perform();
(I tried also with Robots, and it didn’t success as well)
Is there a way to disable the “Warn you if a password was compromised in a data breach” by Selenium (see picture below)?
Is there a way to click Esc on the browser, that it will success like the Keyboard class, in Selenium 4?
Thanks in Advanced
Lior