Tabs & Windows

Go To Window

Brings a browser window to the foreground using either a window ID or a URL match within its tabs. After focusing the window, it sends the window ID and associated URL to the native application.

Examples

GPAL Fluent: High-level fluent C# API

browser.GoToWindow(string url)

MagicHelper: MagicHelper utility library

//Takes either a url or a window id, and hands back the WindowTuple it landed on.

browser.MagicHelper.GoToWindow(string urlOrId);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.GoToWindow(string url).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.GoToWindow(object tabIdOrUrl, string sessionId);

REST Client: Direct REST/HTTP client

browser.OttoMagicClient.WithEndpoint(ApiEndpoint.GoToWindow).WithUrl(string url).Execute();

browser.OttoMagicClient.WithEndpoint(ApiEndpoint.GoToWindow).WithWindowId(int windowId).Execute();

💬 Ask GPAL