Window & Viewport

Window Inner Width

Returns the width of the browsers visible content area (viewport) in pixels using window.innerWidth.

Examples

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.WindowInnerWidth();

Puppeteer Client: Puppeteer-style C# client

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

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.WindowInnerWidth(string sessionId);

REST Client: Direct REST/HTTP client

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

💬 Ask GPAL