Skip to content

gf.scrollTo

gf.scrollTo(x: number, y: number): Promise<void>

Section titled “gf.scrollTo(x: number, y: number): Promise<void>”

Scrolls the page to the specified coordinates.

  • x: The horizontal coordinate to scroll to.
  • y: The vertical coordinate to scroll to.
  • Returns a promise that resolves when the scroll action is complete.
describe('Test script', function () {
it('Test 1', async () => {
// Scroll to the coordinates (100, 200)
await gf.scrollTo(100, 200);
// Proceed with further actions or assertions
});
});