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)
| 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 |
no test coverage detected