Capture a Full Height Screenshot
An example request that uses Gaffa to dismiss a modal, scroll to the bottom of a page and then capture a full height screenshot.
API Request
{
"url": "https://demo.gaffa.dev/simulate/ecommerce?loadTime=3&showModal=true&modalDelay=0&itemCount=20",
"proxy_location": null,
"async": false,
"max_cache_age": 0,
"settings": {
"record_request": false,
"actions": [
{
"type": "wait",
"selector": "div[role=\"dialog\"]",
"timeout": 10000
},
{
"type": "click",
"selector": "[data-testid=\"accept-all-button\"]"
},
{
"type": "wait",
"selector": "[data-testid^=\"product-1\"]",
"timeout": 5000
},
{
"type": "scroll",
"percentage": 100
},
{
"type": "capture_screenshot",
"size": "fullscreen"
}
]
}
}Actions
WaitClickScrollCapture ScreenshotResponse

Last updated