MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ToDictionary

Method ToDictionary

dotnet/src/webdriver/DriverOptions.cs:295–304  ·  view source on GitHub ↗

Returns the current options as a . The current options as a .

()

Source from the content-addressed store, hash-verified

293 /// </summary>
294 /// <returns>The current options as a <see cref="Dictionary{TKey, TValue}"/>.</returns>
295 internal IDictionary<string, object>? ToDictionary()
296 {
297 ICapabilities? capabilities = this.ToCapabilities();
298 if (capabilities is not IHasCapabilitiesDictionary desired)
299 {
300 return null;
301 }
302
303 return desired.CapabilitiesDictionary;
304 }
305
306 /// <summary>
307 /// Validates the name of the capability to verify it is not a capability

Callers

nothing calls this directly

Calls 1

ToCapabilitiesMethod · 0.95

Tested by

no test coverage detected