Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
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
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
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4101.1...v0.4102.0
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4101.0...v0.4101.1
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
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
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3900.0...v0.3900.1
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3800.1...v0.3900.0
Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3800.0...v0.3800.1
PlaywrightDriver.Uninstall
for users who cannot use cli paramsFull Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3700.0...v0.3800.0