Skip to content

v0.3700.0

Compare
Choose a tag to compare
@canstand canstand released this 30 Aug 02:43
· 45 commits to main since this release
8575a75

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