How to handle show notifications pop up on Chrome C# MSTest?

How to handle show notifications pop up on Chrome C# MSTest?

Hello Miro,

To handle show notifications pop up on Chrome C# MSTest, you can refer to the sample code snippet below:

Dictionary<string, object> profile = new Dictionary<string, object>();
// 0 - Default, 1 - Allow, 2 - Block
profile.Add("profile.default_content_setting_values.notifications", 2);
Dictionary<string, object> chromeOptions = new Dictionary<string, object>();
chromeOptions.Add(""prefs"", profile);