v0.3700.0
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:
- 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.
- May cause many Deprecated lint errors, please update the call or use
- Added event interface methods. For example
WebSocket.OnFrameReceived()
etc.// before websocket.On("framereceived", ...) // after websocket.OnFrameReceived(...)
- The signatures of some interface methods have changed, for example:
- Unified optional parameter naming. For example, previously all
Click
usedPageClickOptions
, nowLocator.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)
- Unified optional parameter naming. For example, previously all
- Removed several methods that were not documented upstream. These methods can be safely converted to other existing methods. For example
Page.ExpectedDialog
can usePage.OnDialog
instead.- All
xxxAssertions.NotTo...
, use.Not().xxx
pls. WebSocket.On("framesent", ...)
, useWebSocket.OnFrameSent(...)
.
New Contributors
Full Changelog: v0.3500.0...v0.3700.0