Infinitely Scroll an Ecommerce Site
An example request that uses Gaffa to infinitely scroll down a simulated ecommerce site whilst recording the interaction.
API Request
{
"url": "https://demo.gaffa.dev/simulate/ecommerce?loadTime=3&showModal=true&modalDelay=0&itemCount=infinite",
"proxy_location": null,
"async": false,
"max_cache_age": 0,
"settings": {
"record_request": true,
"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,
"max_scroll_time": 20000
}
]
}
}Actions
WaitClickScrollResponse
Read More
Get StartedLast updated