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

Method GetElementFromResponse

dotnet/src/webdriver/WebDriver.cs:522–530  ·  view source on GitHub ↗

Find the element in the response Response from the browser Element from the page, or if the response does not contain a dictionary.

(Response response)

Source from the content-addressed store, hash-verified

520 /// <param name="response">Response from the browser</param>
521 /// <returns>Element from the page, or <see langword="null"/> if the response does not contain a dictionary.</returns>
522 internal IWebElement? GetElementFromResponse(Response response)
523 {
524 if (response.Value is Dictionary<string, object?> elementDictionary)
525 {
526 return this.elementFactory.CreateElement(elementDictionary);
527 }
528
529 return null;
530 }
531
532 /// <summary>
533 /// Finds the elements that are in the response

Callers 4

FindElementMethod · 0.95
ActiveElementMethod · 0.80
FindElementMethod · 0.80
FindElementMethod · 0.80

Calls 1

CreateElementMethod · 0.80

Tested by

no test coverage detected