How to handle your location popup on Chrome with xUnit?

How to handle your location popup on Chrome with xUnit?

Hey Ian,

Kindly use sample code snippet below to handle location popup on Chrome with xUnit:

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