How do I Scroll web page in LambdaTest using Selenium?

How do I scroll down on the web page while doing Selenium automation testing on LambdaTest?

Hey Richard,

I hope you are doing well, I will surely try to give answer to your query

You can use the below command to scroll down.

    JavascriptExecutor js = (JavascriptExecutor) driver;
    js.executeScript("window.scrollBy(0,400)", "");

I hope this answer will work for you, Feel free to reach out for further Query.