devtools
Playwright-go: Automate Browsers
Control Chromium, Firefox and WebKit with a single API, for founders and developers, with 3.4k+ GitHub stars
3,466 stars239 forksGoHealth Score 9/10Updated 7/17/2026100% free · open source
What it does
Playwright-go is a browser automation library that allows you to control Chromium, Firefox, and WebKit with a single API, enabling automated browsing and testing across multiple browsers.
Install / run
go get github.com/playwright-community/playwright-goWhen to use it
- •When you need to automate web browsing for data scraping or monitoring
- •When you want to write end-to-end tests for your web application across multiple browsers
- •When you need to generate screenshots or PDFs of web pages programmatically
Quick start
- 1Import the playwright package in your Go file: `import ("github.com/playwright-community/playwright-go")`
- 2Launch a browser instance using `browser, err := playwright.Run()`
- 3Create a new browser context using `context, err := browser.NewContext()`
- 4Navigate to a webpage using `page, err := context.NewPage()` and `page.Goto("https://example.com")`
- 5Close the browser instance using `browser.Close()`
Ready-to-paste prompt
page, err := context.NewPage(); page.Goto("https://example.com"); page.Click("text=Login"); page.Fill("input[name="username"]", "your_username"); page.Fill("input[name="password"]", "your_password"); page.Click("text=Submit")Heads up: Make sure you have the required browser binaries installed on your system, as playwright-go will not download them automatically; you can use the `playwright.BinaryDownloadURL` variable to specify the download URL
Saves to your device
Topics
automation
browser-automation
chromium
firefox
go
golang
hacktoberfest
headless
headless-chrome
playwright
selenium
webkit
How Playwright-go: Automate Browsers works
Codeflow
Free to inspect
Playwright-go: Automate Browsers is a medium Go project (~15k lines across 100 code files, plus 72 test files). Expect some technical setup — comfortable with a terminal, or ask a developer. Last commit this month, MIT license, has a test suite.
Size
Medium codebase
~15k lines · 100 code files · ~2 h to skim
Setup
Some technical setup
Comfortable with a terminal? 20–40 min. Otherwise ask a dev.
Runs on
Go
No API keys detected
Go 96%HTML 3%Shell 1%
Where to start reading
- 1README.mdStart here — what it does and how to install it
- 2CLAUDE.mdThe instructions the AI actually follows
- 3run.goWhere the program starts running
- 4go.modDependencies and the commands it exposes
- 5internal/safe/map.goInside internal/ — the main logic begins here
What's in each folder
READMEHas testsDocumentedCI checksExamples includedMIT licenseUpdated this month
Details
Creator
playwright-community
Language
Go
Category
devtools
Published
8/16/2020
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.
Related skills
More devtools tools founders pair with this one.
devtools★ 171,506
Scale web data with firecrawl
Get web data at scale with firecrawl, for founders. 132k+ GitHub stars.
devtools★ 107,682
browser-use: Automate Web Tasks
Founders use browser-use to automate online tasks with ease, ideal for startups needing AI-powered browser automation.
devtools★ 95,478
Puppeteer: Automate Browsers
Get browser automation with Puppeteer. For founders who need reliable testing and automation tools.
devtools★ 94,927
Playwright: Simplify Web Testing
Get easy cross-browser testing with Playwright, ideal for startup founders and developers, with 90k+ GitHub stars
devtools★ 78,834
Crawl4ai
Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper. Don't be shy, join here: https://discord.gg/jP8KfhDhyN
devtools★ 70,437
Streamline IT with Ansible
Deploy and maintain apps with ease using Ansible, a simple automation platform, ideal for founders and dev teams, with 69k+ GitHub stars.