Even thought we give Project Settings as per the message the Google password manager pops up
To prevent Google Password Manager from popping up during Katalon Studio test executions, follow these structured steps:
1. Configure ChromeOptions in Katalon Studio
- Add Chrome Arguments: Include these flags in your desired capabilities to disable password-related prompts:
groovy
'--password-store=basic', '--disable-save-password-bubble'
- In Katalon:
- Navigate to Project Settings > Execution > Default WebUI.
- Under Web Driver > Chrome, add the arguments in the Arguments field as comma-separated values.
2. Use a Dedicated Chrome Profile
- Create a New Profile:
- Open Chrome manually, go to
chrome://settings/manageProfileand create a new profile (e.g., “KatalonProfile”).
2 Disable Offer to save passwords inchrome://settings/passwords.
- Open Chrome manually, go to
- Launch Katalon with the Profile:
- Add the user directory argument to ChromeOptions:
groovy
'--user-data-dir=C:/Path/To/KatalonProfile'
- Replace the path with the actual directory of your new Chrome profile.
3. Disable Password Manager in Chrome Settings
- Manually open Chrome and navigate to
chrome://settings/passwords. - Toggle off Offer to save passwords and Auto Sign-in.
4. Utilize Guest/Incognito Mode
- Add these arguments to ChromeOptions:
groovy
'--incognito', '--guest'
5. Check for Chrome Enterprise Policies
- If in a managed environment, ensure no policies enforce password saving. Check
chrome://policyfor active policies.
6. Update Software
- Ensure both Chrome and Katalon Studio are updated to the latest versions to avoid compatibility issues.
7. Automate Popup Dismissal (Fallback)
- If popups persist, use Katalon’s
WebUImethods to handle them:
groovy
WebUI.click(findTestObject('ObjectRepository/PasswordManagerDismissButton'))
- Locate the dismiss button using Katalon’s Spy Web utility and create a test object.
Sample Code Snippet
groovy
ChromeOptions chromeOptions = new ChromeOptions()
chromeOptions.addArguments('--disable-save-password-bubble', '--password-store=basic', '--incognito', '--user-data-dir=C:/ChromeTestProfile')
WebUI.openBrowser('', chromedriverPath, chromeOptions)
Verification
- Manually launch Chrome with the same arguments to confirm the popup is suppressed. If successful, the issue likely lies in Katalon’s configuration not applying settings correctly
This settings work fine when only to stop password related popups. When any other settings added Ex: excludeSwitches, List, enable-automation then again password popup appears. Is there any way to solve this Issue? Since i want to disable “Chrome is managed managed by…” notification
To resolve the conflict where adding excludeSwitches or other settings re-triggers password popups while addressing the “Chrome is managed by…” notification, use the following optimized ChromeOptions configuration in Katalon Studio:
Solution: Combine All Necessary ChromeOptions
Configure your Desired Capabilities in Katalon Studio as follows:
1. Disable Automation Infobar & Password Popups
Map<String, Object> chromePrefs = new HashMap<>();
chromePrefs.put("credentials_enable_service", false);
chromePrefs.put("profile.password_manager_enabled", false);
List<String> excludeSwitches = new ArrayList<>();
excludeSwitches.add("enable-automation"); // Hides "controlled by automation" infobar
excludeSwitches.add("load-extension"); // Optional: Disables extensions interfering
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("prefs", chromePrefs);
options.setExperimentalOption("excludeSwitches", excludeSwitches);
options.addArguments(
"--disable-infobars",
"--disable-notifications",
"--disable-features=ChromeManagement,EnterprisePolicy", // Suppress "managed" notifications
"--disable-component-update" // Prevents Chrome from checking for policies
);
// Add to Katalon's Desired Capabilities
WebUI.openBrowser('', [], options);
Why This Works
excludeSwitches:enable-automationhides the test automation infobar without breaking other settings.- Prefs: Disables password manager prompts.
- Arguments:
--disable-features=ChromeManagement,EnterprisePolicysuppresses enterprise policy messages (e.g., “managed by”).--disable-component-updatestops Chrome from checking for updates/policies.
Key Notes
- ChromeDriver Compatibility:
Ensure your ChromeDriver version matches your Chrome browser (check ChromeDriver downloads). - Katalon Configuration:
In Profiles > Desired Capabilities, use the code snippet above in a Custom Script or translate it to key-value pairs:
- Prefs:
{"credentials_enable_service": false, "profile.password_manager_enabled": false} - Exclude Switches:
["enable-automation", "load-extension"] - Arguments: Add each
--disable-*argument separately.
Instead of adding everything in the code, can’t this be achieved in Katalon project settings?
Since the conflict is with “Stopping info bar” and “Password Manager”. Not able to stop both from settings.
