github playwright-community/playwright-go v0.3700.0

latest releases: v0.4701.0, v0.4700.0, v0.4501.1...
12 months ago

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

Don't miss a new playwright-go release

NewReleases is sending notifications on new releases.