gf.mouseWheel
gf.mouseWheel(x: number, y: number, deltaX: number, deltaY: number): Promise<void>
Section titled “gf.mouseWheel(x: number, y: number, deltaX: number, deltaY: number): Promise<void>”Simulates a mouse wheel event at the specified coordinates with the given deltas.
x
: The X coordinate where the mouse wheel will be scrolled.y
: The Y coordinate where the mouse wheel will be scrolled.deltaX
: The horizontal scroll amount. Positive values scroll right, negative values scroll left.deltaY
: The vertical scroll amount. Positive values scroll down, negative values scroll up.- Returns a promise that resolves when the mouse wheel is complete.
describe('Test script', function () { it('Test 1', async () => { await gf.mouseWheel(100, 100, 50, 50); });});