Navigation

Window Page Offset X

Get the horizontal scroll position.

Get the horizontal scroll position.

Returns the number of pixels the document is currently scrolled horizontally from the left edge using window.scrollX.

Examples

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.PageOffsetX();

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.WindowPageOffsetX().Execute<int>();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.WindowPageOffsetX(string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.WindowPageOffsetX).Execute();