How to disable password_leak_detection_enabled?

Hi,

In Chrome or Chrome Headless, in one of the test we’ve got the chrome pop-up «update your password» regarding the «get an alert if a password has been compromised»

I’ve tried everything Internet as to tell me about it, I can’t find a way to configure the desired capabilities in order to disable it.

Suggesions ?


2 Likes

Hi there, and thanks for posting in the Katalon community! :hugs:

To help you faster, please review our guide on Chrome Headless here:

Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon.

Thanks for being a part of our community!
Best,
Elly Tran

After many trials and errors, the answer is - please give me a drumroll-

--disable-features=SafeBrowsing,PasswordLeakToggleMove

I had to guess the feature name PasswordLeakToggleMove from chrome://flags/
(Chrome Version 135.0.7049.42)

2 Likes

:drum: for you

1 Like

This just became a problem for me this week. I HAVE this disabled in my regular chrome browser settings. It is only a problem when Katalon is controlling the browser. I don’t want to run headless, as part of my testing is to test the GUI. Why can’t Katalon just replicate the settings for Chrome on my PC in the chromedriver that it uses?

2 Likes

In Katalon, you can use args for non-headless Chrome


image
image
--disable-features=SafeBrowsing,PasswordLeakToggleMove

1 Like

Understood, but that has not solved the issue for me. The Password Leak Detection dialog still appears and interrupts the running of the rest of the script.

1 Like

It’s unfortunate. I’m on Katalon 10.1.1, Windows 10, Chrome Version 135.0.7049.84 (Build officiel) (64 bits). Here’s the args I’m using :

Just to be sure I’ve removed them, and the pop-up is back, so it works for me now.

1 Like

I think this might help you! Pasting the code in the tab Script and Run!

import com.kms.katalon.core.configuration.RunConfiguration as RunConfiguration

RunConfiguration.setWebDriverPreferencesProperty('args', ['--disable-features=SafeBrowsing,PasswordLeakToggleMove'])

I am using the free Version 9.7.5 and have the same issue. Nonetheless, I find the solution by combining other guide and with the above answer of Mr. Frederic_Canovas1. Thank you!

3 Likes

Try this

ChromeOptions options = new ChromeOptions()

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

options.addArguments("--disable-features=AutofillServerCommunication")
options.addArguments("--disable-features=PasswordManagerOnboarding")
options.addArguments("--disable-popup-blocking")

DesiredCapabilities capabilities = new DesiredCapabilities()
capabilities.setCapability(ChromeOptions.CAPABILITY, options)

WebDriver driver = new ChromeDriver(options)
DriverFactory.changeWebDriver(driver)
1 Like

Please use this. It’s working fine.

goog:chromeOptions (Dictionary)
├── prefs (Dictionary)
│ ├── credentials_enable_service : false (Boolean)
│ ├── profile.password_manager_enabled : false (Boolean)
│ └── password_leak_detection_enabled : false (Boolean)
└── args (List)
└── --disable-features=SafeBrowsing,PasswordLeakToggleMove

Thank you

This had been working for me until this morning. This morning in KSE 10.2.2 with Chrome 138.0.7204.50 (Official Build) (64-bit) it stopped working and the pop-up came back.

As of today (11/03/2025) I am still having this issue occur with the following.

Preconditions:

Upon executing the Test, after the Step 7, I’m presented Googles ‘Change your password’ Alert UI.

I have tried each of the suggestions outlined on this forum article but nothing seems to be working yet. See below:

1st suggestion: Update Katalon Project Settings > Desired Capabilities > Web UI > Chrome:

–disable-features=SafeBrowsing,PasswordLeakToggleMove

  • Update Katalon Project Settings > Desired Capabilities > Web UI > Chrome

2nd suggestion: Passing in an Argument as a List with multiple arguments inside:

  • Update Katalon Project Settings > Desired Capabilities > Web UI > Chrome

3rd suggestion: Paste the code in the tab Script and Run!

import com.kms.katalon.core.configuration.RunConfiguration as RunConfiguration

RunConfiguration.setWebDriverPreferencesProperty(‘args’, [‘–disable-features=SafeBrowsing,PasswordLeakToggleMove’])

4th suggestion: Try this:

ChromeOptions options = new ChromeOptions()

Map<String, Object> prefs = new HashMap<>()
prefs.put(“credentials_enable_service”, false)
prefs.put(“profile.password_manager_enabled”, false)
options.setExperimentalOption(“prefs”, prefs)

options.addArguments(“–disable-features=AutofillServerCommunication”)
options.addArguments(“–disable-features=PasswordManagerOnboarding”)
options.addArguments(“–disable-popup-blocking”)

DesiredCapabilities capabilities = new DesiredCapabilities()
capabilities.setCapability(ChromeOptions.CAPABILITY, options)

WebDriver driver = new ChromeDriver(options)
DriverFactory.changeWebDriver(driver)

5th suggestion: Please use this. It’s working fine.

goog:chromeOptions (Dictionary)
├── prefs (Dictionary)
│ ├── credentials_enable_service : false (Boolean)
│ ├── profile.password_manager_enabled : false (Boolean)
│ └── password_leak_detection_enabled : false (Boolean)
└── args (List)
└── --disable-features=SafeBrowsing,PasswordLeakToggleMove

Can anyone assist?

Thank you in advance!

1 Like

https://europe1.discourse-cdn.com/katalon/uploads/default/uploads/default/original/3X/b/4/b43b597130fe5a2a0b477544eed0cf91c538b3e4.jpeg

