Screenshot Commands

Microsoft Edge supports the following WebDriver commands for taking screenshots:

HTTP RequestCommands
/session/{sessionId}/element/{id}/screenshotTake Element Screenshot
/session/{sessionId}/screenshotTake Screenshot

Take Element Screenshot

NameTake Element Screenshot
DescriptionTakes a screenshot of the currently selected element.
SpecW3C WebDriver
HTTP RequestGET /session/{sessionId}/element/{elementId}/screenshot

JSON Parameters
None

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": "{image}"
}

Take Screenshot

NameTake Screenshot
DescriptionTakes a screenshot of the current viewport.
SpecW3C WebDriver, JSON Wire Protocol
HTTP RequestGET /session/{sessionId}/screenshot

JSON Parameters
None.

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": "{base64EncodedString}"
}