Interaction

Scroll Window By Horizontal

Scroll the window horizontally by a pixel amount.

Scroll the window horizontally by a pixel amount.

Scrolls the browser window left or right by the given number of pixels using window.scrollBy.

Examples

GPAL Fluent: High-level fluent C# API

browser.ScrollWindowByHorizontal(100);

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.ScrollWindowByHorizontal(100);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.ScrollWindowByHorizontal(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(100, 0, sessionId);

REST Client: Direct REST/HTTP client

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