Interaction

Scroll Window By Vertical

Scroll the window vertically by a pixel amount.

Scroll the window vertically by a pixel amount.

Scrolls the browser window up or down by the given number of pixels using window.scrollBy.

Examples

GPAL Fluent: High-level fluent C# API

browser.ScrollWindowByVertical(100);

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.ScrollWindowByVertical(100);

Puppeteer Client: Puppeteer-style C# client

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

Puppeteer Communicator: Low-level communicator

//PuppeteerCommunicator exposes a single combined horizontal/vertical scroll method; pass 0 for the unused axis.

await browser.PuppeteerCommunicator.ScrollWindowByPixelsAsync(0, 100, sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.ScrollWindowByVertical).WithValue("100").Execute();