How to disable 'Save your info' dialog in Edge Chromium

Katalon Studio Version:
KSE 8.2.5, Build 208
Windows 10 Enterprise (64-bit)
Edge Chromium Version 99.0.1150.30 (Official build) (64-bit)

How to disable ‘Save your info’ dialog in Edge Chromium.

Hello folks,
I am looking to turn off the ‘Save Your Info’ dialog in ‘Edge Chromium’ using Desired Capabilities:
I have added the following DCs to my Edge Chrome DC settings, ‘Private Mode’ works but the ‘Save your info’ dialog still displays. Can someone please point me to a possible solution.

{"EDGE_CHROMIUM_DRIVER":{"ms:edgeOptions":{"args":["-disable-notifications","-disable-extensions","-bwsi","-disable-popup-blocking","-suppress-message-center-popups"]},"ms:edgeChromium":true}}

Test Steps:

  1. Update Katalon’s Edge Chrome DC.
  2. Start Katalon and run a TC using Edge Chromium that does the following:
  3. Open EC and navigate to the AUT website.
  4. Log into the site.
  5. Process any page to the point where data would be input by the tester.

Result: The ‘Save your info’ dialog displays - it should NOT
Expected Result: DC should disable the ‘Save your info’ from displaying.

SaveYourInfo

Hi @Brandon_Hein, any suggestions?
Thanks Dave

I’m not super familiar with edge, but I know that if you run it in private mode, it disables most notifications like that:

capabilities.setCapability("InPrivate", true);

Thanks @Brandon_Hein, Unfortunately ‘InPrivate’ causes my test cases to fail.

Just to let you know, Dave, I gave fifteen minutes to searching the web for a list of prefs for Edge – then gave up. It’s out there somewhere, but I failed :x:

1 Like

Thanks for your time Russ :slight_smile:
I spent 1/2 day yesterday looking… No luck either.
Will try again later.

Best Dave

Hey Dave, apologies on the late response. Finally got some time to look a this a little closer.

According to these posts, this is not currently supported by default by Microsoft, whom actually manage EdgeDriver (i.e. the problem doesn’t lie in Selenium or Katalon, obviously):

However, I have something you may want to try. Using my post about discovering any desired capability you may want to manage, I discovered a setting in edge that may actually control this alert.

Try adding this to your desired capabilities list as a pref:

Name: credentials_enable_service
Type: Boolean
Value: false

If you haven’t read through my Desired Capabilities topic, I’ll give you a tl;dr on how I found this:
1.) Grab a snapshot of my current Edge Preferences file. This can usually be found at C:/Users/{username}/AppData/Local/Microsoft/Edge/User Data/Default/Preferences
2.) Open an Edge browser.
3.) Open Settings > Passwords.
4.) Toggle off the Offer to save passwords setting:


5.) Wait a few seconds, then grab a second snapshot of the Preferences file.
6.) Format both snapshots using a JSON formatter, then put both into a text comparator, and voila, this is the corresponding setting in JSON that gets updated once you toggle that off:

Now, I’m hoping that this setting is what controls the Save your information popup, but I’m not 100% on that. You may need to repeat this process given that there’s some other setting that controls it.

Give it a try and let us know.

1 Like

Hi Brandon, No need for apologies. Thank you for time, detailed response and tips. I will let you know how I make out.

Best regards,
Dave

I have tried everything I can think of (including using Brandon’s Preferences file trick (excellent BTW)), but no luck… I will have to circle back to this issue should I ever get any free-time (LOL).

Best Regards to @Brandon_Hein and @Russ_Thomas for your time and help!

2 Likes

Bummer. Sorry we couldn’t find a solution. I will leave this topic open for now, maybe someone else will stumble across it with some ideas. Good luck!

@Dave_Evers Did you try the guest mode?

1 Like

Hi @discover.selenium, Guest mode did the trick in Edge Chromium.
Is there a setting for just ‘Chrome’?
Thanks Dave!

@Dave_Evers … If it solved your ticket please mark it as solution.

For Chrome …

1 Like

Hi @discover.selenium I am facing a similar challenge where I am getting a pop up of saving login info when I login, I want to disable/bypass that pop up. I feel your suggestion of using the guest mode can help me. I am using the firefox and its a very much controlled environment. Can you please share how can I add the guest mode for firefox as a desired capability ?

I am on KS 8.5.5 and while trying your solution I noticed that I could not set the “type” as “List” in the desired capabilities in Project > Settings > Desired Capabilities > WebUI> Firefox .

Thanks,
Yogesh

@yogesh.harsh, See this posting: Start browsers in private mode in Katalon Studio | Katalon Docs

@Dave_Evers thanks for your response, I tried this but getting an array out of bound error when I set the type as “Dictionary”. Just added the error log for more details and if you can please suggest on the same.


KS error log.txt (6.4 KB)

Thanks,
Yogesh

Hi @yogesh.harsh, maybe give this a try: How to start firefox in private browsing mode?
This works for me, just tried it. Or save the attached firefox.properties file to the C:\Users\yourname\KatalonProjects\YourProject\settings\internal folder. [com.kms.katalon.core.webui.firefox.properties|attachment]

C:\Users
|  |--yourname
|    |--KatalonProjects
|	   |--YourProject
|	     |--settings
|	       |--internal

com.kms.katalon.core.webui.firefox.properties (62 Bytes)

Browser Desired Capabilities properties.file settings for enabling private mode:

  • Firefox: com.kms.katalon.core.webui.firefox.properties
    {“FIREFOX_DRIVER”:{“moz:firefoxOptions”:{“args”:[“private”]}}}
  • Chrome: com.kms.katalon.core.webui.chrome.properties
    {“CHROME_DRIVER”:{“args”:[“–incognito”]}}
  • Edge Chromium: com.kms.katalon.core.webui.edge chromium.properties
    {“EDGE_CHROMIUM_DRIVER”:{“ms:edgeOptions”:{“args”:[“-inprivate”]}}}

To use private mode from a Chrome browser, the following can be used:

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

Test case body
RunConfiguration.setWebDriverPreferencesProperty(‘args’, [‘–incognito’])
//Test steps…