Converts a string error to a value. The error string to convert. The converted value. If is .
(string error)
| 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 | } |
no test coverage detected