Scroll down a webpage using JavaScript in Selenium
Preconditions (2)
Step 1: Open the browser and navigate to 'https://example.com/longpage'
Step 2: Use JavaScript to scroll down 500 pixels vertically
Step 3: Verify that the page has scrolled down by checking the scroll position
✅ Expected Result: The page scrolls down by 500 pixels and the scroll position confirms the scroll