Playwright for Go 是一个浏览器自动化库,可使用单个 API 控制 Chromium、Firefox 和 WebKit。
Go to file
2020-09-04 17:01:44 +02:00
.github/workflows ci: fix coveralls parallel build 2020-08-31 00:48:13 +02:00
examples feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
scripts feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
tests/assets feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
.gitignore example: parallel scraping (#27) 2020-09-03 18:51:13 +02:00
binding_call.go feat: added missing objects (#13) 2020-08-20 12:16:26 +02:00
browser_context_test.go feat: added basic download integration (#18) 2020-08-26 22:05:36 +02:00
browser_context.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
browser_test.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
browser_type_test.go feat: added basic download integration (#18) 2020-08-26 22:05:36 +02:00
browser_type.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
browser.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
channel_owner.go tests: network (#24) 2020-08-30 00:31:43 +02:00
channel.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
connection.go tests: network (#24) 2020-08-30 00:31:43 +02:00
console_message_test.go tests: network (#24) 2020-08-30 00:31:43 +02:00
console_message.go feat: add req/resp/route methods (#23) 2020-08-29 17:57:04 +02:00
CONTRIBUTING.md docs: added contributing information 2020-08-30 11:58:30 +02:00
dialog.go feat: added missing objects (#13) 2020-08-20 12:16:26 +02:00
download_test.go feat: add missing download funcs (#25) 2020-08-30 01:30:16 +02:00
download.go feat: add missing download funcs (#25) 2020-08-30 01:30:16 +02:00
element_handle.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
errors.go feat: error handling and restructured tests (#6) 2020-08-17 11:33:12 +02:00
event_emitter_test.go feat: add missing download funcs (#25) 2020-08-30 01:30:16 +02:00
event_emitter.go tests: network (#24) 2020-08-30 00:31:43 +02:00
expect_wrapper.go feat: expect wrappers (#19) 2020-08-28 11:46:56 +02:00
frame.go example: parallel scraping (#27) 2020-09-03 18:51:13 +02:00
go.mod feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
go.sum feat: expect wrappers (#19) 2020-08-28 11:46:56 +02:00
helper_test.go feat: add missing download funcs (#25) 2020-08-30 01:30:16 +02:00
helpers_test.go feat: added missing objects (#13) 2020-08-20 12:16:26 +02:00
helpers.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
js_handle.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
LICENSE Initial commit 2020-08-16 14:46:15 +02:00
network.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
objectFactory.go feat: added basic download integration (#18) 2020-08-26 22:05:36 +02:00
page_test.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
page.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
playwright_test.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
playwright.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
README.md feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
request.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
response.go tests: network (#24) 2020-08-30 00:31:43 +02:00
route_test.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
route.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
run.go feat: add context funcs (#28) 2020-09-04 17:01:44 +02:00
transport.go example: parallel scraping (#27) 2020-09-03 18:51:13 +02:00
type_helpers.go cleanup: prep for parameters (#4) 2020-08-17 00:26:26 +02:00
types.go feat(iteration 1): add missing page and frame funcs (#26) 2020-08-30 22:56:10 +02:00
worker.go example: parallel scraping (#27) 2020-09-03 18:51:13 +02:00

🎭 Playwright for

PkgGoDev License Build Status Join Slack Chromium version Firefox version WebKit version

API reference | Example recipes

Playwright is a Go library to automate Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.

Linux macOS Windows
Chromium 86.0.4217.0
WebKit 14.0
Firefox 79.0a1

Headless execution is supported for all the browsers on all platforms.

Installation

go get github.com/mxschmitt/playwright-go

Capabilities

Playwright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.

  • Scenarios that span multiple page, domains and iframes
  • Auto-wait for elements to be ready before executing actions (like click, fill)
  • Intercept network activity for stubbing and mocking network requests
  • Emulate mobile devices, geolocation, permissions
  • Support for web components via shadow-piercing selectors
  • Native input events for mouse and keyboard
  • Upload and download files

Is Playwright for Go ready?

We are ready for your feedback, but we are still covering Playwright Go with the tests, so expect a bumpy ride and don't use for production.

Resources