Navigation

Get Current URL

Get active tab URL.

Get active tab URL.

Queries the browser for the currently active tab and returns its URL to the native application if available.

Examples

GPAL Fluent: High-level fluent C# API

//CurrentUrl is a property, not an action, and returns the URL string directly.

browser.CurrentUrl

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.GetCurrentUrl();

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.GetCurrentUrl().Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.GetCurrentUrl(string sessionId);

REST Client: Direct REST/HTTP client

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