Playwright Go

Active
GitHub Go MIT

Description

Playwright Go is the Go binding for the Playwright browser automation library, giving Go-based agents multi-browser support.

Key Features

  • Multi-browser — Chromium, Firefox, WebKit
  • Auto-wait — intelligent waits for visibility and stability
  • Playwright API — same API as the Node/JS version
  • Observability — Trace Viewer and video replays
  • Parallel — built-in concurrency support
  • Cross-language — reuse TypeScript test cases

Use Cases

💡 Driving browsers from Go-based services and agents
💡 Migrating Node Playwright tests to Go
💡 Building e2e tests with video and trace replay
💡 Cross-browser compatibility testing with WebKit

Quick Start

# 多浏览器自动安装
go get github.com/playwright-community/playwright-go
pw, _ := playwright.Run()
browser, _ := pw.Chromium.Launch()
page, _ := browser.NewPage()
page.Goto("https://example.com")

Related Projects