Window & Viewport

Window Page Offset Y

Returns the number of pixels the document is currently scrolled vertically from the top edge using window.scrollY.

Examples

MagicHelper: MagicHelper utility library

int scrolledY = browser.MagicHelper.WindowPageOffsetY();

Puppeteer Client: Puppeteer-style C# client

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

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.WindowPageOffsetY(string sessionId);

REST Client: Direct REST/HTTP client

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

💬 Ask GPAL