Interaction

Scroll Window

Scroll the page by a specified amount.

Scroll the page by a specified amount.

Moves the windows scroll position horizontally and vertically by the provided pixel values using an instant (non-animated) scroll behavior.

Examples

GPAL Fluent: High-level fluent C# API

browser.ScrollWindowByHorizontal(scrollAmountInPixels); browser.ScrollWindowByVertical(scrollAmountInPixels);

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.ScrollElement(int hPixels, int vPixels); GPAL.MagicHelper.ScrollElement(int hPixels, int vPixels);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.ScrollWindow(int hPixels, int vPixels).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.ScrollWindow(int hPixels, int vPixels, string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.ScrollWindow).WithHPixels(int hPixels).WithVPixels(int vPixels).Execute();