Commit Graph

10 Commits

Author SHA1 Message Date
Can Stand
24eab96fb0
chore: roll to playwright v1.42.1 (#423) 2024-03-02 13:34:50 +08:00
Can Stand
3319f69744
chore: roll to Playwright v1.40.1 (#394)
* chore: roll to Playwright v1.40.1
* feat: SetInputFiles now can use file path
    files can be one of: string, []string, InputFile, []InputFile
* refactor: wrap all playwright errors

BREAKING CHANGE:
- `ErrPlaywright` wraps all Playwright errors
- `ErrTimeout` wraps all timeout errors and replaces `TimeoutError`
2023-12-03 10:00:45 +08:00
Can Stand
8575a752c3
chore: roll to playwright v1.37.1 (#368) 2023-08-25 21:44:55 +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
a0bbf04116
chore: roll to Playwright v1.35.1 (#354)
* chore: roll to Playwright v1.35.1

* fix: rpc protocol update

* feat: Locators support chain calls

BREAKING CHANGE: Make Locator easier to chain calls, e.g:
`_, err := page.Locator("body").Locator("div").And("p").TextContent()`
2023-06-29 17:13:22 +02:00
Can Stand
e802fc1073
chore: roll to Playwright v1.30.0 (#352) 2023-06-19 14:37:03 +02:00
Max Schmitt
10d3a9fd3c
test: fix TestPagePageError test (#160) 2021-08-01 19:10:43 +02:00
lcmtwn
b21046c3b0
chore: added missing SelectOption method (#90)
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-01-13 17:48:30 +01:00
Max Schmitt
ca837bebbe
chore: add documentation to exported structs (#92) 2021-01-13 16:36:54 +01:00
Max Schmitt
3407c1f6dd
feat: error handling and restructured tests (#6) 2020-08-17 11:33:12 +02:00