Navigation

Get (Headless)

Navigate to a URL in headless mode.

Navigate to a URL in headless mode.

Configures the browser for headless operation - no UI, downloads saved to disk instead of prompted, waits for the document to be ready, and navigates in the current tab rather than a new one - then navigates to the given URL. If no headless browser is open yet, one is launched.

TIP

Get is a GPAL-only convenience wrapper around GoTo with headless-friendly settings applied first. Use WithNewTab before Get to navigate on a new tab.

Examples

GPAL Fluent: High-level fluent C# API

//Sets BrowserSettings.UseHeadless = true, disables external PDF viewing and download prompts, waits for the document to be ready, then calls GoTo(url) on the current tab.

browser.Get(string url);