See

Hello @kazurayam ,

I’ve reviewed the other article you referenced (Sample project “Healthcare-test” failed due to Chrome’s popup “Change your password” - Product Forums / Katalon Studio - Katalon Community) and updated my local Katalon to match your configuration, but the Test is still failing upon execution because of the Google change your password Alert.

Can you confirm, did this work for you? Because in the other article, @denstoo indicates it is still not working for them either.

Here are my changes:

  • My Katalon Google Chrome non-headless properties file (com.kms.katalon.core.webui.chrome.properties) looks like this:

{“CHROME_DRIVER”:{“prefs”:{“property”:“profile.password_manager_enabled=false”},“excludeSwitches”:[“enable-automation”]}}

Also @kazurayam , via either the Katalon UI or via the properties file, how did you apply your settings to remove the prefacing “property”: from the value you have displayed? Maybe that is the part of my issue, I’m just not sure how to resolve that because every time I edit the (Katalon Project Settings > Desired Capabilities > Web UI > Chrome) settings, that value gets included, however manual edits via the ‘com.kms.katalon.core.webui.chrome.properties’ file are not then recognized in the UI after reload.

Please advise, any assistance is greatly appreciated!

Respectfully,
Chris

1 Like

Hello @everyone,

I can now report that this behavior is resolved with the following configuration (see below)!

Passing Test Case:

Via Katalon Studio UI, select Project > Settings > Desired Capabilities > Web UI > Chrome. The Args, ExcludeSwitches and Prefs I’ve utilized, can be applied in 1 of 3 ways.

Option 1: Import via Desired Capabilities > Web UI > Chrome UI

  1. Select Import
  2. Download this file chrome_caps.json (772 Bytes) to whichever directory you wish
  3. Choose Browse… and select the chrome_caps.json file from wherever it is located

Option 2: Locally update the ‘com.kms.katalon.core.webui.chrome.properties’ file

  1. Navigate to the following directory: C:\Users\Katalon Studio\settings\internal\com.kms.katalon.core.webui.chrome.properties
  2. Download this file com.kms.katalon.core.webui.chrome.properties (714 Bytes) to whichever directory you wish
  3. Replace the downloaded file with the local version

com.kms.katalon.core.webui.chrome.properties contents:

{“CHROME_DRIVER”:{“args”:[“–disable-component-update”,“–disable-dev-shm-usage”,“–disable-features=ChromeManagement,EnterprisePolicy”,“–disable-features=SafeBrowsing,PasswordLeakToggleMove”,“–disable-infobars”,“–disable-notifications”,“–disable-popup-blocking”,“–disable-save-password-bubble”,“–disable-single-click-autofill”,“–force-device-scale-factor=1”,“–guest”,“–incognito”,“–lang=en-US”,“–override-language-detection”,“–password-store\u003dbasic”,“–start-maximized”],“excludeSwitches”:[“enable-automation”,“load-extension”],“prefs”:{“credentials_enable_service”:false,“profile.password_manager_enabled”:false,“profile.password_manager_leak_detection”:false,“autofill.profile_enabled”:false}}}

Option 3: Update manually via Desired Capabilities > Web UI > Chrome UI

Select Add for each of the following:

I hope this helps future Users!

Respectfully,
Chris

Yes, I could confirm that my way works good enough.

I used Katalon Studio GUI, Project > Settings > Desired Capatility > Web UI > Chrome

I used

  • macOS 15.6.1
  • Katalon Studio v10.3.2
  • Chrome 142.0.7444.60
  • chromedriver 142.0.7444.59

My healthcare-tests/settings/internal/com.kms.katalon.core.webui.chrome.properties file looks like this:

{"CHROME_DRIVER":{"prefs":{"profile.password_manager_leak_detection":false}}}

My com.kms.katalon.core.webui.chrome (headless).properties file look like this:

{"HEADLESS_DRIVER":{"prefs":{"profile.password_manager_leak_detection":false}}}
1 Like

You created something different from mine. That’s the reason why it did not work.

1 Like

I don’t see "property": in Katalon Studio on my machine at all.


On my machine, I tried to reproduce what @chris.kent did.

See the following settings.

The prefs is my original coding, which works fine for me. The prefs is defined as this:

I added the bogus_prefs. I intended it to be a mimic of @chris.kent’s case. The bogus_prefs is defined as this:

Please compare the prefs and the bogus_prefs in the way how an entry is defined. They are defined differently.

If @chris.kent actually did something like the bogus_prefs, I feel empathy for him. Katalon Studio’s GUI for the settings is poorly designed. It is very difficult to use without mistakes. I would agree that it is easier (less error-prone, at least) to configure the setting by Groovy code with import org.openqa.selenium.chrome.ChromeOptions, rather than using the GUI.

2 Likes

It always surprises me to find that Katalon Studio presents a Dictionary type using an equal = sign, as you can see.

Poor Katalon Studio! You display an entry of Dictionary type (java.utl.Map in fact) in the format where an equal = sign makes a key: value pair. But you don’t understand a given string profile.password_manager_enabled=false which @chris.kent manually typed.

Hey, Katalon Studio! Do you like an equal = sign? or do you dislike it? The GUI is inconsistent here. This inconsistency confuses users, as @chris.kent was.

However, we understand that this is the way Katalon Studio was originally designed and implemented, and it’s too late to change KS now, so users will have to get used to it.

2 Likes