We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Response.Value
1 parent 2357514 commit 9a76e89Copy full SHA for 9a76e89
dotnet/src/webdriver/Response.cs
@@ -215,6 +215,16 @@ public string ToJson()
215
return JsonSerializer.Serialize(this);
216
}
217
218
+ /// <summary>
219
+ /// Gets the <see cref="Value"/> of this response, or throws if it is <see langword="null"/>.
220
+ /// </summary>
221
+ /// <returns>The <see cref="Value"/> instance.</returns>
222
+ /// <exception cref="WebDriverException">If <see cref="Value"/> is <see langword="null"/>.</exception>
223
+ internal object GetNotNullValue()
224
+ {
225
+ return Value ?? throw new WebDriverException("Expected not-null response");
226
+ }
227
+
228
/// <summary>
229
/// Returns the object as a string.
230
/// </summary>
0 commit comments