playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
2.11k stars 156 forks source link

Roll to Playwright v1.35.1 #354

Closed canstand closed 1 year ago

canstand commented 1 year ago

Rolling Playwright to version v1.35.1, and refactoring of Locator related methods, making it more convenient for users to call.

Hi @mxschmitt , is it possible to tag a new version? If anyone reports a issue, I can try to deal with it in the near future.

// 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)
mxschmitt commented 1 year ago

Will cut a new version in a bit. Unrelated to that change, would be nice if we could get rid of the manual scripts/data/interfaces.json at some point and auto generate it from the source. Probably a lot of investment but once its working its worth it. We have similar infra for that in Java, Python, .NET and JS itself. (in JS we generate the interfaces which the client implements)