Commit Graph

15 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
Can Stand
43f547ecad
chore: roll to Playwright v1.36.1 (#358) 2023-07-19 10:32:27 +02:00
Neenad Ingole
8e8f670b5f
chore: roll to Playwright 1.25 (#296)
Co-authored-by: Max Schmitt <max@schmitt.mx>
2022-09-19 12:08:17 +02:00
Max Schmitt
21654ccac0
chore: roll to 1.20.0-beta-1647057403000 (#256) 2022-03-12 14:34:36 +01:00
Kumar Aditya
06f85e3f8c
chore: fix network (#207) 2021-10-04 15:51:04 +05:30
Kumar Aditya
f315239c0e
chore: use go generate (#208) 2021-10-04 12:09:03 +02:00
Kumar Aditya
7e45483b13
chore: roll to 1.14.1 (#206) 2021-09-17 16:10:50 +02:00
Kumar Aditya
ef101d73b7
chore: remove xml in docs (#173) 2021-08-05 10:29:36 +02:00
Max Schmitt
641f3dfaa9
fix: re-introduce Page.emulateMedia (#166) 2021-08-03 14:12:58 +02:00
Kumar Aditya
3e5d42effc
chore: point to upstream Playwright repository (#149) 2021-07-29 15:13:25 +02:00
Kumar Aditya
244b7bbbf7
devops: add playwright add submodule (#147) 2021-07-29 13:11:14 +02:00
Max Schmitt
d68a250512
chore: roll Playwright to 1.9.2 (#108) 2021-03-16 10:14:12 +01:00
Max Schmitt
041b715e38
feat: add storage state support (#96) 2021-01-24 13:20:38 +01:00
Max Schmitt
b4f9239b89
chore: update readme on browser roll (#76) 2020-12-30 02:52:06 +01:00