How to handle know your location pop-up on Chrome with NUnit?

How to handle know your location pop-up on Chrome with NUnit?

Hi Tim!

In order to handle know your location pop-up on Chrome with NUnit, you can use the below sample code snippet in your test scripts.

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