Window & Viewport

Window Outer Width

Returns the outer width of the browser window in pixels, including interface elements such as toolbars, tabs, and window borders using window.outerWidth.

Examples

GPAL Fluent: High-level fluent C# API

//There is no fluent call for this one value. GetWindowRectangle answers with the whole window in screen coordinates on every engine, and Width is this measurement. The single reads below are the engine layers underneath it.

browser.GetWindowRectangle(out Rectangle window);


int value = window.Width;

MagicHelper: MagicHelper utility library

browser.MagicHelper.WindowOuterWidth();

Puppeteer Client: Puppeteer-style C# client

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

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.WindowOuterWidth(string sessionId);

REST Client: Direct REST/HTTP client

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

💬 Ask GPAL