Navigation

Go To URL

.goto

Navigate the browser to a new page.

Basic Usage

Navigates the active tab to the specified URL and waits for the page to load.

TIP

Use waitUntil: "networkidle2" for modern SPAs.

WARNING

Default timeout is 30 seconds.

Examples

GPAL Fluent: High-level fluent C# API

Gpal.Goto("https://example.com");

MagicHelper: MagicHelper utility library

MagicHelper.Goto("https://example.com");

Puppeteer Client: Puppeteer-style C# client

await puppeteerClient.GotoAsync("https://example.com");

Puppeteer Communicator: Low-level communicator

await communicator.SendAsync("goto", new { url = "https://example.com" });

REST Client: Direct REST/HTTP client

await restClient.Post("/goto", new { url = "https://example.com" });