Gausia fatima
Gausia fatima

Reputation: 41

how to disable '' Do you want to save password for this site' chrome popup in selenium webdriver

My chrome got upgraded to version 57 and now my scripts are not working because of save password popup. i tried from chrome setting but everytime i run my script the saved setting doesn't work in new opened browser. any solutions?

Upvotes: 2

Views: 738

Answers (1)

Marcos Lima
Marcos Lima

Reputation: 26

It worked for me:

ChromeOptions options = new ChromeOptions();
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("credentials_enable_service", false);
options.setExperimentalOption("prefs", prefs);

Upvotes: 1

Related Questions