Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
MIT License
Bot releases are visible (Hide)
AssertToBeGolden
for visual comparison by @canstand in https://github.com/playwright-community/playwright-go/pull/429
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4201.0...v0.4201.1
Published by canstand 8 months ago
New method page.AddLocatorHandler() registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay.
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4102.0...v0.4201.0
Published by canstand 8 months ago
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4101.1...v0.4102.0
Published by canstand 9 months ago
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4101.0...v0.4101.1
Published by canstand 9 months ago
Page.UnrouteAll()
removes all routes registered by Page.Route()
and Page.RouteFromHAR()
. Optionally allows to wait for ongoing routes to finish, or ignore any errors from them.BrowserContext.UnrouteAll()
removes all routes registered by BrowserContext.Route()
and BrowserContext.RouteFromHAR()
. Optionally allows to wait for ongoing routes to finish, or ignore any errors from them.Page.Screenshot()
and Locator.Screenshot()
to add custom CSS to the page before taking a screenshot.Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4001.0...v0.4101.0
Published by canstand 10 months ago
SetInputFiles
now supports both file paths and InputFile objects, files can be one of: string, []string, InputFile, []InputFileErrPlaywright
wraps all Playwright errorsErrTimeout
wraps all timeout errors and replaces TimeoutError
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3900.1...v0.4000.0
Published by canstand 12 months ago
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3900.0...v0.3900.1
Published by canstand 12 months ago
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3800.1...v0.3900.0
Published by canstand 12 months ago
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3800.0...v0.3800.1
Published by canstand about 1 year ago
PlaywrightDriver.Uninstall
for users who cannot use cli paramsFull Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3700.0...v0.3800.0
Published by canstand about 1 year ago
This version is on pair driver-wise with the Playwright 1.37 version.
Due to the rewrite of the go code generation scripts, it brings a lot of changes.
Note the following 4 types:
//nolint:staticcheck
to ignore.WebSocket.OnFrameReceived()
etc.
// before
websocket.On("framereceived", ...)
// after
websocket.OnFrameReceived(...)
Click
used PageClickOptions
, now
Locator.Click(options ...LocatorClickOptions)
Page.Click(selector string, options ...PageClickOptions)
Frame.Click(selector string, options ...FrameClickOptions)
Page.AddInitScript(script Script)
Page.ExpectedDialog
can use Page.OnDialog
instead.xxxAssertions.NotTo...
, use .Not().xxx
pls.WebSocket.On("framesent", ...)
, use WebSocket.OnFrameSent(...)
.Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3500.0...v0.3700.0
Published by mxschmitt over 1 year ago
This version is on pair driver-wise with the Playwright 1.35 version.
The release would not have been possible without @canstand, thanks a ton to him! 💯
Locators now return no error anymore.
// before
l, err := page.Locator("body")
assertNil(t, err)
d, err := l.Locator("div")
assertNil(t, err)
// ...
// after
_, err := page.Locator("body").Locator("div").And("p").TextContent()
assertNil(t, err)
Published by mxschmitt over 2 years ago
Thank you to both of you who invested time and effort into the project! 💯
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.2000.0...v0.2000.1
Published by mxschmitt over 2 years ago
This version is on pair drive-wise with the upcoming Playwright 1.20 version.
You need to either install the driver+browsers via CLI or via the API. It does not happen automatically anymore.
Via the CLI:
go run github.com/playwright-community/playwright-go/cmd/playwright install
# Or
go install github.com/playwright-community/playwright-go/cmd/playwright
playwright install --with-deps
Or via the API:
err := playwright.Install()
Published by mxschmitt about 3 years ago
This version is on pair with version 1.14 of Playwright.
(The previous release was no Godoc compliant and the proxy did not pick it up)
Published by mxschmitt about 3 years ago
This version is on pair with version 1.14 of Playwright.
Published by mxschmitt over 3 years ago
Published by mxschmitt over 3 years ago
Published by mxschmitt almost 4 years ago
Changelog:
Published by mxschmitt almost 4 years ago
Initial release with upstream Playwright 1.7.1.