Navigation

Window Inner Width

Get the viewport width of the window.

Get the viewport width of the window.

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();