Playwright icon

Playwright

Automate browser tasks with Playwright and optional CDP connection

Browser → Navigate

AI-generated

Summary

Navigate a browser page to a specified URL using Playwright, optionally launching a new browser or connecting via Chrome DevTools Protocol (CDP).

Inputs

  • Connection Mode (required) — Choose how to connect to the browser: launch a new browser or connect over CDP.
  • Browser Type — Select browser type (Chromium, Firefox, WebKit) when launching a new browser.
  • Headless — Run the browser without a visible window (only for launch mode).
  • CDP Endpoint — Specify the Chrome DevTools Protocol endpoint URL when connecting via CDP.
  • Timeout (MS) — Maximum time to wait for browser actions like navigation.
  • Session ID — Identifier to reuse the same browser session and page between nodes.
  • Use Existing Tab — For CDP connection mode, choose to reuse an existing tab instead of creating a new one.
  • Tab Index — Index of the tab to reuse when using an existing tab in CDP mode.
  • Block Resource Types — Select resource types to block during navigation to reduce bandwidth (applied only on new page creation).
  • Block URL Patterns — Comma-separated glob patterns of URLs to block during navigation (applied only on new page creation).
  • URL (required) — The web page URL to navigate to.
  • Wait Until — Strategy to determine navigation completion: load event, DOMContentLoaded, or network idle.
  • After Execution — Action after navigation: close browser, close only the page/tab, or keep browser/page open for reuse.
  • Additional Data — Optional JSON data included in the node output.

Output shape

a single JSON object per input item

The output includes navigation success status, the final URL, page title, connection mode, session details, timestamp, and any additional user-provided data. The browser and page remain open, closed, or partially closed depending on the selected After Execution option.

Examples

Example 1: Navigate to a URL by launching a new Chromium browser in headless mode and wait for full page load

Connection Mode: Launch Browser; Browser Type: Chromium; Headless: true; URL: 'https://example.com'; Wait Until: 'load'; After Execution: Close Browser

Example 2: Navigate to a URL using an existing CDP session reusing tab index 1 without closing the browser afterwards

Connection Mode: Connect Over CDP; CDP Endpoint: 'http://127.0.0.1:9222'; Use Existing Tab: true; Tab Index: 1; URL: 'https://example.com'; Wait Until: 'domcontentloaded'; After Execution: Keep Open

Links

Discussion