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.

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:



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