Commit Graph

6 Commits

Author SHA1 Message Date
Can Stand
0d5814a357
chore: use golangci-lint and gofumpt (#408) 2024-01-24 21:17:04 +08:00
Can Stand
d1bed759cd
Automatically generate Go interfaces code, etc. (#367)
BREAKING CHANGE: 
Due to the rewrite of the go code generation scripts, it brings the following **breaking** changes:

- Optimized generated comments. 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.
- Added event interface methods. For example `Page.OnDialog()` etc.
- The signatures of some interface methods have changed, for example:
  - Unified optional parameter naming. For example, previously all `Click` used `PageClickOptions`, now
    ```go
    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)`
- 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.
2023-08-24 12:44:28 +08:00
Max Schmitt
6a27a65027
chore: move under playwright-community GitHub organisation (#248) 2022-01-26 16:29:30 +01:00
Kumar Aditya
0fdbb22856
chore: do not build examples with install (#184) 2021-08-08 19:11:53 +02:00
Max Schmitt
90056e2984
chore: use interface types for public API (#69) 2020-12-26 16:40:33 +01:00
Matt Hamilton
db840fd160
examples: Add an example of fetching data from in-page JavaScript (#51)
* add JSHandle example

* Update main.go

* Update main.go

Co-authored-by: Max Schmitt <max@schmitt.mx>
2020-10-03 12:59:04 +02:00