Tabs & Windows

Get Current Window

Retrieves the currently focused browser window and its active tab, then sends the window ID and active tab URL to a native application.

Examples

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.GetCurrentWindow();

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.GetCurrentWindow().Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.GetCurrentWindow(string sessionId);

REST Client: Direct REST/HTTP client

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

💬 Ask GPAL