Window & Viewport

Window Page Offset X

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

Examples

MagicHelper: MagicHelper utility library

int scrolledX = browser.MagicHelper.WindowPageOffsetX();

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

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

💬 Ask GPAL