playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.

MIT License

Stars
1.8K
Committers
20

Bot releases are visible (Hide)

playwright-go - v0.4201.1 Latest Release

Published by canstand 7 months ago

What's Changed

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4201.0...v0.4201.1

playwright-go - v0.4201.0

Published by canstand 8 months ago

What's Changed

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.

Announcements

  • ⚠️ Ubuntu 18 is not supported anymore (by upstream).

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4102.0...v0.4201.0

playwright-go - v0.4102.0

Published by canstand 8 months ago

What's Changed

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4101.1...v0.4102.0

playwright-go - v0.4101.1

Published by canstand 9 months ago

What's Changed

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4101.0...v0.4101.1

playwright-go - v0.4101.0

Published by canstand 9 months ago

What's Changed

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.4001.0...v0.4101.0

playwright-go - v0.4001.0

Published by canstand 10 months ago

What's Changed

BREAKING CHANGE

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

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3900.1...v0.4000.0

playwright-go - v0.3900.1

Published by canstand 12 months ago

What's Changed

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3900.0...v0.3900.1

playwright-go - v0.3900.0

Published by canstand 12 months ago

What's Changed

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3800.1...v0.3900.0

playwright-go - v0.3800.1

Published by canstand 12 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3800.0...v0.3800.1

playwright-go - v0.3800.0

Published by canstand about 1 year ago

What's Changed

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.3700.0...v0.3800.0

playwright-go - v0.3700.0

Published by canstand about 1 year 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: https://github.com/playwright-community/playwright-go/compare/v0.3500.0...v0.3700.0

playwright-go - v0.3500.0

Published by mxschmitt over 1 year ago

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)
playwright-go - v0.2000.1

Published by mxschmitt over 2 years ago

What's Changed

New Contributors / Special thanks

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

Full Changelog: https://github.com/playwright-community/playwright-go/compare/v0.2000.0...v0.2000.1

playwright-go - v0.2000.0

Published by mxschmitt over 2 years ago

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()
playwright-go - Version 0.1400.0

Published by mxschmitt about 3 years ago

This version is on pair with version 1.14 of Playwright.

(The previous release was no Godoc compliant and the proxy did not pick it up)

playwright-go - Version 0.1400

Published by mxschmitt about 3 years ago

This version is on pair with version 1.14 of Playwright.

playwright-go - Version 0.1100.0

Published by mxschmitt over 3 years ago

  • feat(install): allow to install and skip certain browser (#113)
  • docs: update link to Playwright API (#114)
  • fix(ElementHandle): don't panic when QuerySelector not exists (#112)
playwright-go - Version 1.9.2 (beta)

Published by mxschmitt over 3 years ago

  • updated to version 1.9.2
  • Renamed some generated methods
playwright-go - 0.171.1

Published by mxschmitt almost 4 years ago

Changelog:

  • chore: add Frame.Tap/Page.Tap/Page.Frame methods (#74)
  • chore: update readme on browser roll (#76)
  • chore: add missing methods (Tap/Touchscreen/WebSocket.IsClosed) (#78)
  • chore: restructure tests (#77)
  • feat: add websocket functionality and tests (#79)
  • feat: add Page on pageerror event (#82)
  • chore: waitForEvent cleanup (#81)
  • chore: cleanup inner core iteration 1 (#86)
  • chore: fix flaky websocket tests (#87)
  • tests: added BindingCall tests (#88)
  • tests: add more worker and element tests (#89)
playwright-go - 0.171.0

Published by mxschmitt almost 4 years ago

Initial release with upstream Playwright 1.7.1.

Package Rankings
Top 1.35% on Proxy.golang.org
Badges
Extracted from project README
PkgGoDev License Go Report Card Join Slack Coverage Status Chromium version Firefox version WebKit version