K6 browser scroll down page

The want to click the [SEND REPLY] to proceed in the next page but I have no idea how to scroll the page to locate the element. Thank you.

@carlo
I think, you should use the click function of the Locator API to click on the button. But if you really want to scroll the page down to the button, then you can use the focus() method of the Locator API, or you can also experiment with:

page.keyboard.press('PageDown');

or

// this scrolls down te page 100px
page.evaluate(() => { window.scrollBy(0, 100); });

3 Likes