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

Method TryGetValue

dotnet/src/webdriver/BiDi/AdditionalData.cs:81–89  ·  view source on GitHub ↗
(string key, out JsonElement value)

Source from the content-addressed store, hash-verified

79 public JsonElement this[string key] => IsEmpty ? throw new KeyNotFoundException(key) : _data.GetProperty(key);
80
81 public bool TryGetValue(string key, out JsonElement value)
82 {
83 if (IsEmpty)
84 {
85 value = default;
86 return false;
87 }
88 return _data.TryGetProperty(key, out value);
89 }
90
91 public int Count => IsEmpty ? 0 : _data.EnumerateObject().Count();
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected