Skip to content

Releases: playwright-community/playwright-go

v0.4101.0

24 Jan 13:30
0d5814a

Choose a tag to compare

What's Changed

  • Refactor using the new stdlib and generics, and add several tests by @canstand in #404
  • Roll to Playwright v1.41.1 by @canstand in #407
    • New method 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.
    • New method 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.
    • New option style in Page.Screenshot() and Locator.Screenshot() to add custom CSS to the page before taking a screenshot.
  • chore: use golangci-lint and gofumpt by @canstand in #408

Full Changelog: v0.4001.0...v0.4101.0

v0.4001.0

19 Dec 03:00
968ab19

Choose a tag to compare

What's Changed

  • chore: roll to Playwright v1.40.1 by @canstand in #394
    • SetInputFiles now supports both file paths and InputFile objects, files can be one of: string, []string, InputFile, []InputFile
  • refactor(transport): handle transport error, no more log.Fatal by @canstand in #395

BREAKING CHANGE

  • ErrPlaywright wraps all Playwright errors
  • ErrTimeout wraps all timeout errors and replaces TimeoutError

Full Changelog: v0.3900.1...v0.4000.0

v0.3900.1

04 Nov 01:33
ddc7abd

Choose a tag to compare

What's Changed

Full Changelog: v0.3900.0...v0.3900.1

v0.3900.0

31 Oct 03:33
43f81b3

Choose a tag to compare

What's Changed

Full Changelog: v0.3800.1...v0.3900.0

v0.3800.1

26 Oct 10:19
4e8d389

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3800.0...v0.3800.1

v0.3800.0

12 Oct 04:22
c3d215b

Choose a tag to compare

What's Changed

  • Roll to Playwright v1.38.1 by @canstand in #373
  • Add PlaywrightDriver.Uninstall for users who cannot use cli params

Full Changelog: v0.3700.0...v0.3800.0

v0.3700.0

30 Aug 02:43
8575a75

Choose a tag to compare

This version is on pair driver-wise with the Playwright 1.37 version.

BREAKING CHANGE:

Due to the rewrite of the go code generation scripts, it brings a lot of changes.
Note the following 4 types:

  1. Links and Deprecated tags in Go doc comments now work.
    • May cause many Deprecated lint errors, please update the call or use //nolint:staticcheck to ignore.
  2. Added event interface methods. For example WebSocket.OnFrameReceived() etc.
    // before
    websocket.On("framereceived", ...)
    // after
    websocket.OnFrameReceived(...)
  3. The signatures of some interface methods have changed, for example:
    • Unified optional parameter naming. For example, previously all Click used PageClickOptions, now
      Locator.Click(options ...LocatorClickOptions)
      Page.Click(selector string, options ...PageClickOptions)
      Frame.Click(selector string, options ...FrameClickOptions)
    • Some parameters are generated as new types or names, e.g. Page.AddInitScript(script Script)
  4. Removed several methods that were not documented upstream. These methods can be safely converted to other existing methods. For example
    • Page.ExpectedDialog can use Page.OnDialog instead.
    • All xxxAssertions.NotTo..., use .Not().xxx pls.
    • WebSocket.On("framesent", ...), use WebSocket.OnFrameSent(...).

New Contributors

Full Changelog: v0.3500.0...v0.3700.0

v0.3500.0

29 Jun 15:15
a0bbf04

Choose a tag to compare

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! 💯

Breaking change:

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)

v0.2000.1

27 Apr 15:19
989def6

Choose a tag to compare

What's Changed

New Contributors / Special thanks

Thank you to both of you who invested time and effort into the project! 💯

Full Changelog: v0.2000.0...v0.2000.1

v0.2000.0

12 Mar 13:47
fbe8ece

Choose a tag to compare

This version is on pair drive-wise with the upcoming Playwright 1.20 version.

Breaking change:

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()