@@ -363,9 +363,11 @@ type BrowserNewContextOptions struct {
363
363
// **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
364
364
// work by replacing `localhost` with `local.playwright`.
365
365
ClientCertificates []ClientCertificate `json:"clientCertificates"`
366
- // Emulates `prefers-colors-scheme` media feature, supported values are `light`, `dark`, `no-preference`. See
367
- // [Page.EmulateMedia] for more details. Passing `no-override` resets emulation to system defaults. Defaults to
368
- // `light`.
366
+ // Emulates [prefers-colors-scheme]
367
+ // media feature, supported values are `light` and `dark`. See [Page.EmulateMedia] for more details. Passing
368
+ // `no-override` resets emulation to system defaults. Defaults to `light`.
369
+ //
370
+ // [prefers-colors-scheme]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
369
371
ColorScheme * ColorScheme `json:"colorScheme"`
370
372
// Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about
371
373
// [emulating devices with device scale factor].
@@ -508,9 +510,11 @@ type BrowserNewPageOptions struct {
508
510
// **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
509
511
// work by replacing `localhost` with `local.playwright`.
510
512
ClientCertificates []ClientCertificate `json:"clientCertificates"`
511
- // Emulates `prefers-colors-scheme` media feature, supported values are `light`, `dark`, `no-preference`. See
512
- // [Page.EmulateMedia] for more details. Passing `no-override` resets emulation to system defaults. Defaults to
513
- // `light`.
513
+ // Emulates [prefers-colors-scheme]
514
+ // media feature, supported values are `light` and `dark`. See [Page.EmulateMedia] for more details. Passing
515
+ // `no-override` resets emulation to system defaults. Defaults to `light`.
516
+ //
517
+ // [prefers-colors-scheme]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
514
518
ColorScheme * ColorScheme `json:"colorScheme"`
515
519
// Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about
516
520
// [emulating devices with device scale factor].
@@ -910,9 +914,11 @@ type BrowserTypeLaunchPersistentContextOptions struct {
910
914
// **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
911
915
// work by replacing `localhost` with `local.playwright`.
912
916
ClientCertificates []ClientCertificate `json:"clientCertificates"`
913
- // Emulates `prefers-colors-scheme` media feature, supported values are `light`, `dark`, `no-preference`. See
914
- // [Page.EmulateMedia] for more details. Passing `no-override` resets emulation to system defaults. Defaults to
915
- // `light`.
917
+ // Emulates [prefers-colors-scheme]
918
+ // media feature, supported values are `light` and `dark`. See [Page.EmulateMedia] for more details. Passing
919
+ // `no-override` resets emulation to system defaults. Defaults to `light`.
920
+ //
921
+ // [prefers-colors-scheme]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
916
922
ColorScheme * ColorScheme `json:"colorScheme"`
917
923
// Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about
918
924
// [emulating devices with device scale factor].
@@ -2236,6 +2242,12 @@ type KeyboardTypeOptions struct {
2236
2242
Delay * float64 `json:"delay"`
2237
2243
}
2238
2244
2245
+ type LocatorAriaSnapshotOptions struct {
2246
+ // Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can
2247
+ // be changed by using the [BrowserContext.SetDefaultTimeout] or [Page.SetDefaultTimeout] methods.
2248
+ Timeout * float64 `json:"timeout"`
2249
+ }
2250
+
2239
2251
type LocatorBlurOptions struct {
2240
2252
// Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can
2241
2253
// be changed by using the [BrowserContext.SetDefaultTimeout] or [Page.SetDefaultTimeout] methods.
@@ -2990,6 +3002,11 @@ type LocatorAssertionsToHaveValuesOptions struct {
2990
3002
Timeout * float64 `json:"timeout"`
2991
3003
}
2992
3004
3005
+ type LocatorAssertionsToMatchAriaSnapshotOptions struct {
3006
+ // Time to retry the assertion for in milliseconds. Defaults to `5000`.
3007
+ Timeout * float64 `json:"timeout"`
3008
+ }
3009
+
2993
3010
type MouseClickOptions struct {
2994
3011
// Defaults to `left`.
2995
3012
Button * MouseButton `json:"button"`
@@ -3197,8 +3214,11 @@ type PageDragAndDropOptions struct {
3197
3214
}
3198
3215
3199
3216
type PageEmulateMediaOptions struct {
3200
- // Emulates `prefers-colors-scheme` media feature, supported values are `light`, `dark`, `no-preference`.
3201
- // Passing `no-override` disables color scheme emulation.
3217
+ // Emulates [prefers-colors-scheme]
3218
+ // media feature, supported values are `light` and `dark`. Passing `no-override` disables color scheme
3219
+ // emulation. `no-preference` is deprecated.
3220
+ //
3221
+ // [prefers-colors-scheme]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
3202
3222
ColorScheme * ColorScheme `json:"colorScheme"`
3203
3223
ForcedColors * ForcedColors `json:"forcedColors"`
3204
3224
// Changes the CSS media type of the page. The only allowed values are `screen`, `print` and `no-override`.
@@ -4173,6 +4193,12 @@ type TracingStartChunkOptions struct {
4173
4193
Title * string `json:"title"`
4174
4194
}
4175
4195
4196
+ type TracingGroupOptions struct {
4197
+ // Specifies a custom location for the group to be shown in the trace viewer. Defaults to the location of the
4198
+ // [Tracing.Group] call.
4199
+ Location * TracingGroupOptionsLocation `json:"location"`
4200
+ }
4201
+
4176
4202
type WebSocketExpectEventOptions struct {
4177
4203
// Receives the event data and resolves to truthy value when the waiting should resolve.
4178
4204
Predicate interface {} `json:"predicate"`
@@ -4279,3 +4305,9 @@ type Margin struct {
4279
4305
// Left margin, accepts values labeled with units. Defaults to `0`.
4280
4306
Left * string `json:"left"`
4281
4307
}
4308
+
4309
+ type TracingGroupOptionsLocation struct {
4310
+ File string `json:"file"`
4311
+ Line * int `json:"line"`
4312
+ Column * int `json:"column"`
4313
+ }
0 commit comments