Gets a object representing the image of this element on the screen. A object containing the image.
()
| 544 | /// </summary> |
| 545 | /// <returns>A <see cref="Screenshot"/> object containing the image.</returns> |
| 546 | public virtual Screenshot GetScreenshot() |
| 547 | { |
| 548 | Dictionary<string, object> parameters = new Dictionary<string, object>(); |
| 549 | parameters.Add("id", this.Id); |
| 550 | |
| 551 | // Get the screenshot as base64. |
| 552 | Response screenshotResponse = this.Execute(DriverCommand.ElementScreenshot, parameters); |
| 553 | |
| 554 | screenshotResponse.EnsureValueIsNotNull(); |
| 555 | string base64 = screenshotResponse.Value.ToString()!; |
| 556 | |
| 557 | // ... and convert it. |
| 558 | return new Screenshot(base64); |
| 559 | } |
| 560 | |
| 561 | /// <summary> |
| 562 | /// Simulates typing text into the element. |
nothing calls this directly
no test coverage detected