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

Method EnsureValueIsNotNull

dotnet/src/webdriver/Response.cs:184–193  ·  view source on GitHub ↗

Throws if is . If is .

()

Source from the content-addressed store, hash-verified

182 /// </summary>
183 /// <exception cref="WebDriverException">If <see cref="Value"/> is <see langword="null"/>.</exception>
184 [MemberNotNull(nameof(Value))]
185 internal Response EnsureValueIsNotNull()
186 {
187 if (Value is null)
188 {
189 throw new WebDriverException("Response from remote end doesn't have $.Value property");
190 }
191
192 return this;
193 }
194
195 /// <summary>
196 /// Returns the object as a string.

Callers 11

WebElementClass · 0.80
GetCssValueMethod · 0.80
GetScreenshotMethod · 0.80
UploadFileMethod · 0.80
WebDriverClass · 0.80
GetScreenshotMethod · 0.80
PrintMethod · 0.80
StartSessionMethod · 0.80
GetCredentialsMethod · 0.80
GetFullPageScreenshotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected