Automation For API demo (Scroll Actions)
Refatored code