gf.scrollToTop
gf.scrollToTop(): Promise<void>
Section titled “gf.scrollToTop(): Promise<void>”Scrolls the page to the top.
- Returns a promise that resolves when the scroll action is complete.
describe('Test script', function () { it('Test 1', async () => { // Scroll to the top of the page await gf.scrollToTop(); // Proceed with further actions or assertions });});