API Reference

Captures the screenshot of the page

Options:

OptionRequiredDescriptionExample
fileNametrue(string) A name for the captured screenshot.error shot
fullPagefalse(boolean) If the screenshot is full page or not. Possible Values: true | false. Default value: false.true

Example 1: Captures a full page screenshot

{
  "action": "screenshot",
  "options": {
    "fileName": "error shot",
    "fullPage": true
  }
}