@softure-ai/marketing-kit 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +77 -7
- package/dist/config/schema.d.ts +2428 -254
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +8 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/shot-steps.d.ts +620 -0
- package/dist/config/shot-steps.d.ts.map +1 -1
- package/dist/config/shot-steps.js +31 -2
- package/dist/config/shot-steps.js.map +1 -1
- package/dist/screenshot/gates.d.ts +15 -6
- package/dist/screenshot/gates.d.ts.map +1 -1
- package/dist/screenshot/gates.js +24 -7
- package/dist/screenshot/gates.js.map +1 -1
- package/dist/screenshot/screenshot.d.ts.map +1 -1
- package/dist/screenshot/screenshot.js +107 -17
- package/dist/screenshot/screenshot.js.map +1 -1
- package/dist/screenshot/steps.d.ts +3 -2
- package/dist/screenshot/steps.d.ts.map +1 -1
- package/dist/screenshot/steps.js +60 -2
- package/dist/screenshot/steps.js.map +1 -1
- package/package.json +1 -1
- package/schema/marketing.schema.json +2026 -291
- package/src/config/schema.ts +8 -1
- package/src/config/shot-steps.ts +31 -2
- package/src/screenshot/gates.ts +24 -7
- package/src/screenshot/screenshot.ts +106 -17
- package/src/screenshot/steps.ts +58 -3
|
@@ -3499,309 +3499,2062 @@
|
|
|
3499
3499
|
"key"
|
|
3500
3500
|
],
|
|
3501
3501
|
"additionalProperties": false
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
"type": "object",
|
|
3505
|
+
"properties": {
|
|
3506
|
+
"do": {
|
|
3507
|
+
"type": "string",
|
|
3508
|
+
"const": "open",
|
|
3509
|
+
"description": "Opens every matching <details> element (nth picks one), e.g. every disclosure of a card; fails when a match is not a <details> or does not stay open."
|
|
3510
|
+
},
|
|
3511
|
+
"target": {
|
|
3512
|
+
"description": "The <details> elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is opened.",
|
|
3513
|
+
"type": "object",
|
|
3514
|
+
"properties": {
|
|
3515
|
+
"role": {
|
|
3516
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
3517
|
+
"type": "string",
|
|
3518
|
+
"enum": [
|
|
3519
|
+
"alert",
|
|
3520
|
+
"alertdialog",
|
|
3521
|
+
"application",
|
|
3522
|
+
"article",
|
|
3523
|
+
"banner",
|
|
3524
|
+
"blockquote",
|
|
3525
|
+
"button",
|
|
3526
|
+
"caption",
|
|
3527
|
+
"cell",
|
|
3528
|
+
"checkbox",
|
|
3529
|
+
"code",
|
|
3530
|
+
"columnheader",
|
|
3531
|
+
"combobox",
|
|
3532
|
+
"complementary",
|
|
3533
|
+
"contentinfo",
|
|
3534
|
+
"definition",
|
|
3535
|
+
"deletion",
|
|
3536
|
+
"dialog",
|
|
3537
|
+
"directory",
|
|
3538
|
+
"document",
|
|
3539
|
+
"emphasis",
|
|
3540
|
+
"feed",
|
|
3541
|
+
"figure",
|
|
3542
|
+
"form",
|
|
3543
|
+
"generic",
|
|
3544
|
+
"grid",
|
|
3545
|
+
"gridcell",
|
|
3546
|
+
"group",
|
|
3547
|
+
"heading",
|
|
3548
|
+
"img",
|
|
3549
|
+
"insertion",
|
|
3550
|
+
"link",
|
|
3551
|
+
"list",
|
|
3552
|
+
"listbox",
|
|
3553
|
+
"listitem",
|
|
3554
|
+
"log",
|
|
3555
|
+
"main",
|
|
3556
|
+
"marquee",
|
|
3557
|
+
"math",
|
|
3558
|
+
"meter",
|
|
3559
|
+
"menu",
|
|
3560
|
+
"menubar",
|
|
3561
|
+
"menuitem",
|
|
3562
|
+
"menuitemcheckbox",
|
|
3563
|
+
"menuitemradio",
|
|
3564
|
+
"navigation",
|
|
3565
|
+
"none",
|
|
3566
|
+
"note",
|
|
3567
|
+
"option",
|
|
3568
|
+
"paragraph",
|
|
3569
|
+
"presentation",
|
|
3570
|
+
"progressbar",
|
|
3571
|
+
"radio",
|
|
3572
|
+
"radiogroup",
|
|
3573
|
+
"region",
|
|
3574
|
+
"row",
|
|
3575
|
+
"rowgroup",
|
|
3576
|
+
"rowheader",
|
|
3577
|
+
"scrollbar",
|
|
3578
|
+
"search",
|
|
3579
|
+
"searchbox",
|
|
3580
|
+
"separator",
|
|
3581
|
+
"slider",
|
|
3582
|
+
"spinbutton",
|
|
3583
|
+
"status",
|
|
3584
|
+
"strong",
|
|
3585
|
+
"subscript",
|
|
3586
|
+
"superscript",
|
|
3587
|
+
"switch",
|
|
3588
|
+
"tab",
|
|
3589
|
+
"table",
|
|
3590
|
+
"tablist",
|
|
3591
|
+
"tabpanel",
|
|
3592
|
+
"term",
|
|
3593
|
+
"textbox",
|
|
3594
|
+
"time",
|
|
3595
|
+
"timer",
|
|
3596
|
+
"toolbar",
|
|
3597
|
+
"tooltip",
|
|
3598
|
+
"tree",
|
|
3599
|
+
"treegrid",
|
|
3600
|
+
"treeitem"
|
|
3601
|
+
]
|
|
3602
|
+
},
|
|
3603
|
+
"name": {
|
|
3604
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
3605
|
+
"anyOf": [
|
|
3606
|
+
{
|
|
3607
|
+
"type": "string",
|
|
3608
|
+
"minLength": 1
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
"type": "object",
|
|
3612
|
+
"properties": {
|
|
3613
|
+
"regex": {
|
|
3614
|
+
"type": "string",
|
|
3615
|
+
"minLength": 1,
|
|
3616
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3617
|
+
},
|
|
3618
|
+
"flags": {
|
|
3619
|
+
"default": "",
|
|
3620
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3621
|
+
"type": "string",
|
|
3622
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3623
|
+
}
|
|
3624
|
+
},
|
|
3625
|
+
"required": [
|
|
3626
|
+
"regex"
|
|
3627
|
+
],
|
|
3628
|
+
"additionalProperties": false
|
|
3629
|
+
}
|
|
3630
|
+
]
|
|
3631
|
+
},
|
|
3632
|
+
"text": {
|
|
3633
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
3634
|
+
"anyOf": [
|
|
3635
|
+
{
|
|
3636
|
+
"type": "string",
|
|
3637
|
+
"minLength": 1
|
|
3638
|
+
},
|
|
3639
|
+
{
|
|
3640
|
+
"type": "object",
|
|
3641
|
+
"properties": {
|
|
3642
|
+
"regex": {
|
|
3643
|
+
"type": "string",
|
|
3644
|
+
"minLength": 1,
|
|
3645
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3646
|
+
},
|
|
3647
|
+
"flags": {
|
|
3648
|
+
"default": "",
|
|
3649
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3650
|
+
"type": "string",
|
|
3651
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3652
|
+
}
|
|
3653
|
+
},
|
|
3654
|
+
"required": [
|
|
3655
|
+
"regex"
|
|
3656
|
+
],
|
|
3657
|
+
"additionalProperties": false
|
|
3658
|
+
}
|
|
3659
|
+
]
|
|
3660
|
+
},
|
|
3661
|
+
"label": {
|
|
3662
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
3663
|
+
"anyOf": [
|
|
3664
|
+
{
|
|
3665
|
+
"type": "string",
|
|
3666
|
+
"minLength": 1
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
"type": "object",
|
|
3670
|
+
"properties": {
|
|
3671
|
+
"regex": {
|
|
3672
|
+
"type": "string",
|
|
3673
|
+
"minLength": 1,
|
|
3674
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3675
|
+
},
|
|
3676
|
+
"flags": {
|
|
3677
|
+
"default": "",
|
|
3678
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3679
|
+
"type": "string",
|
|
3680
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3681
|
+
}
|
|
3682
|
+
},
|
|
3683
|
+
"required": [
|
|
3684
|
+
"regex"
|
|
3685
|
+
],
|
|
3686
|
+
"additionalProperties": false
|
|
3687
|
+
}
|
|
3688
|
+
]
|
|
3689
|
+
},
|
|
3690
|
+
"testId": {
|
|
3691
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3692
|
+
"type": "string",
|
|
3693
|
+
"minLength": 1
|
|
3694
|
+
},
|
|
3695
|
+
"css": {
|
|
3696
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3697
|
+
"type": "string",
|
|
3698
|
+
"minLength": 1
|
|
3699
|
+
},
|
|
3700
|
+
"hasText": {
|
|
3701
|
+
"description": "Only elements containing this text, with css.",
|
|
3702
|
+
"anyOf": [
|
|
3703
|
+
{
|
|
3704
|
+
"type": "string",
|
|
3705
|
+
"minLength": 1
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
"type": "object",
|
|
3709
|
+
"properties": {
|
|
3710
|
+
"regex": {
|
|
3711
|
+
"type": "string",
|
|
3712
|
+
"minLength": 1,
|
|
3713
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3714
|
+
},
|
|
3715
|
+
"flags": {
|
|
3716
|
+
"default": "",
|
|
3717
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3718
|
+
"type": "string",
|
|
3719
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3720
|
+
}
|
|
3721
|
+
},
|
|
3722
|
+
"required": [
|
|
3723
|
+
"regex"
|
|
3724
|
+
],
|
|
3725
|
+
"additionalProperties": false
|
|
3726
|
+
}
|
|
3727
|
+
]
|
|
3728
|
+
},
|
|
3729
|
+
"exact": {
|
|
3730
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
3731
|
+
"type": "boolean"
|
|
3732
|
+
},
|
|
3733
|
+
"nth": {
|
|
3734
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
3735
|
+
"type": "integer",
|
|
3736
|
+
"minimum": 0,
|
|
3737
|
+
"maximum": 9007199254740991
|
|
3738
|
+
}
|
|
3739
|
+
},
|
|
3740
|
+
"additionalProperties": false
|
|
3741
|
+
}
|
|
3742
|
+
},
|
|
3743
|
+
"required": [
|
|
3744
|
+
"do",
|
|
3745
|
+
"target"
|
|
3746
|
+
],
|
|
3747
|
+
"additionalProperties": false
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
"type": "object",
|
|
3751
|
+
"properties": {
|
|
3752
|
+
"do": {
|
|
3753
|
+
"type": "string",
|
|
3754
|
+
"const": "hide",
|
|
3755
|
+
"description": "Hides every match but the last keepLast (display: none), e.g. all but the last three columns of a horizontally scrolling chart."
|
|
3756
|
+
},
|
|
3757
|
+
"target": {
|
|
3758
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match counts.",
|
|
3759
|
+
"type": "object",
|
|
3760
|
+
"properties": {
|
|
3761
|
+
"role": {
|
|
3762
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
3763
|
+
"type": "string",
|
|
3764
|
+
"enum": [
|
|
3765
|
+
"alert",
|
|
3766
|
+
"alertdialog",
|
|
3767
|
+
"application",
|
|
3768
|
+
"article",
|
|
3769
|
+
"banner",
|
|
3770
|
+
"blockquote",
|
|
3771
|
+
"button",
|
|
3772
|
+
"caption",
|
|
3773
|
+
"cell",
|
|
3774
|
+
"checkbox",
|
|
3775
|
+
"code",
|
|
3776
|
+
"columnheader",
|
|
3777
|
+
"combobox",
|
|
3778
|
+
"complementary",
|
|
3779
|
+
"contentinfo",
|
|
3780
|
+
"definition",
|
|
3781
|
+
"deletion",
|
|
3782
|
+
"dialog",
|
|
3783
|
+
"directory",
|
|
3784
|
+
"document",
|
|
3785
|
+
"emphasis",
|
|
3786
|
+
"feed",
|
|
3787
|
+
"figure",
|
|
3788
|
+
"form",
|
|
3789
|
+
"generic",
|
|
3790
|
+
"grid",
|
|
3791
|
+
"gridcell",
|
|
3792
|
+
"group",
|
|
3793
|
+
"heading",
|
|
3794
|
+
"img",
|
|
3795
|
+
"insertion",
|
|
3796
|
+
"link",
|
|
3797
|
+
"list",
|
|
3798
|
+
"listbox",
|
|
3799
|
+
"listitem",
|
|
3800
|
+
"log",
|
|
3801
|
+
"main",
|
|
3802
|
+
"marquee",
|
|
3803
|
+
"math",
|
|
3804
|
+
"meter",
|
|
3805
|
+
"menu",
|
|
3806
|
+
"menubar",
|
|
3807
|
+
"menuitem",
|
|
3808
|
+
"menuitemcheckbox",
|
|
3809
|
+
"menuitemradio",
|
|
3810
|
+
"navigation",
|
|
3811
|
+
"none",
|
|
3812
|
+
"note",
|
|
3813
|
+
"option",
|
|
3814
|
+
"paragraph",
|
|
3815
|
+
"presentation",
|
|
3816
|
+
"progressbar",
|
|
3817
|
+
"radio",
|
|
3818
|
+
"radiogroup",
|
|
3819
|
+
"region",
|
|
3820
|
+
"row",
|
|
3821
|
+
"rowgroup",
|
|
3822
|
+
"rowheader",
|
|
3823
|
+
"scrollbar",
|
|
3824
|
+
"search",
|
|
3825
|
+
"searchbox",
|
|
3826
|
+
"separator",
|
|
3827
|
+
"slider",
|
|
3828
|
+
"spinbutton",
|
|
3829
|
+
"status",
|
|
3830
|
+
"strong",
|
|
3831
|
+
"subscript",
|
|
3832
|
+
"superscript",
|
|
3833
|
+
"switch",
|
|
3834
|
+
"tab",
|
|
3835
|
+
"table",
|
|
3836
|
+
"tablist",
|
|
3837
|
+
"tabpanel",
|
|
3838
|
+
"term",
|
|
3839
|
+
"textbox",
|
|
3840
|
+
"time",
|
|
3841
|
+
"timer",
|
|
3842
|
+
"toolbar",
|
|
3843
|
+
"tooltip",
|
|
3844
|
+
"tree",
|
|
3845
|
+
"treegrid",
|
|
3846
|
+
"treeitem"
|
|
3847
|
+
]
|
|
3848
|
+
},
|
|
3849
|
+
"name": {
|
|
3850
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
3851
|
+
"anyOf": [
|
|
3852
|
+
{
|
|
3853
|
+
"type": "string",
|
|
3854
|
+
"minLength": 1
|
|
3855
|
+
},
|
|
3856
|
+
{
|
|
3857
|
+
"type": "object",
|
|
3858
|
+
"properties": {
|
|
3859
|
+
"regex": {
|
|
3860
|
+
"type": "string",
|
|
3861
|
+
"minLength": 1,
|
|
3862
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3863
|
+
},
|
|
3864
|
+
"flags": {
|
|
3865
|
+
"default": "",
|
|
3866
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3867
|
+
"type": "string",
|
|
3868
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3869
|
+
}
|
|
3870
|
+
},
|
|
3871
|
+
"required": [
|
|
3872
|
+
"regex"
|
|
3873
|
+
],
|
|
3874
|
+
"additionalProperties": false
|
|
3875
|
+
}
|
|
3876
|
+
]
|
|
3877
|
+
},
|
|
3878
|
+
"text": {
|
|
3879
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
3880
|
+
"anyOf": [
|
|
3881
|
+
{
|
|
3882
|
+
"type": "string",
|
|
3883
|
+
"minLength": 1
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
"type": "object",
|
|
3887
|
+
"properties": {
|
|
3888
|
+
"regex": {
|
|
3889
|
+
"type": "string",
|
|
3890
|
+
"minLength": 1,
|
|
3891
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3892
|
+
},
|
|
3893
|
+
"flags": {
|
|
3894
|
+
"default": "",
|
|
3895
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3896
|
+
"type": "string",
|
|
3897
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3898
|
+
}
|
|
3899
|
+
},
|
|
3900
|
+
"required": [
|
|
3901
|
+
"regex"
|
|
3902
|
+
],
|
|
3903
|
+
"additionalProperties": false
|
|
3904
|
+
}
|
|
3905
|
+
]
|
|
3906
|
+
},
|
|
3907
|
+
"label": {
|
|
3908
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
3909
|
+
"anyOf": [
|
|
3910
|
+
{
|
|
3911
|
+
"type": "string",
|
|
3912
|
+
"minLength": 1
|
|
3913
|
+
},
|
|
3914
|
+
{
|
|
3915
|
+
"type": "object",
|
|
3916
|
+
"properties": {
|
|
3917
|
+
"regex": {
|
|
3918
|
+
"type": "string",
|
|
3919
|
+
"minLength": 1,
|
|
3920
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3921
|
+
},
|
|
3922
|
+
"flags": {
|
|
3923
|
+
"default": "",
|
|
3924
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3925
|
+
"type": "string",
|
|
3926
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3927
|
+
}
|
|
3928
|
+
},
|
|
3929
|
+
"required": [
|
|
3930
|
+
"regex"
|
|
3931
|
+
],
|
|
3932
|
+
"additionalProperties": false
|
|
3933
|
+
}
|
|
3934
|
+
]
|
|
3935
|
+
},
|
|
3936
|
+
"testId": {
|
|
3937
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3938
|
+
"type": "string",
|
|
3939
|
+
"minLength": 1
|
|
3940
|
+
},
|
|
3941
|
+
"css": {
|
|
3942
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3943
|
+
"type": "string",
|
|
3944
|
+
"minLength": 1
|
|
3945
|
+
},
|
|
3946
|
+
"hasText": {
|
|
3947
|
+
"description": "Only elements containing this text, with css.",
|
|
3948
|
+
"anyOf": [
|
|
3949
|
+
{
|
|
3950
|
+
"type": "string",
|
|
3951
|
+
"minLength": 1
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
"type": "object",
|
|
3955
|
+
"properties": {
|
|
3956
|
+
"regex": {
|
|
3957
|
+
"type": "string",
|
|
3958
|
+
"minLength": 1,
|
|
3959
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3960
|
+
},
|
|
3961
|
+
"flags": {
|
|
3962
|
+
"default": "",
|
|
3963
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3964
|
+
"type": "string",
|
|
3965
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3968
|
+
"required": [
|
|
3969
|
+
"regex"
|
|
3970
|
+
],
|
|
3971
|
+
"additionalProperties": false
|
|
3972
|
+
}
|
|
3973
|
+
]
|
|
3974
|
+
},
|
|
3975
|
+
"exact": {
|
|
3976
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
3977
|
+
"type": "boolean"
|
|
3978
|
+
},
|
|
3979
|
+
"nth": {
|
|
3980
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
3981
|
+
"type": "integer",
|
|
3982
|
+
"minimum": 0,
|
|
3983
|
+
"maximum": 9007199254740991
|
|
3984
|
+
}
|
|
3985
|
+
},
|
|
3986
|
+
"additionalProperties": false
|
|
3987
|
+
},
|
|
3988
|
+
"keepLast": {
|
|
3989
|
+
"default": 0,
|
|
3990
|
+
"description": "How many of the last matches stay shown (0-1000, default 0); the step fails when there are not more matches than this.",
|
|
3991
|
+
"type": "integer",
|
|
3992
|
+
"minimum": 0,
|
|
3993
|
+
"maximum": 1000
|
|
3994
|
+
}
|
|
3995
|
+
},
|
|
3996
|
+
"required": [
|
|
3997
|
+
"do",
|
|
3998
|
+
"target"
|
|
3999
|
+
],
|
|
4000
|
+
"additionalProperties": false
|
|
4001
|
+
},
|
|
4002
|
+
{
|
|
4003
|
+
"type": "object",
|
|
4004
|
+
"properties": {
|
|
4005
|
+
"do": {
|
|
4006
|
+
"type": "string",
|
|
4007
|
+
"const": "flatten",
|
|
4008
|
+
"description": "Removes the top border and top margin of every match, e.g. the line above the first row a print state still shows."
|
|
4009
|
+
},
|
|
4010
|
+
"target": {
|
|
4011
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is flattened.",
|
|
4012
|
+
"type": "object",
|
|
4013
|
+
"properties": {
|
|
4014
|
+
"role": {
|
|
4015
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4016
|
+
"type": "string",
|
|
4017
|
+
"enum": [
|
|
4018
|
+
"alert",
|
|
4019
|
+
"alertdialog",
|
|
4020
|
+
"application",
|
|
4021
|
+
"article",
|
|
4022
|
+
"banner",
|
|
4023
|
+
"blockquote",
|
|
4024
|
+
"button",
|
|
4025
|
+
"caption",
|
|
4026
|
+
"cell",
|
|
4027
|
+
"checkbox",
|
|
4028
|
+
"code",
|
|
4029
|
+
"columnheader",
|
|
4030
|
+
"combobox",
|
|
4031
|
+
"complementary",
|
|
4032
|
+
"contentinfo",
|
|
4033
|
+
"definition",
|
|
4034
|
+
"deletion",
|
|
4035
|
+
"dialog",
|
|
4036
|
+
"directory",
|
|
4037
|
+
"document",
|
|
4038
|
+
"emphasis",
|
|
4039
|
+
"feed",
|
|
4040
|
+
"figure",
|
|
4041
|
+
"form",
|
|
4042
|
+
"generic",
|
|
4043
|
+
"grid",
|
|
4044
|
+
"gridcell",
|
|
4045
|
+
"group",
|
|
4046
|
+
"heading",
|
|
4047
|
+
"img",
|
|
4048
|
+
"insertion",
|
|
4049
|
+
"link",
|
|
4050
|
+
"list",
|
|
4051
|
+
"listbox",
|
|
4052
|
+
"listitem",
|
|
4053
|
+
"log",
|
|
4054
|
+
"main",
|
|
4055
|
+
"marquee",
|
|
4056
|
+
"math",
|
|
4057
|
+
"meter",
|
|
4058
|
+
"menu",
|
|
4059
|
+
"menubar",
|
|
4060
|
+
"menuitem",
|
|
4061
|
+
"menuitemcheckbox",
|
|
4062
|
+
"menuitemradio",
|
|
4063
|
+
"navigation",
|
|
4064
|
+
"none",
|
|
4065
|
+
"note",
|
|
4066
|
+
"option",
|
|
4067
|
+
"paragraph",
|
|
4068
|
+
"presentation",
|
|
4069
|
+
"progressbar",
|
|
4070
|
+
"radio",
|
|
4071
|
+
"radiogroup",
|
|
4072
|
+
"region",
|
|
4073
|
+
"row",
|
|
4074
|
+
"rowgroup",
|
|
4075
|
+
"rowheader",
|
|
4076
|
+
"scrollbar",
|
|
4077
|
+
"search",
|
|
4078
|
+
"searchbox",
|
|
4079
|
+
"separator",
|
|
4080
|
+
"slider",
|
|
4081
|
+
"spinbutton",
|
|
4082
|
+
"status",
|
|
4083
|
+
"strong",
|
|
4084
|
+
"subscript",
|
|
4085
|
+
"superscript",
|
|
4086
|
+
"switch",
|
|
4087
|
+
"tab",
|
|
4088
|
+
"table",
|
|
4089
|
+
"tablist",
|
|
4090
|
+
"tabpanel",
|
|
4091
|
+
"term",
|
|
4092
|
+
"textbox",
|
|
4093
|
+
"time",
|
|
4094
|
+
"timer",
|
|
4095
|
+
"toolbar",
|
|
4096
|
+
"tooltip",
|
|
4097
|
+
"tree",
|
|
4098
|
+
"treegrid",
|
|
4099
|
+
"treeitem"
|
|
4100
|
+
]
|
|
4101
|
+
},
|
|
4102
|
+
"name": {
|
|
4103
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4104
|
+
"anyOf": [
|
|
4105
|
+
{
|
|
4106
|
+
"type": "string",
|
|
4107
|
+
"minLength": 1
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
"type": "object",
|
|
4111
|
+
"properties": {
|
|
4112
|
+
"regex": {
|
|
4113
|
+
"type": "string",
|
|
4114
|
+
"minLength": 1,
|
|
4115
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4116
|
+
},
|
|
4117
|
+
"flags": {
|
|
4118
|
+
"default": "",
|
|
4119
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4120
|
+
"type": "string",
|
|
4121
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4122
|
+
}
|
|
4123
|
+
},
|
|
4124
|
+
"required": [
|
|
4125
|
+
"regex"
|
|
4126
|
+
],
|
|
4127
|
+
"additionalProperties": false
|
|
4128
|
+
}
|
|
4129
|
+
]
|
|
4130
|
+
},
|
|
4131
|
+
"text": {
|
|
4132
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4133
|
+
"anyOf": [
|
|
4134
|
+
{
|
|
4135
|
+
"type": "string",
|
|
4136
|
+
"minLength": 1
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
"type": "object",
|
|
4140
|
+
"properties": {
|
|
4141
|
+
"regex": {
|
|
4142
|
+
"type": "string",
|
|
4143
|
+
"minLength": 1,
|
|
4144
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4145
|
+
},
|
|
4146
|
+
"flags": {
|
|
4147
|
+
"default": "",
|
|
4148
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4149
|
+
"type": "string",
|
|
4150
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4151
|
+
}
|
|
4152
|
+
},
|
|
4153
|
+
"required": [
|
|
4154
|
+
"regex"
|
|
4155
|
+
],
|
|
4156
|
+
"additionalProperties": false
|
|
4157
|
+
}
|
|
4158
|
+
]
|
|
4159
|
+
},
|
|
4160
|
+
"label": {
|
|
4161
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4162
|
+
"anyOf": [
|
|
4163
|
+
{
|
|
4164
|
+
"type": "string",
|
|
4165
|
+
"minLength": 1
|
|
4166
|
+
},
|
|
4167
|
+
{
|
|
4168
|
+
"type": "object",
|
|
4169
|
+
"properties": {
|
|
4170
|
+
"regex": {
|
|
4171
|
+
"type": "string",
|
|
4172
|
+
"minLength": 1,
|
|
4173
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4174
|
+
},
|
|
4175
|
+
"flags": {
|
|
4176
|
+
"default": "",
|
|
4177
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4178
|
+
"type": "string",
|
|
4179
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4180
|
+
}
|
|
4181
|
+
},
|
|
4182
|
+
"required": [
|
|
4183
|
+
"regex"
|
|
4184
|
+
],
|
|
4185
|
+
"additionalProperties": false
|
|
4186
|
+
}
|
|
4187
|
+
]
|
|
4188
|
+
},
|
|
4189
|
+
"testId": {
|
|
4190
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4191
|
+
"type": "string",
|
|
4192
|
+
"minLength": 1
|
|
4193
|
+
},
|
|
4194
|
+
"css": {
|
|
4195
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4196
|
+
"type": "string",
|
|
4197
|
+
"minLength": 1
|
|
4198
|
+
},
|
|
4199
|
+
"hasText": {
|
|
4200
|
+
"description": "Only elements containing this text, with css.",
|
|
4201
|
+
"anyOf": [
|
|
4202
|
+
{
|
|
4203
|
+
"type": "string",
|
|
4204
|
+
"minLength": 1
|
|
4205
|
+
},
|
|
4206
|
+
{
|
|
4207
|
+
"type": "object",
|
|
4208
|
+
"properties": {
|
|
4209
|
+
"regex": {
|
|
4210
|
+
"type": "string",
|
|
4211
|
+
"minLength": 1,
|
|
4212
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4213
|
+
},
|
|
4214
|
+
"flags": {
|
|
4215
|
+
"default": "",
|
|
4216
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4217
|
+
"type": "string",
|
|
4218
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4219
|
+
}
|
|
4220
|
+
},
|
|
4221
|
+
"required": [
|
|
4222
|
+
"regex"
|
|
4223
|
+
],
|
|
4224
|
+
"additionalProperties": false
|
|
4225
|
+
}
|
|
4226
|
+
]
|
|
4227
|
+
},
|
|
4228
|
+
"exact": {
|
|
4229
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
4230
|
+
"type": "boolean"
|
|
4231
|
+
},
|
|
4232
|
+
"nth": {
|
|
4233
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
4234
|
+
"type": "integer",
|
|
4235
|
+
"minimum": 0,
|
|
4236
|
+
"maximum": 9007199254740991
|
|
4237
|
+
}
|
|
4238
|
+
},
|
|
4239
|
+
"additionalProperties": false
|
|
4240
|
+
}
|
|
4241
|
+
},
|
|
4242
|
+
"required": [
|
|
4243
|
+
"do",
|
|
4244
|
+
"target"
|
|
4245
|
+
],
|
|
4246
|
+
"additionalProperties": false
|
|
3502
4247
|
}
|
|
3503
4248
|
]
|
|
3504
4249
|
}
|
|
3505
4250
|
},
|
|
3506
|
-
"crop": {
|
|
3507
|
-
"description": "Capture one element at a fixed aspect ratio (e.g. 4:3 around a chart) instead of the viewport: as wide as the element, from its top edge. Not with full or scrollTo.",
|
|
3508
|
-
"type": "object",
|
|
3509
|
-
"properties": {
|
|
3510
|
-
"target": {
|
|
3511
|
-
"description": "The element framed: exactly one match (nth picks one of several).",
|
|
4251
|
+
"crop": {
|
|
4252
|
+
"description": "Capture one element at a fixed aspect ratio (e.g. 4:3 around a chart) instead of the viewport: as wide as the element, from its top edge (or crop.top's). Not with full or scrollTo.",
|
|
4253
|
+
"type": "object",
|
|
4254
|
+
"properties": {
|
|
4255
|
+
"target": {
|
|
4256
|
+
"description": "The element framed: exactly one match (nth picks one of several).",
|
|
4257
|
+
"type": "object",
|
|
4258
|
+
"properties": {
|
|
4259
|
+
"role": {
|
|
4260
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4261
|
+
"type": "string",
|
|
4262
|
+
"enum": [
|
|
4263
|
+
"alert",
|
|
4264
|
+
"alertdialog",
|
|
4265
|
+
"application",
|
|
4266
|
+
"article",
|
|
4267
|
+
"banner",
|
|
4268
|
+
"blockquote",
|
|
4269
|
+
"button",
|
|
4270
|
+
"caption",
|
|
4271
|
+
"cell",
|
|
4272
|
+
"checkbox",
|
|
4273
|
+
"code",
|
|
4274
|
+
"columnheader",
|
|
4275
|
+
"combobox",
|
|
4276
|
+
"complementary",
|
|
4277
|
+
"contentinfo",
|
|
4278
|
+
"definition",
|
|
4279
|
+
"deletion",
|
|
4280
|
+
"dialog",
|
|
4281
|
+
"directory",
|
|
4282
|
+
"document",
|
|
4283
|
+
"emphasis",
|
|
4284
|
+
"feed",
|
|
4285
|
+
"figure",
|
|
4286
|
+
"form",
|
|
4287
|
+
"generic",
|
|
4288
|
+
"grid",
|
|
4289
|
+
"gridcell",
|
|
4290
|
+
"group",
|
|
4291
|
+
"heading",
|
|
4292
|
+
"img",
|
|
4293
|
+
"insertion",
|
|
4294
|
+
"link",
|
|
4295
|
+
"list",
|
|
4296
|
+
"listbox",
|
|
4297
|
+
"listitem",
|
|
4298
|
+
"log",
|
|
4299
|
+
"main",
|
|
4300
|
+
"marquee",
|
|
4301
|
+
"math",
|
|
4302
|
+
"meter",
|
|
4303
|
+
"menu",
|
|
4304
|
+
"menubar",
|
|
4305
|
+
"menuitem",
|
|
4306
|
+
"menuitemcheckbox",
|
|
4307
|
+
"menuitemradio",
|
|
4308
|
+
"navigation",
|
|
4309
|
+
"none",
|
|
4310
|
+
"note",
|
|
4311
|
+
"option",
|
|
4312
|
+
"paragraph",
|
|
4313
|
+
"presentation",
|
|
4314
|
+
"progressbar",
|
|
4315
|
+
"radio",
|
|
4316
|
+
"radiogroup",
|
|
4317
|
+
"region",
|
|
4318
|
+
"row",
|
|
4319
|
+
"rowgroup",
|
|
4320
|
+
"rowheader",
|
|
4321
|
+
"scrollbar",
|
|
4322
|
+
"search",
|
|
4323
|
+
"searchbox",
|
|
4324
|
+
"separator",
|
|
4325
|
+
"slider",
|
|
4326
|
+
"spinbutton",
|
|
4327
|
+
"status",
|
|
4328
|
+
"strong",
|
|
4329
|
+
"subscript",
|
|
4330
|
+
"superscript",
|
|
4331
|
+
"switch",
|
|
4332
|
+
"tab",
|
|
4333
|
+
"table",
|
|
4334
|
+
"tablist",
|
|
4335
|
+
"tabpanel",
|
|
4336
|
+
"term",
|
|
4337
|
+
"textbox",
|
|
4338
|
+
"time",
|
|
4339
|
+
"timer",
|
|
4340
|
+
"toolbar",
|
|
4341
|
+
"tooltip",
|
|
4342
|
+
"tree",
|
|
4343
|
+
"treegrid",
|
|
4344
|
+
"treeitem"
|
|
4345
|
+
]
|
|
4346
|
+
},
|
|
4347
|
+
"name": {
|
|
4348
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4349
|
+
"anyOf": [
|
|
4350
|
+
{
|
|
4351
|
+
"type": "string",
|
|
4352
|
+
"minLength": 1
|
|
4353
|
+
},
|
|
4354
|
+
{
|
|
4355
|
+
"type": "object",
|
|
4356
|
+
"properties": {
|
|
4357
|
+
"regex": {
|
|
4358
|
+
"type": "string",
|
|
4359
|
+
"minLength": 1,
|
|
4360
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4361
|
+
},
|
|
4362
|
+
"flags": {
|
|
4363
|
+
"default": "",
|
|
4364
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4365
|
+
"type": "string",
|
|
4366
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4367
|
+
}
|
|
4368
|
+
},
|
|
4369
|
+
"required": [
|
|
4370
|
+
"regex"
|
|
4371
|
+
],
|
|
4372
|
+
"additionalProperties": false
|
|
4373
|
+
}
|
|
4374
|
+
]
|
|
4375
|
+
},
|
|
4376
|
+
"text": {
|
|
4377
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4378
|
+
"anyOf": [
|
|
4379
|
+
{
|
|
4380
|
+
"type": "string",
|
|
4381
|
+
"minLength": 1
|
|
4382
|
+
},
|
|
4383
|
+
{
|
|
4384
|
+
"type": "object",
|
|
4385
|
+
"properties": {
|
|
4386
|
+
"regex": {
|
|
4387
|
+
"type": "string",
|
|
4388
|
+
"minLength": 1,
|
|
4389
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4390
|
+
},
|
|
4391
|
+
"flags": {
|
|
4392
|
+
"default": "",
|
|
4393
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4394
|
+
"type": "string",
|
|
4395
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4396
|
+
}
|
|
4397
|
+
},
|
|
4398
|
+
"required": [
|
|
4399
|
+
"regex"
|
|
4400
|
+
],
|
|
4401
|
+
"additionalProperties": false
|
|
4402
|
+
}
|
|
4403
|
+
]
|
|
4404
|
+
},
|
|
4405
|
+
"label": {
|
|
4406
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4407
|
+
"anyOf": [
|
|
4408
|
+
{
|
|
4409
|
+
"type": "string",
|
|
4410
|
+
"minLength": 1
|
|
4411
|
+
},
|
|
4412
|
+
{
|
|
4413
|
+
"type": "object",
|
|
4414
|
+
"properties": {
|
|
4415
|
+
"regex": {
|
|
4416
|
+
"type": "string",
|
|
4417
|
+
"minLength": 1,
|
|
4418
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4419
|
+
},
|
|
4420
|
+
"flags": {
|
|
4421
|
+
"default": "",
|
|
4422
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4423
|
+
"type": "string",
|
|
4424
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4425
|
+
}
|
|
4426
|
+
},
|
|
4427
|
+
"required": [
|
|
4428
|
+
"regex"
|
|
4429
|
+
],
|
|
4430
|
+
"additionalProperties": false
|
|
4431
|
+
}
|
|
4432
|
+
]
|
|
4433
|
+
},
|
|
4434
|
+
"testId": {
|
|
4435
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4436
|
+
"type": "string",
|
|
4437
|
+
"minLength": 1
|
|
4438
|
+
},
|
|
4439
|
+
"css": {
|
|
4440
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4441
|
+
"type": "string",
|
|
4442
|
+
"minLength": 1
|
|
4443
|
+
},
|
|
4444
|
+
"hasText": {
|
|
4445
|
+
"description": "Only elements containing this text, with css.",
|
|
4446
|
+
"anyOf": [
|
|
4447
|
+
{
|
|
4448
|
+
"type": "string",
|
|
4449
|
+
"minLength": 1
|
|
4450
|
+
},
|
|
4451
|
+
{
|
|
4452
|
+
"type": "object",
|
|
4453
|
+
"properties": {
|
|
4454
|
+
"regex": {
|
|
4455
|
+
"type": "string",
|
|
4456
|
+
"minLength": 1,
|
|
4457
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4458
|
+
},
|
|
4459
|
+
"flags": {
|
|
4460
|
+
"default": "",
|
|
4461
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4462
|
+
"type": "string",
|
|
4463
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4464
|
+
}
|
|
4465
|
+
},
|
|
4466
|
+
"required": [
|
|
4467
|
+
"regex"
|
|
4468
|
+
],
|
|
4469
|
+
"additionalProperties": false
|
|
4470
|
+
}
|
|
4471
|
+
]
|
|
4472
|
+
},
|
|
4473
|
+
"exact": {
|
|
4474
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
4475
|
+
"type": "boolean"
|
|
4476
|
+
},
|
|
4477
|
+
"nth": {
|
|
4478
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
4479
|
+
"type": "integer",
|
|
4480
|
+
"minimum": 0,
|
|
4481
|
+
"maximum": 9007199254740991
|
|
4482
|
+
}
|
|
4483
|
+
},
|
|
4484
|
+
"additionalProperties": false
|
|
4485
|
+
},
|
|
4486
|
+
"top": {
|
|
4487
|
+
"description": "An element inside target whose top edge starts the frame instead of target's (e.g. a row of a card); exactly one match. The width stays target's.",
|
|
4488
|
+
"type": "object",
|
|
4489
|
+
"properties": {
|
|
4490
|
+
"role": {
|
|
4491
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4492
|
+
"type": "string",
|
|
4493
|
+
"enum": [
|
|
4494
|
+
"alert",
|
|
4495
|
+
"alertdialog",
|
|
4496
|
+
"application",
|
|
4497
|
+
"article",
|
|
4498
|
+
"banner",
|
|
4499
|
+
"blockquote",
|
|
4500
|
+
"button",
|
|
4501
|
+
"caption",
|
|
4502
|
+
"cell",
|
|
4503
|
+
"checkbox",
|
|
4504
|
+
"code",
|
|
4505
|
+
"columnheader",
|
|
4506
|
+
"combobox",
|
|
4507
|
+
"complementary",
|
|
4508
|
+
"contentinfo",
|
|
4509
|
+
"definition",
|
|
4510
|
+
"deletion",
|
|
4511
|
+
"dialog",
|
|
4512
|
+
"directory",
|
|
4513
|
+
"document",
|
|
4514
|
+
"emphasis",
|
|
4515
|
+
"feed",
|
|
4516
|
+
"figure",
|
|
4517
|
+
"form",
|
|
4518
|
+
"generic",
|
|
4519
|
+
"grid",
|
|
4520
|
+
"gridcell",
|
|
4521
|
+
"group",
|
|
4522
|
+
"heading",
|
|
4523
|
+
"img",
|
|
4524
|
+
"insertion",
|
|
4525
|
+
"link",
|
|
4526
|
+
"list",
|
|
4527
|
+
"listbox",
|
|
4528
|
+
"listitem",
|
|
4529
|
+
"log",
|
|
4530
|
+
"main",
|
|
4531
|
+
"marquee",
|
|
4532
|
+
"math",
|
|
4533
|
+
"meter",
|
|
4534
|
+
"menu",
|
|
4535
|
+
"menubar",
|
|
4536
|
+
"menuitem",
|
|
4537
|
+
"menuitemcheckbox",
|
|
4538
|
+
"menuitemradio",
|
|
4539
|
+
"navigation",
|
|
4540
|
+
"none",
|
|
4541
|
+
"note",
|
|
4542
|
+
"option",
|
|
4543
|
+
"paragraph",
|
|
4544
|
+
"presentation",
|
|
4545
|
+
"progressbar",
|
|
4546
|
+
"radio",
|
|
4547
|
+
"radiogroup",
|
|
4548
|
+
"region",
|
|
4549
|
+
"row",
|
|
4550
|
+
"rowgroup",
|
|
4551
|
+
"rowheader",
|
|
4552
|
+
"scrollbar",
|
|
4553
|
+
"search",
|
|
4554
|
+
"searchbox",
|
|
4555
|
+
"separator",
|
|
4556
|
+
"slider",
|
|
4557
|
+
"spinbutton",
|
|
4558
|
+
"status",
|
|
4559
|
+
"strong",
|
|
4560
|
+
"subscript",
|
|
4561
|
+
"superscript",
|
|
4562
|
+
"switch",
|
|
4563
|
+
"tab",
|
|
4564
|
+
"table",
|
|
4565
|
+
"tablist",
|
|
4566
|
+
"tabpanel",
|
|
4567
|
+
"term",
|
|
4568
|
+
"textbox",
|
|
4569
|
+
"time",
|
|
4570
|
+
"timer",
|
|
4571
|
+
"toolbar",
|
|
4572
|
+
"tooltip",
|
|
4573
|
+
"tree",
|
|
4574
|
+
"treegrid",
|
|
4575
|
+
"treeitem"
|
|
4576
|
+
]
|
|
4577
|
+
},
|
|
4578
|
+
"name": {
|
|
4579
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4580
|
+
"anyOf": [
|
|
4581
|
+
{
|
|
4582
|
+
"type": "string",
|
|
4583
|
+
"minLength": 1
|
|
4584
|
+
},
|
|
4585
|
+
{
|
|
4586
|
+
"type": "object",
|
|
4587
|
+
"properties": {
|
|
4588
|
+
"regex": {
|
|
4589
|
+
"type": "string",
|
|
4590
|
+
"minLength": 1,
|
|
4591
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4592
|
+
},
|
|
4593
|
+
"flags": {
|
|
4594
|
+
"default": "",
|
|
4595
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4596
|
+
"type": "string",
|
|
4597
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4598
|
+
}
|
|
4599
|
+
},
|
|
4600
|
+
"required": [
|
|
4601
|
+
"regex"
|
|
4602
|
+
],
|
|
4603
|
+
"additionalProperties": false
|
|
4604
|
+
}
|
|
4605
|
+
]
|
|
4606
|
+
},
|
|
4607
|
+
"text": {
|
|
4608
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4609
|
+
"anyOf": [
|
|
4610
|
+
{
|
|
4611
|
+
"type": "string",
|
|
4612
|
+
"minLength": 1
|
|
4613
|
+
},
|
|
4614
|
+
{
|
|
4615
|
+
"type": "object",
|
|
4616
|
+
"properties": {
|
|
4617
|
+
"regex": {
|
|
4618
|
+
"type": "string",
|
|
4619
|
+
"minLength": 1,
|
|
4620
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4621
|
+
},
|
|
4622
|
+
"flags": {
|
|
4623
|
+
"default": "",
|
|
4624
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4625
|
+
"type": "string",
|
|
4626
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4627
|
+
}
|
|
4628
|
+
},
|
|
4629
|
+
"required": [
|
|
4630
|
+
"regex"
|
|
4631
|
+
],
|
|
4632
|
+
"additionalProperties": false
|
|
4633
|
+
}
|
|
4634
|
+
]
|
|
4635
|
+
},
|
|
4636
|
+
"label": {
|
|
4637
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4638
|
+
"anyOf": [
|
|
4639
|
+
{
|
|
4640
|
+
"type": "string",
|
|
4641
|
+
"minLength": 1
|
|
4642
|
+
},
|
|
4643
|
+
{
|
|
4644
|
+
"type": "object",
|
|
4645
|
+
"properties": {
|
|
4646
|
+
"regex": {
|
|
4647
|
+
"type": "string",
|
|
4648
|
+
"minLength": 1,
|
|
4649
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4650
|
+
},
|
|
4651
|
+
"flags": {
|
|
4652
|
+
"default": "",
|
|
4653
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4654
|
+
"type": "string",
|
|
4655
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4656
|
+
}
|
|
4657
|
+
},
|
|
4658
|
+
"required": [
|
|
4659
|
+
"regex"
|
|
4660
|
+
],
|
|
4661
|
+
"additionalProperties": false
|
|
4662
|
+
}
|
|
4663
|
+
]
|
|
4664
|
+
},
|
|
4665
|
+
"testId": {
|
|
4666
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4667
|
+
"type": "string",
|
|
4668
|
+
"minLength": 1
|
|
4669
|
+
},
|
|
4670
|
+
"css": {
|
|
4671
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4672
|
+
"type": "string",
|
|
4673
|
+
"minLength": 1
|
|
4674
|
+
},
|
|
4675
|
+
"hasText": {
|
|
4676
|
+
"description": "Only elements containing this text, with css.",
|
|
4677
|
+
"anyOf": [
|
|
4678
|
+
{
|
|
4679
|
+
"type": "string",
|
|
4680
|
+
"minLength": 1
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
"type": "object",
|
|
4684
|
+
"properties": {
|
|
4685
|
+
"regex": {
|
|
4686
|
+
"type": "string",
|
|
4687
|
+
"minLength": 1,
|
|
4688
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4689
|
+
},
|
|
4690
|
+
"flags": {
|
|
4691
|
+
"default": "",
|
|
4692
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4693
|
+
"type": "string",
|
|
4694
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4695
|
+
}
|
|
4696
|
+
},
|
|
4697
|
+
"required": [
|
|
4698
|
+
"regex"
|
|
4699
|
+
],
|
|
4700
|
+
"additionalProperties": false
|
|
4701
|
+
}
|
|
4702
|
+
]
|
|
4703
|
+
},
|
|
4704
|
+
"exact": {
|
|
4705
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
4706
|
+
"type": "boolean"
|
|
4707
|
+
},
|
|
4708
|
+
"nth": {
|
|
4709
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
4710
|
+
"type": "integer",
|
|
4711
|
+
"minimum": 0,
|
|
4712
|
+
"maximum": 9007199254740991
|
|
4713
|
+
}
|
|
4714
|
+
},
|
|
4715
|
+
"additionalProperties": false
|
|
4716
|
+
},
|
|
4717
|
+
"aspect": {
|
|
4718
|
+
"description": "The frame's width to height, e.g. 4:3: as wide as the element (plus padding), from its top edge down.",
|
|
4719
|
+
"type": "string",
|
|
4720
|
+
"pattern": "^[1-9]\\d{0,3}:[1-9]\\d{0,3}$"
|
|
4721
|
+
},
|
|
4722
|
+
"padding": {
|
|
4723
|
+
"default": 0,
|
|
4724
|
+
"description": "CSS pixels of the page around the element on the left, right and top (0-200, default 0).",
|
|
4725
|
+
"type": "integer",
|
|
4726
|
+
"minimum": 0,
|
|
4727
|
+
"maximum": 200
|
|
4728
|
+
},
|
|
4729
|
+
"fill": {
|
|
4730
|
+
"default": false,
|
|
4731
|
+
"description": "Stretches a target shorter than the frame down to the frame's bottom edge and centres its content vertically, so no page shows below it (default false). Not with top.",
|
|
4732
|
+
"type": "boolean"
|
|
4733
|
+
}
|
|
4734
|
+
},
|
|
4735
|
+
"required": [
|
|
4736
|
+
"target",
|
|
4737
|
+
"aspect"
|
|
4738
|
+
],
|
|
4739
|
+
"additionalProperties": false
|
|
4740
|
+
},
|
|
4741
|
+
"hide": {
|
|
4742
|
+
"default": [],
|
|
4743
|
+
"description": "CSS selectors hidden in this entry's shots only, on top of app.hideSelectors (a print state: hint buttons, disclosure arrows); the shot is refused when one still shows an element in the frame.",
|
|
4744
|
+
"type": "array",
|
|
4745
|
+
"items": {
|
|
4746
|
+
"type": "string",
|
|
4747
|
+
"pattern": "^(?!.*\\/\\*)[^{};<>\\\\]+$"
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
},
|
|
4751
|
+
"required": [
|
|
4752
|
+
"id",
|
|
4753
|
+
"path",
|
|
4754
|
+
"width",
|
|
4755
|
+
"height",
|
|
4756
|
+
"expect"
|
|
4757
|
+
],
|
|
4758
|
+
"additionalProperties": false
|
|
4759
|
+
}
|
|
4760
|
+
},
|
|
4761
|
+
"signIn": {
|
|
4762
|
+
"description": "How softure-marketing shots signs in for the screenshots with signedIn: true, and the optional command that prepares the account.",
|
|
4763
|
+
"type": "object",
|
|
4764
|
+
"properties": {
|
|
4765
|
+
"prepare": {
|
|
4766
|
+
"description": "A command (arguments, no shell, run in the folder of marketing.json once the app answers, with MARKETING_BASE_URL set) that creates and seeds the account; its last line of output is a JSON object of strings or numbers, read as {data:key}. Its output is not printed.",
|
|
4767
|
+
"minItems": 1,
|
|
4768
|
+
"type": "array",
|
|
4769
|
+
"items": {
|
|
4770
|
+
"type": "string",
|
|
4771
|
+
"minLength": 1
|
|
4772
|
+
}
|
|
4773
|
+
},
|
|
4774
|
+
"path": {
|
|
4775
|
+
"type": "string",
|
|
4776
|
+
"format": "starts_with",
|
|
4777
|
+
"pattern": "^\\/.*",
|
|
4778
|
+
"description": "The sign-in page, e.g. /login."
|
|
4779
|
+
},
|
|
4780
|
+
"steps": {
|
|
4781
|
+
"minItems": 1,
|
|
4782
|
+
"type": "array",
|
|
4783
|
+
"items": {
|
|
4784
|
+
"oneOf": [
|
|
4785
|
+
{
|
|
4786
|
+
"type": "object",
|
|
4787
|
+
"properties": {
|
|
4788
|
+
"do": {
|
|
4789
|
+
"type": "string",
|
|
4790
|
+
"const": "fill",
|
|
4791
|
+
"description": "Replaces the value of an input, e.g. the e-mail of the sign-in form."
|
|
4792
|
+
},
|
|
4793
|
+
"target": {
|
|
4794
|
+
"description": "The element, as a locator descriptor with exactly one of role, text, label, testId, css.",
|
|
4795
|
+
"type": "object",
|
|
4796
|
+
"properties": {
|
|
4797
|
+
"role": {
|
|
4798
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4799
|
+
"type": "string",
|
|
4800
|
+
"enum": [
|
|
4801
|
+
"alert",
|
|
4802
|
+
"alertdialog",
|
|
4803
|
+
"application",
|
|
4804
|
+
"article",
|
|
4805
|
+
"banner",
|
|
4806
|
+
"blockquote",
|
|
4807
|
+
"button",
|
|
4808
|
+
"caption",
|
|
4809
|
+
"cell",
|
|
4810
|
+
"checkbox",
|
|
4811
|
+
"code",
|
|
4812
|
+
"columnheader",
|
|
4813
|
+
"combobox",
|
|
4814
|
+
"complementary",
|
|
4815
|
+
"contentinfo",
|
|
4816
|
+
"definition",
|
|
4817
|
+
"deletion",
|
|
4818
|
+
"dialog",
|
|
4819
|
+
"directory",
|
|
4820
|
+
"document",
|
|
4821
|
+
"emphasis",
|
|
4822
|
+
"feed",
|
|
4823
|
+
"figure",
|
|
4824
|
+
"form",
|
|
4825
|
+
"generic",
|
|
4826
|
+
"grid",
|
|
4827
|
+
"gridcell",
|
|
4828
|
+
"group",
|
|
4829
|
+
"heading",
|
|
4830
|
+
"img",
|
|
4831
|
+
"insertion",
|
|
4832
|
+
"link",
|
|
4833
|
+
"list",
|
|
4834
|
+
"listbox",
|
|
4835
|
+
"listitem",
|
|
4836
|
+
"log",
|
|
4837
|
+
"main",
|
|
4838
|
+
"marquee",
|
|
4839
|
+
"math",
|
|
4840
|
+
"meter",
|
|
4841
|
+
"menu",
|
|
4842
|
+
"menubar",
|
|
4843
|
+
"menuitem",
|
|
4844
|
+
"menuitemcheckbox",
|
|
4845
|
+
"menuitemradio",
|
|
4846
|
+
"navigation",
|
|
4847
|
+
"none",
|
|
4848
|
+
"note",
|
|
4849
|
+
"option",
|
|
4850
|
+
"paragraph",
|
|
4851
|
+
"presentation",
|
|
4852
|
+
"progressbar",
|
|
4853
|
+
"radio",
|
|
4854
|
+
"radiogroup",
|
|
4855
|
+
"region",
|
|
4856
|
+
"row",
|
|
4857
|
+
"rowgroup",
|
|
4858
|
+
"rowheader",
|
|
4859
|
+
"scrollbar",
|
|
4860
|
+
"search",
|
|
4861
|
+
"searchbox",
|
|
4862
|
+
"separator",
|
|
4863
|
+
"slider",
|
|
4864
|
+
"spinbutton",
|
|
4865
|
+
"status",
|
|
4866
|
+
"strong",
|
|
4867
|
+
"subscript",
|
|
4868
|
+
"superscript",
|
|
4869
|
+
"switch",
|
|
4870
|
+
"tab",
|
|
4871
|
+
"table",
|
|
4872
|
+
"tablist",
|
|
4873
|
+
"tabpanel",
|
|
4874
|
+
"term",
|
|
4875
|
+
"textbox",
|
|
4876
|
+
"time",
|
|
4877
|
+
"timer",
|
|
4878
|
+
"toolbar",
|
|
4879
|
+
"tooltip",
|
|
4880
|
+
"tree",
|
|
4881
|
+
"treegrid",
|
|
4882
|
+
"treeitem"
|
|
4883
|
+
]
|
|
4884
|
+
},
|
|
4885
|
+
"name": {
|
|
4886
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4887
|
+
"anyOf": [
|
|
4888
|
+
{
|
|
4889
|
+
"type": "string",
|
|
4890
|
+
"minLength": 1
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
"type": "object",
|
|
4894
|
+
"properties": {
|
|
4895
|
+
"regex": {
|
|
4896
|
+
"type": "string",
|
|
4897
|
+
"minLength": 1,
|
|
4898
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4899
|
+
},
|
|
4900
|
+
"flags": {
|
|
4901
|
+
"default": "",
|
|
4902
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4903
|
+
"type": "string",
|
|
4904
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4907
|
+
"required": [
|
|
4908
|
+
"regex"
|
|
4909
|
+
],
|
|
4910
|
+
"additionalProperties": false
|
|
4911
|
+
}
|
|
4912
|
+
]
|
|
4913
|
+
},
|
|
4914
|
+
"text": {
|
|
4915
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4916
|
+
"anyOf": [
|
|
4917
|
+
{
|
|
4918
|
+
"type": "string",
|
|
4919
|
+
"minLength": 1
|
|
4920
|
+
},
|
|
4921
|
+
{
|
|
4922
|
+
"type": "object",
|
|
4923
|
+
"properties": {
|
|
4924
|
+
"regex": {
|
|
4925
|
+
"type": "string",
|
|
4926
|
+
"minLength": 1,
|
|
4927
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4928
|
+
},
|
|
4929
|
+
"flags": {
|
|
4930
|
+
"default": "",
|
|
4931
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4932
|
+
"type": "string",
|
|
4933
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4934
|
+
}
|
|
4935
|
+
},
|
|
4936
|
+
"required": [
|
|
4937
|
+
"regex"
|
|
4938
|
+
],
|
|
4939
|
+
"additionalProperties": false
|
|
4940
|
+
}
|
|
4941
|
+
]
|
|
4942
|
+
},
|
|
4943
|
+
"label": {
|
|
4944
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4945
|
+
"anyOf": [
|
|
4946
|
+
{
|
|
4947
|
+
"type": "string",
|
|
4948
|
+
"minLength": 1
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
"type": "object",
|
|
4952
|
+
"properties": {
|
|
4953
|
+
"regex": {
|
|
4954
|
+
"type": "string",
|
|
4955
|
+
"minLength": 1,
|
|
4956
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4957
|
+
},
|
|
4958
|
+
"flags": {
|
|
4959
|
+
"default": "",
|
|
4960
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4961
|
+
"type": "string",
|
|
4962
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4963
|
+
}
|
|
4964
|
+
},
|
|
4965
|
+
"required": [
|
|
4966
|
+
"regex"
|
|
4967
|
+
],
|
|
4968
|
+
"additionalProperties": false
|
|
4969
|
+
}
|
|
4970
|
+
]
|
|
4971
|
+
},
|
|
4972
|
+
"testId": {
|
|
4973
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4974
|
+
"type": "string",
|
|
4975
|
+
"minLength": 1
|
|
4976
|
+
},
|
|
4977
|
+
"css": {
|
|
4978
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4979
|
+
"type": "string",
|
|
4980
|
+
"minLength": 1
|
|
4981
|
+
},
|
|
4982
|
+
"hasText": {
|
|
4983
|
+
"description": "Only elements containing this text, with css.",
|
|
4984
|
+
"anyOf": [
|
|
4985
|
+
{
|
|
4986
|
+
"type": "string",
|
|
4987
|
+
"minLength": 1
|
|
4988
|
+
},
|
|
4989
|
+
{
|
|
4990
|
+
"type": "object",
|
|
4991
|
+
"properties": {
|
|
4992
|
+
"regex": {
|
|
4993
|
+
"type": "string",
|
|
4994
|
+
"minLength": 1,
|
|
4995
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4996
|
+
},
|
|
4997
|
+
"flags": {
|
|
4998
|
+
"default": "",
|
|
4999
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5000
|
+
"type": "string",
|
|
5001
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5002
|
+
}
|
|
5003
|
+
},
|
|
5004
|
+
"required": [
|
|
5005
|
+
"regex"
|
|
5006
|
+
],
|
|
5007
|
+
"additionalProperties": false
|
|
5008
|
+
}
|
|
5009
|
+
]
|
|
5010
|
+
},
|
|
5011
|
+
"exact": {
|
|
5012
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
5013
|
+
"type": "boolean"
|
|
5014
|
+
},
|
|
5015
|
+
"nth": {
|
|
5016
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
5017
|
+
"type": "integer",
|
|
5018
|
+
"minimum": 0,
|
|
5019
|
+
"maximum": 9007199254740991
|
|
5020
|
+
}
|
|
5021
|
+
},
|
|
5022
|
+
"additionalProperties": false
|
|
5023
|
+
},
|
|
5024
|
+
"value": {
|
|
5025
|
+
"type": "string",
|
|
5026
|
+
"description": "The value; {env:NAME} and {data:key} are replaced. Never printed, so a password may go here as {env:NAME}."
|
|
5027
|
+
}
|
|
5028
|
+
},
|
|
5029
|
+
"required": [
|
|
5030
|
+
"do",
|
|
5031
|
+
"target",
|
|
5032
|
+
"value"
|
|
5033
|
+
],
|
|
5034
|
+
"additionalProperties": false
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
3512
5037
|
"type": "object",
|
|
3513
5038
|
"properties": {
|
|
3514
|
-
"
|
|
3515
|
-
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
5039
|
+
"do": {
|
|
3516
5040
|
"type": "string",
|
|
3517
|
-
"
|
|
3518
|
-
|
|
3519
|
-
"alertdialog",
|
|
3520
|
-
"application",
|
|
3521
|
-
"article",
|
|
3522
|
-
"banner",
|
|
3523
|
-
"blockquote",
|
|
3524
|
-
"button",
|
|
3525
|
-
"caption",
|
|
3526
|
-
"cell",
|
|
3527
|
-
"checkbox",
|
|
3528
|
-
"code",
|
|
3529
|
-
"columnheader",
|
|
3530
|
-
"combobox",
|
|
3531
|
-
"complementary",
|
|
3532
|
-
"contentinfo",
|
|
3533
|
-
"definition",
|
|
3534
|
-
"deletion",
|
|
3535
|
-
"dialog",
|
|
3536
|
-
"directory",
|
|
3537
|
-
"document",
|
|
3538
|
-
"emphasis",
|
|
3539
|
-
"feed",
|
|
3540
|
-
"figure",
|
|
3541
|
-
"form",
|
|
3542
|
-
"generic",
|
|
3543
|
-
"grid",
|
|
3544
|
-
"gridcell",
|
|
3545
|
-
"group",
|
|
3546
|
-
"heading",
|
|
3547
|
-
"img",
|
|
3548
|
-
"insertion",
|
|
3549
|
-
"link",
|
|
3550
|
-
"list",
|
|
3551
|
-
"listbox",
|
|
3552
|
-
"listitem",
|
|
3553
|
-
"log",
|
|
3554
|
-
"main",
|
|
3555
|
-
"marquee",
|
|
3556
|
-
"math",
|
|
3557
|
-
"meter",
|
|
3558
|
-
"menu",
|
|
3559
|
-
"menubar",
|
|
3560
|
-
"menuitem",
|
|
3561
|
-
"menuitemcheckbox",
|
|
3562
|
-
"menuitemradio",
|
|
3563
|
-
"navigation",
|
|
3564
|
-
"none",
|
|
3565
|
-
"note",
|
|
3566
|
-
"option",
|
|
3567
|
-
"paragraph",
|
|
3568
|
-
"presentation",
|
|
3569
|
-
"progressbar",
|
|
3570
|
-
"radio",
|
|
3571
|
-
"radiogroup",
|
|
3572
|
-
"region",
|
|
3573
|
-
"row",
|
|
3574
|
-
"rowgroup",
|
|
3575
|
-
"rowheader",
|
|
3576
|
-
"scrollbar",
|
|
3577
|
-
"search",
|
|
3578
|
-
"searchbox",
|
|
3579
|
-
"separator",
|
|
3580
|
-
"slider",
|
|
3581
|
-
"spinbutton",
|
|
3582
|
-
"status",
|
|
3583
|
-
"strong",
|
|
3584
|
-
"subscript",
|
|
3585
|
-
"superscript",
|
|
3586
|
-
"switch",
|
|
3587
|
-
"tab",
|
|
3588
|
-
"table",
|
|
3589
|
-
"tablist",
|
|
3590
|
-
"tabpanel",
|
|
3591
|
-
"term",
|
|
3592
|
-
"textbox",
|
|
3593
|
-
"time",
|
|
3594
|
-
"timer",
|
|
3595
|
-
"toolbar",
|
|
3596
|
-
"tooltip",
|
|
3597
|
-
"tree",
|
|
3598
|
-
"treegrid",
|
|
3599
|
-
"treeitem"
|
|
3600
|
-
]
|
|
5041
|
+
"const": "click",
|
|
5042
|
+
"description": "Clicks the element, e.g. the submit button or a collapsed section's summary."
|
|
3601
5043
|
},
|
|
3602
|
-
"
|
|
3603
|
-
"description": "The
|
|
3604
|
-
"
|
|
3605
|
-
|
|
5044
|
+
"target": {
|
|
5045
|
+
"description": "The element, as a locator descriptor with exactly one of role, text, label, testId, css.",
|
|
5046
|
+
"type": "object",
|
|
5047
|
+
"properties": {
|
|
5048
|
+
"role": {
|
|
5049
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
5050
|
+
"type": "string",
|
|
5051
|
+
"enum": [
|
|
5052
|
+
"alert",
|
|
5053
|
+
"alertdialog",
|
|
5054
|
+
"application",
|
|
5055
|
+
"article",
|
|
5056
|
+
"banner",
|
|
5057
|
+
"blockquote",
|
|
5058
|
+
"button",
|
|
5059
|
+
"caption",
|
|
5060
|
+
"cell",
|
|
5061
|
+
"checkbox",
|
|
5062
|
+
"code",
|
|
5063
|
+
"columnheader",
|
|
5064
|
+
"combobox",
|
|
5065
|
+
"complementary",
|
|
5066
|
+
"contentinfo",
|
|
5067
|
+
"definition",
|
|
5068
|
+
"deletion",
|
|
5069
|
+
"dialog",
|
|
5070
|
+
"directory",
|
|
5071
|
+
"document",
|
|
5072
|
+
"emphasis",
|
|
5073
|
+
"feed",
|
|
5074
|
+
"figure",
|
|
5075
|
+
"form",
|
|
5076
|
+
"generic",
|
|
5077
|
+
"grid",
|
|
5078
|
+
"gridcell",
|
|
5079
|
+
"group",
|
|
5080
|
+
"heading",
|
|
5081
|
+
"img",
|
|
5082
|
+
"insertion",
|
|
5083
|
+
"link",
|
|
5084
|
+
"list",
|
|
5085
|
+
"listbox",
|
|
5086
|
+
"listitem",
|
|
5087
|
+
"log",
|
|
5088
|
+
"main",
|
|
5089
|
+
"marquee",
|
|
5090
|
+
"math",
|
|
5091
|
+
"meter",
|
|
5092
|
+
"menu",
|
|
5093
|
+
"menubar",
|
|
5094
|
+
"menuitem",
|
|
5095
|
+
"menuitemcheckbox",
|
|
5096
|
+
"menuitemradio",
|
|
5097
|
+
"navigation",
|
|
5098
|
+
"none",
|
|
5099
|
+
"note",
|
|
5100
|
+
"option",
|
|
5101
|
+
"paragraph",
|
|
5102
|
+
"presentation",
|
|
5103
|
+
"progressbar",
|
|
5104
|
+
"radio",
|
|
5105
|
+
"radiogroup",
|
|
5106
|
+
"region",
|
|
5107
|
+
"row",
|
|
5108
|
+
"rowgroup",
|
|
5109
|
+
"rowheader",
|
|
5110
|
+
"scrollbar",
|
|
5111
|
+
"search",
|
|
5112
|
+
"searchbox",
|
|
5113
|
+
"separator",
|
|
5114
|
+
"slider",
|
|
5115
|
+
"spinbutton",
|
|
5116
|
+
"status",
|
|
5117
|
+
"strong",
|
|
5118
|
+
"subscript",
|
|
5119
|
+
"superscript",
|
|
5120
|
+
"switch",
|
|
5121
|
+
"tab",
|
|
5122
|
+
"table",
|
|
5123
|
+
"tablist",
|
|
5124
|
+
"tabpanel",
|
|
5125
|
+
"term",
|
|
5126
|
+
"textbox",
|
|
5127
|
+
"time",
|
|
5128
|
+
"timer",
|
|
5129
|
+
"toolbar",
|
|
5130
|
+
"tooltip",
|
|
5131
|
+
"tree",
|
|
5132
|
+
"treegrid",
|
|
5133
|
+
"treeitem"
|
|
5134
|
+
]
|
|
5135
|
+
},
|
|
5136
|
+
"name": {
|
|
5137
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
5138
|
+
"anyOf": [
|
|
5139
|
+
{
|
|
5140
|
+
"type": "string",
|
|
5141
|
+
"minLength": 1
|
|
5142
|
+
},
|
|
5143
|
+
{
|
|
5144
|
+
"type": "object",
|
|
5145
|
+
"properties": {
|
|
5146
|
+
"regex": {
|
|
5147
|
+
"type": "string",
|
|
5148
|
+
"minLength": 1,
|
|
5149
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5150
|
+
},
|
|
5151
|
+
"flags": {
|
|
5152
|
+
"default": "",
|
|
5153
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5154
|
+
"type": "string",
|
|
5155
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5156
|
+
}
|
|
5157
|
+
},
|
|
5158
|
+
"required": [
|
|
5159
|
+
"regex"
|
|
5160
|
+
],
|
|
5161
|
+
"additionalProperties": false
|
|
5162
|
+
}
|
|
5163
|
+
]
|
|
5164
|
+
},
|
|
5165
|
+
"text": {
|
|
5166
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
5167
|
+
"anyOf": [
|
|
5168
|
+
{
|
|
5169
|
+
"type": "string",
|
|
5170
|
+
"minLength": 1
|
|
5171
|
+
},
|
|
5172
|
+
{
|
|
5173
|
+
"type": "object",
|
|
5174
|
+
"properties": {
|
|
5175
|
+
"regex": {
|
|
5176
|
+
"type": "string",
|
|
5177
|
+
"minLength": 1,
|
|
5178
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5179
|
+
},
|
|
5180
|
+
"flags": {
|
|
5181
|
+
"default": "",
|
|
5182
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5183
|
+
"type": "string",
|
|
5184
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
"required": [
|
|
5188
|
+
"regex"
|
|
5189
|
+
],
|
|
5190
|
+
"additionalProperties": false
|
|
5191
|
+
}
|
|
5192
|
+
]
|
|
5193
|
+
},
|
|
5194
|
+
"label": {
|
|
5195
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
5196
|
+
"anyOf": [
|
|
5197
|
+
{
|
|
5198
|
+
"type": "string",
|
|
5199
|
+
"minLength": 1
|
|
5200
|
+
},
|
|
5201
|
+
{
|
|
5202
|
+
"type": "object",
|
|
5203
|
+
"properties": {
|
|
5204
|
+
"regex": {
|
|
5205
|
+
"type": "string",
|
|
5206
|
+
"minLength": 1,
|
|
5207
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5208
|
+
},
|
|
5209
|
+
"flags": {
|
|
5210
|
+
"default": "",
|
|
5211
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5212
|
+
"type": "string",
|
|
5213
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5214
|
+
}
|
|
5215
|
+
},
|
|
5216
|
+
"required": [
|
|
5217
|
+
"regex"
|
|
5218
|
+
],
|
|
5219
|
+
"additionalProperties": false
|
|
5220
|
+
}
|
|
5221
|
+
]
|
|
5222
|
+
},
|
|
5223
|
+
"testId": {
|
|
5224
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3606
5225
|
"type": "string",
|
|
3607
5226
|
"minLength": 1
|
|
3608
5227
|
},
|
|
3609
|
-
{
|
|
3610
|
-
"
|
|
3611
|
-
"
|
|
3612
|
-
|
|
5228
|
+
"css": {
|
|
5229
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
5230
|
+
"type": "string",
|
|
5231
|
+
"minLength": 1
|
|
5232
|
+
},
|
|
5233
|
+
"hasText": {
|
|
5234
|
+
"description": "Only elements containing this text, with css.",
|
|
5235
|
+
"anyOf": [
|
|
5236
|
+
{
|
|
3613
5237
|
"type": "string",
|
|
3614
|
-
"minLength": 1
|
|
3615
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
5238
|
+
"minLength": 1
|
|
3616
5239
|
},
|
|
3617
|
-
|
|
3618
|
-
"
|
|
3619
|
-
"
|
|
3620
|
-
|
|
3621
|
-
|
|
5240
|
+
{
|
|
5241
|
+
"type": "object",
|
|
5242
|
+
"properties": {
|
|
5243
|
+
"regex": {
|
|
5244
|
+
"type": "string",
|
|
5245
|
+
"minLength": 1,
|
|
5246
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5247
|
+
},
|
|
5248
|
+
"flags": {
|
|
5249
|
+
"default": "",
|
|
5250
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5251
|
+
"type": "string",
|
|
5252
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5253
|
+
}
|
|
5254
|
+
},
|
|
5255
|
+
"required": [
|
|
5256
|
+
"regex"
|
|
5257
|
+
],
|
|
5258
|
+
"additionalProperties": false
|
|
3622
5259
|
}
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
"
|
|
5260
|
+
]
|
|
5261
|
+
},
|
|
5262
|
+
"exact": {
|
|
5263
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
5264
|
+
"type": "boolean"
|
|
5265
|
+
},
|
|
5266
|
+
"nth": {
|
|
5267
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
5268
|
+
"type": "integer",
|
|
5269
|
+
"minimum": 0,
|
|
5270
|
+
"maximum": 9007199254740991
|
|
3628
5271
|
}
|
|
3629
|
-
|
|
5272
|
+
},
|
|
5273
|
+
"additionalProperties": false
|
|
5274
|
+
}
|
|
5275
|
+
},
|
|
5276
|
+
"required": [
|
|
5277
|
+
"do",
|
|
5278
|
+
"target"
|
|
5279
|
+
],
|
|
5280
|
+
"additionalProperties": false
|
|
5281
|
+
},
|
|
5282
|
+
{
|
|
5283
|
+
"type": "object",
|
|
5284
|
+
"properties": {
|
|
5285
|
+
"do": {
|
|
5286
|
+
"type": "string",
|
|
5287
|
+
"const": "check",
|
|
5288
|
+
"description": "Ticks a checkbox or radio button, e.g. the terms of a sign-up form."
|
|
3630
5289
|
},
|
|
3631
|
-
"
|
|
3632
|
-
"description": "
|
|
3633
|
-
"
|
|
3634
|
-
|
|
5290
|
+
"target": {
|
|
5291
|
+
"description": "The element, as a locator descriptor with exactly one of role, text, label, testId, css.",
|
|
5292
|
+
"type": "object",
|
|
5293
|
+
"properties": {
|
|
5294
|
+
"role": {
|
|
5295
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
3635
5296
|
"type": "string",
|
|
3636
|
-
"
|
|
5297
|
+
"enum": [
|
|
5298
|
+
"alert",
|
|
5299
|
+
"alertdialog",
|
|
5300
|
+
"application",
|
|
5301
|
+
"article",
|
|
5302
|
+
"banner",
|
|
5303
|
+
"blockquote",
|
|
5304
|
+
"button",
|
|
5305
|
+
"caption",
|
|
5306
|
+
"cell",
|
|
5307
|
+
"checkbox",
|
|
5308
|
+
"code",
|
|
5309
|
+
"columnheader",
|
|
5310
|
+
"combobox",
|
|
5311
|
+
"complementary",
|
|
5312
|
+
"contentinfo",
|
|
5313
|
+
"definition",
|
|
5314
|
+
"deletion",
|
|
5315
|
+
"dialog",
|
|
5316
|
+
"directory",
|
|
5317
|
+
"document",
|
|
5318
|
+
"emphasis",
|
|
5319
|
+
"feed",
|
|
5320
|
+
"figure",
|
|
5321
|
+
"form",
|
|
5322
|
+
"generic",
|
|
5323
|
+
"grid",
|
|
5324
|
+
"gridcell",
|
|
5325
|
+
"group",
|
|
5326
|
+
"heading",
|
|
5327
|
+
"img",
|
|
5328
|
+
"insertion",
|
|
5329
|
+
"link",
|
|
5330
|
+
"list",
|
|
5331
|
+
"listbox",
|
|
5332
|
+
"listitem",
|
|
5333
|
+
"log",
|
|
5334
|
+
"main",
|
|
5335
|
+
"marquee",
|
|
5336
|
+
"math",
|
|
5337
|
+
"meter",
|
|
5338
|
+
"menu",
|
|
5339
|
+
"menubar",
|
|
5340
|
+
"menuitem",
|
|
5341
|
+
"menuitemcheckbox",
|
|
5342
|
+
"menuitemradio",
|
|
5343
|
+
"navigation",
|
|
5344
|
+
"none",
|
|
5345
|
+
"note",
|
|
5346
|
+
"option",
|
|
5347
|
+
"paragraph",
|
|
5348
|
+
"presentation",
|
|
5349
|
+
"progressbar",
|
|
5350
|
+
"radio",
|
|
5351
|
+
"radiogroup",
|
|
5352
|
+
"region",
|
|
5353
|
+
"row",
|
|
5354
|
+
"rowgroup",
|
|
5355
|
+
"rowheader",
|
|
5356
|
+
"scrollbar",
|
|
5357
|
+
"search",
|
|
5358
|
+
"searchbox",
|
|
5359
|
+
"separator",
|
|
5360
|
+
"slider",
|
|
5361
|
+
"spinbutton",
|
|
5362
|
+
"status",
|
|
5363
|
+
"strong",
|
|
5364
|
+
"subscript",
|
|
5365
|
+
"superscript",
|
|
5366
|
+
"switch",
|
|
5367
|
+
"tab",
|
|
5368
|
+
"table",
|
|
5369
|
+
"tablist",
|
|
5370
|
+
"tabpanel",
|
|
5371
|
+
"term",
|
|
5372
|
+
"textbox",
|
|
5373
|
+
"time",
|
|
5374
|
+
"timer",
|
|
5375
|
+
"toolbar",
|
|
5376
|
+
"tooltip",
|
|
5377
|
+
"tree",
|
|
5378
|
+
"treegrid",
|
|
5379
|
+
"treeitem"
|
|
5380
|
+
]
|
|
3637
5381
|
},
|
|
3638
|
-
{
|
|
3639
|
-
"
|
|
3640
|
-
"
|
|
3641
|
-
|
|
5382
|
+
"name": {
|
|
5383
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
5384
|
+
"anyOf": [
|
|
5385
|
+
{
|
|
3642
5386
|
"type": "string",
|
|
3643
|
-
"minLength": 1
|
|
3644
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
5387
|
+
"minLength": 1
|
|
3645
5388
|
},
|
|
3646
|
-
|
|
3647
|
-
"
|
|
3648
|
-
"
|
|
5389
|
+
{
|
|
5390
|
+
"type": "object",
|
|
5391
|
+
"properties": {
|
|
5392
|
+
"regex": {
|
|
5393
|
+
"type": "string",
|
|
5394
|
+
"minLength": 1,
|
|
5395
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5396
|
+
},
|
|
5397
|
+
"flags": {
|
|
5398
|
+
"default": "",
|
|
5399
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5400
|
+
"type": "string",
|
|
5401
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5402
|
+
}
|
|
5403
|
+
},
|
|
5404
|
+
"required": [
|
|
5405
|
+
"regex"
|
|
5406
|
+
],
|
|
5407
|
+
"additionalProperties": false
|
|
5408
|
+
}
|
|
5409
|
+
]
|
|
5410
|
+
},
|
|
5411
|
+
"text": {
|
|
5412
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
5413
|
+
"anyOf": [
|
|
5414
|
+
{
|
|
5415
|
+
"type": "string",
|
|
5416
|
+
"minLength": 1
|
|
5417
|
+
},
|
|
5418
|
+
{
|
|
5419
|
+
"type": "object",
|
|
5420
|
+
"properties": {
|
|
5421
|
+
"regex": {
|
|
5422
|
+
"type": "string",
|
|
5423
|
+
"minLength": 1,
|
|
5424
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5425
|
+
},
|
|
5426
|
+
"flags": {
|
|
5427
|
+
"default": "",
|
|
5428
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5429
|
+
"type": "string",
|
|
5430
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5431
|
+
}
|
|
5432
|
+
},
|
|
5433
|
+
"required": [
|
|
5434
|
+
"regex"
|
|
5435
|
+
],
|
|
5436
|
+
"additionalProperties": false
|
|
5437
|
+
}
|
|
5438
|
+
]
|
|
5439
|
+
},
|
|
5440
|
+
"label": {
|
|
5441
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
5442
|
+
"anyOf": [
|
|
5443
|
+
{
|
|
3649
5444
|
"type": "string",
|
|
3650
|
-
"
|
|
5445
|
+
"minLength": 1
|
|
5446
|
+
},
|
|
5447
|
+
{
|
|
5448
|
+
"type": "object",
|
|
5449
|
+
"properties": {
|
|
5450
|
+
"regex": {
|
|
5451
|
+
"type": "string",
|
|
5452
|
+
"minLength": 1,
|
|
5453
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5454
|
+
},
|
|
5455
|
+
"flags": {
|
|
5456
|
+
"default": "",
|
|
5457
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5458
|
+
"type": "string",
|
|
5459
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5460
|
+
}
|
|
5461
|
+
},
|
|
5462
|
+
"required": [
|
|
5463
|
+
"regex"
|
|
5464
|
+
],
|
|
5465
|
+
"additionalProperties": false
|
|
3651
5466
|
}
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
"additionalProperties": false
|
|
3657
|
-
}
|
|
3658
|
-
]
|
|
3659
|
-
},
|
|
3660
|
-
"label": {
|
|
3661
|
-
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
3662
|
-
"anyOf": [
|
|
3663
|
-
{
|
|
5467
|
+
]
|
|
5468
|
+
},
|
|
5469
|
+
"testId": {
|
|
5470
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3664
5471
|
"type": "string",
|
|
3665
5472
|
"minLength": 1
|
|
3666
5473
|
},
|
|
3667
|
-
{
|
|
3668
|
-
"
|
|
3669
|
-
"properties": {
|
|
3670
|
-
"regex": {
|
|
3671
|
-
"type": "string",
|
|
3672
|
-
"minLength": 1,
|
|
3673
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
3674
|
-
},
|
|
3675
|
-
"flags": {
|
|
3676
|
-
"default": "",
|
|
3677
|
-
"description": "Any of i, m, s, u, each at most once.",
|
|
3678
|
-
"type": "string",
|
|
3679
|
-
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3680
|
-
}
|
|
3681
|
-
},
|
|
3682
|
-
"required": [
|
|
3683
|
-
"regex"
|
|
3684
|
-
],
|
|
3685
|
-
"additionalProperties": false
|
|
3686
|
-
}
|
|
3687
|
-
]
|
|
3688
|
-
},
|
|
3689
|
-
"testId": {
|
|
3690
|
-
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3691
|
-
"type": "string",
|
|
3692
|
-
"minLength": 1
|
|
3693
|
-
},
|
|
3694
|
-
"css": {
|
|
3695
|
-
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3696
|
-
"type": "string",
|
|
3697
|
-
"minLength": 1
|
|
3698
|
-
},
|
|
3699
|
-
"hasText": {
|
|
3700
|
-
"description": "Only elements containing this text, with css.",
|
|
3701
|
-
"anyOf": [
|
|
3702
|
-
{
|
|
5474
|
+
"css": {
|
|
5475
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3703
5476
|
"type": "string",
|
|
3704
5477
|
"minLength": 1
|
|
3705
5478
|
},
|
|
3706
|
-
{
|
|
3707
|
-
"
|
|
3708
|
-
"
|
|
3709
|
-
|
|
5479
|
+
"hasText": {
|
|
5480
|
+
"description": "Only elements containing this text, with css.",
|
|
5481
|
+
"anyOf": [
|
|
5482
|
+
{
|
|
3710
5483
|
"type": "string",
|
|
3711
|
-
"minLength": 1
|
|
3712
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
5484
|
+
"minLength": 1
|
|
3713
5485
|
},
|
|
3714
|
-
|
|
3715
|
-
"
|
|
3716
|
-
"
|
|
3717
|
-
|
|
3718
|
-
|
|
5486
|
+
{
|
|
5487
|
+
"type": "object",
|
|
5488
|
+
"properties": {
|
|
5489
|
+
"regex": {
|
|
5490
|
+
"type": "string",
|
|
5491
|
+
"minLength": 1,
|
|
5492
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
5493
|
+
},
|
|
5494
|
+
"flags": {
|
|
5495
|
+
"default": "",
|
|
5496
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5497
|
+
"type": "string",
|
|
5498
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5499
|
+
}
|
|
5500
|
+
},
|
|
5501
|
+
"required": [
|
|
5502
|
+
"regex"
|
|
5503
|
+
],
|
|
5504
|
+
"additionalProperties": false
|
|
3719
5505
|
}
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
"
|
|
5506
|
+
]
|
|
5507
|
+
},
|
|
5508
|
+
"exact": {
|
|
5509
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
5510
|
+
"type": "boolean"
|
|
5511
|
+
},
|
|
5512
|
+
"nth": {
|
|
5513
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
5514
|
+
"type": "integer",
|
|
5515
|
+
"minimum": 0,
|
|
5516
|
+
"maximum": 9007199254740991
|
|
3725
5517
|
}
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
"exact": {
|
|
3729
|
-
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
3730
|
-
"type": "boolean"
|
|
3731
|
-
},
|
|
3732
|
-
"nth": {
|
|
3733
|
-
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
3734
|
-
"type": "integer",
|
|
3735
|
-
"minimum": 0,
|
|
3736
|
-
"maximum": 9007199254740991
|
|
5518
|
+
},
|
|
5519
|
+
"additionalProperties": false
|
|
3737
5520
|
}
|
|
3738
5521
|
},
|
|
5522
|
+
"required": [
|
|
5523
|
+
"do",
|
|
5524
|
+
"target"
|
|
5525
|
+
],
|
|
3739
5526
|
"additionalProperties": false
|
|
3740
5527
|
},
|
|
3741
|
-
|
|
3742
|
-
"
|
|
3743
|
-
"
|
|
3744
|
-
|
|
5528
|
+
{
|
|
5529
|
+
"type": "object",
|
|
5530
|
+
"properties": {
|
|
5531
|
+
"do": {
|
|
5532
|
+
"type": "string",
|
|
5533
|
+
"const": "press",
|
|
5534
|
+
"description": "Presses a key on the focused element, e.g. Enter."
|
|
5535
|
+
},
|
|
5536
|
+
"key": {
|
|
5537
|
+
"type": "string",
|
|
5538
|
+
"pattern": "^\\S+$",
|
|
5539
|
+
"description": "A Playwright key name; modifiers joined with +."
|
|
5540
|
+
}
|
|
5541
|
+
},
|
|
5542
|
+
"required": [
|
|
5543
|
+
"do",
|
|
5544
|
+
"key"
|
|
5545
|
+
],
|
|
5546
|
+
"additionalProperties": false
|
|
3745
5547
|
},
|
|
3746
|
-
"padding": {
|
|
3747
|
-
"default": 0,
|
|
3748
|
-
"description": "CSS pixels of the page around the element on the left, right and top (0-200, default 0).",
|
|
3749
|
-
"type": "integer",
|
|
3750
|
-
"minimum": 0,
|
|
3751
|
-
"maximum": 200
|
|
3752
|
-
}
|
|
3753
|
-
},
|
|
3754
|
-
"required": [
|
|
3755
|
-
"target",
|
|
3756
|
-
"aspect"
|
|
3757
|
-
],
|
|
3758
|
-
"additionalProperties": false
|
|
3759
|
-
}
|
|
3760
|
-
},
|
|
3761
|
-
"required": [
|
|
3762
|
-
"id",
|
|
3763
|
-
"path",
|
|
3764
|
-
"width",
|
|
3765
|
-
"height",
|
|
3766
|
-
"expect"
|
|
3767
|
-
],
|
|
3768
|
-
"additionalProperties": false
|
|
3769
|
-
}
|
|
3770
|
-
},
|
|
3771
|
-
"signIn": {
|
|
3772
|
-
"description": "How softure-marketing shots signs in for the screenshots with signedIn: true, and the optional command that prepares the account.",
|
|
3773
|
-
"type": "object",
|
|
3774
|
-
"properties": {
|
|
3775
|
-
"prepare": {
|
|
3776
|
-
"description": "A command (arguments, no shell, run in the folder of marketing.json once the app answers, with MARKETING_BASE_URL set) that creates and seeds the account; its last line of output is a JSON object of strings or numbers, read as {data:key}. Its output is not printed.",
|
|
3777
|
-
"minItems": 1,
|
|
3778
|
-
"type": "array",
|
|
3779
|
-
"items": {
|
|
3780
|
-
"type": "string",
|
|
3781
|
-
"minLength": 1
|
|
3782
|
-
}
|
|
3783
|
-
},
|
|
3784
|
-
"path": {
|
|
3785
|
-
"type": "string",
|
|
3786
|
-
"format": "starts_with",
|
|
3787
|
-
"pattern": "^\\/.*",
|
|
3788
|
-
"description": "The sign-in page, e.g. /login."
|
|
3789
|
-
},
|
|
3790
|
-
"steps": {
|
|
3791
|
-
"minItems": 1,
|
|
3792
|
-
"type": "array",
|
|
3793
|
-
"items": {
|
|
3794
|
-
"oneOf": [
|
|
3795
5548
|
{
|
|
3796
5549
|
"type": "object",
|
|
3797
5550
|
"properties": {
|
|
3798
5551
|
"do": {
|
|
3799
5552
|
"type": "string",
|
|
3800
|
-
"const": "
|
|
3801
|
-
"description": "
|
|
5553
|
+
"const": "open",
|
|
5554
|
+
"description": "Opens every matching <details> element (nth picks one), e.g. every disclosure of a card; fails when a match is not a <details> or does not stay open."
|
|
3802
5555
|
},
|
|
3803
5556
|
"target": {
|
|
3804
|
-
"description": "The
|
|
5557
|
+
"description": "The <details> elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is opened.",
|
|
3805
5558
|
"type": "object",
|
|
3806
5559
|
"properties": {
|
|
3807
5560
|
"role": {
|
|
@@ -4030,16 +5783,11 @@
|
|
|
4030
5783
|
}
|
|
4031
5784
|
},
|
|
4032
5785
|
"additionalProperties": false
|
|
4033
|
-
},
|
|
4034
|
-
"value": {
|
|
4035
|
-
"type": "string",
|
|
4036
|
-
"description": "The value; {env:NAME} and {data:key} are replaced. Never printed, so a password may go here as {env:NAME}."
|
|
4037
5786
|
}
|
|
4038
5787
|
},
|
|
4039
5788
|
"required": [
|
|
4040
5789
|
"do",
|
|
4041
|
-
"target"
|
|
4042
|
-
"value"
|
|
5790
|
+
"target"
|
|
4043
5791
|
],
|
|
4044
5792
|
"additionalProperties": false
|
|
4045
5793
|
},
|
|
@@ -4048,11 +5796,11 @@
|
|
|
4048
5796
|
"properties": {
|
|
4049
5797
|
"do": {
|
|
4050
5798
|
"type": "string",
|
|
4051
|
-
"const": "
|
|
4052
|
-
"description": "
|
|
5799
|
+
"const": "hide",
|
|
5800
|
+
"description": "Hides every match but the last keepLast (display: none), e.g. all but the last three columns of a horizontally scrolling chart."
|
|
4053
5801
|
},
|
|
4054
5802
|
"target": {
|
|
4055
|
-
"description": "The
|
|
5803
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match counts.",
|
|
4056
5804
|
"type": "object",
|
|
4057
5805
|
"properties": {
|
|
4058
5806
|
"role": {
|
|
@@ -4281,6 +6029,13 @@
|
|
|
4281
6029
|
}
|
|
4282
6030
|
},
|
|
4283
6031
|
"additionalProperties": false
|
|
6032
|
+
},
|
|
6033
|
+
"keepLast": {
|
|
6034
|
+
"default": 0,
|
|
6035
|
+
"description": "How many of the last matches stay shown (0-1000, default 0); the step fails when there are not more matches than this.",
|
|
6036
|
+
"type": "integer",
|
|
6037
|
+
"minimum": 0,
|
|
6038
|
+
"maximum": 1000
|
|
4284
6039
|
}
|
|
4285
6040
|
},
|
|
4286
6041
|
"required": [
|
|
@@ -4294,11 +6049,11 @@
|
|
|
4294
6049
|
"properties": {
|
|
4295
6050
|
"do": {
|
|
4296
6051
|
"type": "string",
|
|
4297
|
-
"const": "
|
|
4298
|
-
"description": "
|
|
6052
|
+
"const": "flatten",
|
|
6053
|
+
"description": "Removes the top border and top margin of every match, e.g. the line above the first row a print state still shows."
|
|
4299
6054
|
},
|
|
4300
6055
|
"target": {
|
|
4301
|
-
"description": "The
|
|
6056
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is flattened.",
|
|
4302
6057
|
"type": "object",
|
|
4303
6058
|
"properties": {
|
|
4304
6059
|
"role": {
|
|
@@ -4534,26 +6289,6 @@
|
|
|
4534
6289
|
"target"
|
|
4535
6290
|
],
|
|
4536
6291
|
"additionalProperties": false
|
|
4537
|
-
},
|
|
4538
|
-
{
|
|
4539
|
-
"type": "object",
|
|
4540
|
-
"properties": {
|
|
4541
|
-
"do": {
|
|
4542
|
-
"type": "string",
|
|
4543
|
-
"const": "press",
|
|
4544
|
-
"description": "Presses a key on the focused element, e.g. Enter."
|
|
4545
|
-
},
|
|
4546
|
-
"key": {
|
|
4547
|
-
"type": "string",
|
|
4548
|
-
"pattern": "^\\S+$",
|
|
4549
|
-
"description": "A Playwright key name; modifiers joined with +."
|
|
4550
|
-
}
|
|
4551
|
-
},
|
|
4552
|
-
"required": [
|
|
4553
|
-
"do",
|
|
4554
|
-
"key"
|
|
4555
|
-
],
|
|
4556
|
-
"additionalProperties": false
|
|
4557
6292
|
}
|
|
4558
6293
|
]
|
|
4559
6294
|
},
|