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

Method ResultFromError

dotnet/src/webdriver/WebDriverError.cs:206–214  ·  view source on GitHub ↗

Converts a string error to a value. The error string to convert. The converted value. If is .

(string error)

Source from the content-addressed store, hash-verified

204 /// <returns>The converted <see cref="WebDriverResult"/> value.</returns>
205 /// <exception cref="ArgumentNullException">If <paramref name="error"/> is <see langword="null"/>.</exception>
206 public static WebDriverResult ResultFromError(string error)
207 {
208 if (!resultMap.TryGetValue(error, out WebDriverResult result))
209 {
210 return WebDriverResult.UnsupportedOperation;
211 }
212
213 return result;
214 }
215}

Callers 1

FromErrorJsonMethod · 0.80

Calls 1

TryGetValueMethod · 0.45

Tested by

no test coverage detected