Interaction

Scroll Window

Moves the window scroll position by the given pixel values, with an instant rather than animated scroll. One route serves all three shapes of the call: ScrollWindow takes both axes, ScrollWindowByHorizontal takes hPixels and treats vPixels as optional, and ScrollWindowByVertical is the same the other way round. Positive values scroll right and down, negative left and up.

Examples

GPAL Fluent: High-level fluent C# API

browser.ScrollWindowByHorizontal(100);

browser.ScrollWindowByVertical(100);

MagicHelper: MagicHelper utility library

browser.MagicHelper.ScrollWindow(int hPixels, int vPixels);

browser.MagicHelper.ScrollWindowByHorizontal(100);

browser.MagicHelper.ScrollWindowByVertical(100);

Puppeteer Client: Puppeteer-style C# client

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

browser.PuppeteerClient.ScrollWindowByHorizontal(100).Execute();

Puppeteer Communicator: Low-level communicator

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

REST Client: Direct REST/HTTP client

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

browser.OttoMagicClient.ScrollWindowByHorizontal(100).Execute();

💬 Ask GPAL