How to handle your location popup on Chrome with MSTest?

How to handle your location popup on Chrome with MSTest?

Hey Ian,

Kindly use sample code snippet below to handle your location popup on chrome with MSTest:

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);