Window & Viewport

Window Screen Left

Returns the number of pixels from the left edge of the screen to the left edge of the browser window using window.screenLeft.

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 X is this measurement. The single reads below are the engine layers underneath it.

browser.GetWindowRectangle(out Rectangle window);


int value = window.X;

MagicHelper: MagicHelper utility library

browser.MagicHelper.WindowScreenLeft();

Puppeteer Client: Puppeteer-style C# client

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

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.WindowScreenLeft(string sessionId);

REST Client: Direct REST/HTTP client

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

💬 Ask GPAL