doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.5
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/package.json +1 -1
- package/.c8rc.json +0 -8
- package/.mocharc.yml +0 -1
- package/icon.png +0 -0
- package/scripts/check-coverage-ratchet.cjs +0 -123
- package/scripts/createCjsWrapper.js +0 -25
- package/scripts/generateTypes.cjs +0 -54
- package/src/detectTests.ts +0 -660
- package/src/index.ts +0 -3
- package/src/schemas/build/checkLink_v2.schema.json +0 -81
- package/src/schemas/build/checkLink_v3.schema.json +0 -92
- package/src/schemas/build/click_v3.schema.json +0 -145
- package/src/schemas/build/config_v2.schema.json +0 -1079
- package/src/schemas/build/config_v3.schema.json +0 -696
- package/src/schemas/build/context_v2.schema.json +0 -135
- package/src/schemas/build/context_v3.schema.json +0 -229
- package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
- package/src/schemas/build/find_v2.schema.json +0 -168
- package/src/schemas/build/find_v3.schema.json +0 -214
- package/src/schemas/build/goTo_v2.schema.json +0 -63
- package/src/schemas/build/goTo_v3.schema.json +0 -257
- package/src/schemas/build/httpRequest_v2.schema.json +0 -321
- package/src/schemas/build/httpRequest_v3.schema.json +0 -439
- package/src/schemas/build/loadCookie_v3.schema.json +0 -138
- package/src/schemas/build/loadVariables_v3.schema.json +0 -10
- package/src/schemas/build/moveTo_v2.schema.json +0 -99
- package/src/schemas/build/openApi_v2.schema.json +0 -76
- package/src/schemas/build/openApi_v3.schema.json +0 -161
- package/src/schemas/build/record_v3.schema.json +0 -70
- package/src/schemas/build/report_v3.schema.json +0 -53
- package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
- package/src/schemas/build/runCode_v2.schema.json +0 -201
- package/src/schemas/build/runCode_v3.schema.json +0 -138
- package/src/schemas/build/runShell_v2.schema.json +0 -189
- package/src/schemas/build/runShell_v3.schema.json +0 -156
- package/src/schemas/build/saveCookie_v3.schema.json +0 -149
- package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
- package/src/schemas/build/screenshot_v3.schema.json +0 -250
- package/src/schemas/build/setVariables_v2.schema.json +0 -39
- package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
- package/src/schemas/build/spec_v2.schema.json +0 -199
- package/src/schemas/build/spec_v3.schema.json +0 -213
- package/src/schemas/build/startRecording_v2.schema.json +0 -57
- package/src/schemas/build/step_v3.schema.json +0 -669
- package/src/schemas/build/stopRecord_v3.schema.json +0 -13
- package/src/schemas/build/stopRecording_v2.schema.json +0 -33
- package/src/schemas/build/test_v2.schema.json +0 -244
- package/src/schemas/build/test_v3.schema.json +0 -292
- package/src/schemas/build/typeKeys_v2.schema.json +0 -72
- package/src/schemas/build/type_v3.schema.json +0 -131
- package/src/schemas/build/wait_v2.schema.json +0 -42
- package/src/schemas/build/wait_v3.schema.json +0 -37
- package/src/schemas/dereferenceSchemas.cjs +0 -208
- package/src/schemas/index.ts +0 -6
- package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
- package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
- package/src/schemas/output_schemas/click_v1.schema.json +0 -60
- package/src/schemas/output_schemas/click_v3.schema.json +0 -252
- package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
- package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
- package/src/schemas/output_schemas/context_v2.schema.json +0 -134
- package/src/schemas/output_schemas/context_v3.schema.json +0 -374
- package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
- package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/find_v1.schema.json +0 -171
- package/src/schemas/output_schemas/find_v2.schema.json +0 -184
- package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
- package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
- package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
- package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
- package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
- package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
- package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
- package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
- package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
- package/src/schemas/output_schemas/record_v3.schema.json +0 -101
- package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
- package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
- package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
- package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
- package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
- package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
- package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
- package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
- package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
- package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
- package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
- package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
- package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
- package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
- package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
- package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
- package/src/schemas/output_schemas/type_v1.schema.json +0 -62
- package/src/schemas/output_schemas/type_v3.schema.json +0 -244
- package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
- package/src/schemas/schemas.json +0 -121331
- package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
- package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
- package/src/schemas/src_schemas/click_v1.schema.json +0 -60
- package/src/schemas/src_schemas/click_v3.schema.json +0 -144
- package/src/schemas/src_schemas/config_v2.schema.json +0 -929
- package/src/schemas/src_schemas/config_v3.schema.json +0 -633
- package/src/schemas/src_schemas/context_v2.schema.json +0 -108
- package/src/schemas/src_schemas/context_v3.schema.json +0 -202
- package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
- package/src/schemas/src_schemas/find_v1.schema.json +0 -137
- package/src/schemas/src_schemas/find_v2.schema.json +0 -155
- package/src/schemas/src_schemas/find_v3.schema.json +0 -210
- package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
- package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
- package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
- package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
- package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
- package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
- package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
- package/src/schemas/src_schemas/record_v3.schema.json +0 -69
- package/src/schemas/src_schemas/report_v3.schema.json +0 -52
- package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
- package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
- package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
- package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
- package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
- package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
- package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
- package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
- package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
- package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
- package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
- package/src/schemas/src_schemas/step_v3.schema.json +0 -632
- package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
- package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/src_schemas/test_v2.schema.json +0 -200
- package/src/schemas/src_schemas/test_v3.schema.json +0 -268
- package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
- package/src/schemas/src_schemas/type_v1.schema.json +0 -62
- package/src/schemas/src_schemas/type_v3.schema.json +0 -118
- package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
- package/src/types/generated/checkLink_v3.ts +0 -29
- package/src/types/generated/click_v3.ts +0 -17
- package/src/types/generated/config_v3.ts +0 -405
- package/src/types/generated/context_v3.ts +0 -112
- package/src/types/generated/dragAndDrop_v3.ts +0 -39
- package/src/types/generated/endRecord_v3.ts +0 -10
- package/src/types/generated/find_v3.ts +0 -17
- package/src/types/generated/goTo_v3.ts +0 -48
- package/src/types/generated/httpRequest_v3.ts +0 -17
- package/src/types/generated/loadCookie_v3.ts +0 -17
- package/src/types/generated/loadVariables_v3.ts +0 -10
- package/src/types/generated/openApi_v3.ts +0 -64
- package/src/types/generated/record_v3.ts +0 -34
- package/src/types/generated/report_v3.ts +0 -183
- package/src/types/generated/resolvedTests_v3.ts +0 -585
- package/src/types/generated/runCode_v3.ts +0 -59
- package/src/types/generated/runShell_v3.ts +0 -58
- package/src/types/generated/saveCookie_v3.ts +0 -17
- package/src/types/generated/screenshot_v3.ts +0 -76
- package/src/types/generated/sourceIntegration_v3.ts +0 -31
- package/src/types/generated/spec_v3.ts +0 -166
- package/src/types/generated/step_v3.ts +0 -1288
- package/src/types/generated/stopRecord_v3.ts +0 -10
- package/src/types/generated/test_v3.ts +0 -3048
- package/src/types/generated/type_v3.ts +0 -56
- package/src/types/generated/wait_v3.ts +0 -13
- package/src/validate.ts +0 -627
- package/tsconfig.json +0 -22
|
@@ -1,496 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "dragAndDrop",
|
|
4
|
-
"description": "Drag and drop an element from source to target.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"source",
|
|
8
|
-
"target"
|
|
9
|
-
],
|
|
10
|
-
"properties": {
|
|
11
|
-
"source": {
|
|
12
|
-
"description": "The element to drag.",
|
|
13
|
-
"anyOf": [
|
|
14
|
-
{
|
|
15
|
-
"title": "Element (simple)",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"title": "Element (detailed)",
|
|
21
|
-
"type": "object",
|
|
22
|
-
"anyOf": [
|
|
23
|
-
{
|
|
24
|
-
"required": [
|
|
25
|
-
"selector"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"required": [
|
|
30
|
-
"elementText"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"required": [
|
|
35
|
-
"elementId"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"required": [
|
|
40
|
-
"elementTestId"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"required": [
|
|
45
|
-
"elementClass"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"required": [
|
|
50
|
-
"elementAttribute"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"required": [
|
|
55
|
-
"elementAria"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"properties": {
|
|
60
|
-
"elementText": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
|
|
63
|
-
},
|
|
64
|
-
"selector": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
67
|
-
},
|
|
68
|
-
"elementId": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
71
|
-
},
|
|
72
|
-
"elementTestId": {
|
|
73
|
-
"type": "string",
|
|
74
|
-
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
75
|
-
},
|
|
76
|
-
"elementClass": {
|
|
77
|
-
"anyOf": [
|
|
78
|
-
{
|
|
79
|
-
"type": "string"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"type": "array",
|
|
83
|
-
"items": {
|
|
84
|
-
"type": "string"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"description": "Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes."
|
|
89
|
-
},
|
|
90
|
-
"elementAttribute": {
|
|
91
|
-
"type": "object",
|
|
92
|
-
"description": "Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.",
|
|
93
|
-
"additionalProperties": {
|
|
94
|
-
"anyOf": [
|
|
95
|
-
{
|
|
96
|
-
"type": "string"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"type": "number"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"type": "boolean"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"elementAria": {
|
|
108
|
-
"type": "string",
|
|
109
|
-
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
110
|
-
},
|
|
111
|
-
"timeout": {
|
|
112
|
-
"type": "integer",
|
|
113
|
-
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
114
|
-
"default": 5000
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
"target": {
|
|
121
|
-
"description": "The target location to drop the element.",
|
|
122
|
-
"anyOf": [
|
|
123
|
-
{
|
|
124
|
-
"title": "Element (simple)",
|
|
125
|
-
"type": "string",
|
|
126
|
-
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"title": "Element (detailed)",
|
|
130
|
-
"type": "object",
|
|
131
|
-
"anyOf": [
|
|
132
|
-
{
|
|
133
|
-
"required": [
|
|
134
|
-
"selector"
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"required": [
|
|
139
|
-
"elementText"
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"required": [
|
|
144
|
-
"elementId"
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"required": [
|
|
149
|
-
"elementTestId"
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"required": [
|
|
154
|
-
"elementClass"
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"required": [
|
|
159
|
-
"elementAttribute"
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"required": [
|
|
164
|
-
"elementAria"
|
|
165
|
-
]
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"properties": {
|
|
169
|
-
"elementText": {
|
|
170
|
-
"type": "string",
|
|
171
|
-
"description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
|
|
172
|
-
},
|
|
173
|
-
"selector": {
|
|
174
|
-
"type": "string",
|
|
175
|
-
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
176
|
-
},
|
|
177
|
-
"elementId": {
|
|
178
|
-
"type": "string",
|
|
179
|
-
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
180
|
-
},
|
|
181
|
-
"elementTestId": {
|
|
182
|
-
"type": "string",
|
|
183
|
-
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
184
|
-
},
|
|
185
|
-
"elementClass": {
|
|
186
|
-
"anyOf": [
|
|
187
|
-
{
|
|
188
|
-
"type": "string"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"type": "array",
|
|
192
|
-
"items": {
|
|
193
|
-
"type": "string"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"description": "Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes."
|
|
198
|
-
},
|
|
199
|
-
"elementAttribute": {
|
|
200
|
-
"type": "object",
|
|
201
|
-
"description": "Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.",
|
|
202
|
-
"additionalProperties": {
|
|
203
|
-
"anyOf": [
|
|
204
|
-
{
|
|
205
|
-
"type": "string"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"type": "number"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"type": "boolean"
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"elementAria": {
|
|
217
|
-
"type": "string",
|
|
218
|
-
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
219
|
-
},
|
|
220
|
-
"timeout": {
|
|
221
|
-
"type": "integer",
|
|
222
|
-
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
223
|
-
"default": 5000
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
},
|
|
229
|
-
"duration": {
|
|
230
|
-
"type": "integer",
|
|
231
|
-
"description": "Duration of the drag operation in milliseconds.",
|
|
232
|
-
"default": 1000,
|
|
233
|
-
"minimum": 0
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"components": {
|
|
237
|
-
"schemas": {
|
|
238
|
-
"elementSpecification": {
|
|
239
|
-
"anyOf": [
|
|
240
|
-
{
|
|
241
|
-
"title": "Element (simple)",
|
|
242
|
-
"type": "string",
|
|
243
|
-
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"title": "Element (detailed)",
|
|
247
|
-
"type": "object",
|
|
248
|
-
"anyOf": [
|
|
249
|
-
{
|
|
250
|
-
"required": [
|
|
251
|
-
"selector"
|
|
252
|
-
]
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"required": [
|
|
256
|
-
"elementText"
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"required": [
|
|
261
|
-
"elementId"
|
|
262
|
-
]
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"required": [
|
|
266
|
-
"elementTestId"
|
|
267
|
-
]
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"required": [
|
|
271
|
-
"elementClass"
|
|
272
|
-
]
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"required": [
|
|
276
|
-
"elementAttribute"
|
|
277
|
-
]
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"required": [
|
|
281
|
-
"elementAria"
|
|
282
|
-
]
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
"properties": {
|
|
286
|
-
"elementText": {
|
|
287
|
-
"type": "string",
|
|
288
|
-
"description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
|
|
289
|
-
},
|
|
290
|
-
"selector": {
|
|
291
|
-
"type": "string",
|
|
292
|
-
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
293
|
-
},
|
|
294
|
-
"elementId": {
|
|
295
|
-
"type": "string",
|
|
296
|
-
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
297
|
-
},
|
|
298
|
-
"elementTestId": {
|
|
299
|
-
"type": "string",
|
|
300
|
-
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
301
|
-
},
|
|
302
|
-
"elementClass": {
|
|
303
|
-
"anyOf": [
|
|
304
|
-
{
|
|
305
|
-
"type": "string"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"type": "array",
|
|
309
|
-
"items": {
|
|
310
|
-
"type": "string"
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
],
|
|
314
|
-
"description": "Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes."
|
|
315
|
-
},
|
|
316
|
-
"elementAttribute": {
|
|
317
|
-
"type": "object",
|
|
318
|
-
"description": "Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.",
|
|
319
|
-
"additionalProperties": {
|
|
320
|
-
"anyOf": [
|
|
321
|
-
{
|
|
322
|
-
"type": "string"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"type": "number"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"type": "boolean"
|
|
329
|
-
}
|
|
330
|
-
]
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
"elementAria": {
|
|
334
|
-
"type": "string",
|
|
335
|
-
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
336
|
-
},
|
|
337
|
-
"timeout": {
|
|
338
|
-
"type": "integer",
|
|
339
|
-
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
340
|
-
"default": 5000
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
]
|
|
345
|
-
},
|
|
346
|
-
"string": {
|
|
347
|
-
"title": "Element (simple)",
|
|
348
|
-
"type": "string",
|
|
349
|
-
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
350
|
-
},
|
|
351
|
-
"object": {
|
|
352
|
-
"title": "Element (detailed)",
|
|
353
|
-
"type": "object",
|
|
354
|
-
"anyOf": [
|
|
355
|
-
{
|
|
356
|
-
"required": [
|
|
357
|
-
"selector"
|
|
358
|
-
]
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"required": [
|
|
362
|
-
"elementText"
|
|
363
|
-
]
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"required": [
|
|
367
|
-
"elementId"
|
|
368
|
-
]
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"required": [
|
|
372
|
-
"elementTestId"
|
|
373
|
-
]
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
"required": [
|
|
377
|
-
"elementClass"
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"required": [
|
|
382
|
-
"elementAttribute"
|
|
383
|
-
]
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"required": [
|
|
387
|
-
"elementAria"
|
|
388
|
-
]
|
|
389
|
-
}
|
|
390
|
-
],
|
|
391
|
-
"properties": {
|
|
392
|
-
"elementText": {
|
|
393
|
-
"type": "string",
|
|
394
|
-
"description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
|
|
395
|
-
},
|
|
396
|
-
"selector": {
|
|
397
|
-
"type": "string",
|
|
398
|
-
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
399
|
-
},
|
|
400
|
-
"elementId": {
|
|
401
|
-
"type": "string",
|
|
402
|
-
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
403
|
-
},
|
|
404
|
-
"elementTestId": {
|
|
405
|
-
"type": "string",
|
|
406
|
-
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
407
|
-
},
|
|
408
|
-
"elementClass": {
|
|
409
|
-
"anyOf": [
|
|
410
|
-
{
|
|
411
|
-
"type": "string"
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
"type": "array",
|
|
415
|
-
"items": {
|
|
416
|
-
"type": "string"
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
],
|
|
420
|
-
"description": "Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes."
|
|
421
|
-
},
|
|
422
|
-
"elementAttribute": {
|
|
423
|
-
"type": "object",
|
|
424
|
-
"description": "Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.",
|
|
425
|
-
"additionalProperties": {
|
|
426
|
-
"anyOf": [
|
|
427
|
-
{
|
|
428
|
-
"type": "string"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"type": "number"
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"type": "boolean"
|
|
435
|
-
}
|
|
436
|
-
]
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
"elementAria": {
|
|
440
|
-
"type": "string",
|
|
441
|
-
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
442
|
-
},
|
|
443
|
-
"timeout": {
|
|
444
|
-
"type": "integer",
|
|
445
|
-
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
446
|
-
"default": 5000
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
"examples": [
|
|
453
|
-
{
|
|
454
|
-
"source": "Table",
|
|
455
|
-
"target": "#canvas"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"source": ".draggable-block",
|
|
459
|
-
"target": ".drop-zone",
|
|
460
|
-
"duration": 2000
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"source": {
|
|
464
|
-
"selector": ".widget",
|
|
465
|
-
"elementText": "Data Table"
|
|
466
|
-
},
|
|
467
|
-
"target": {
|
|
468
|
-
"selector": "#design-canvas"
|
|
469
|
-
},
|
|
470
|
-
"duration": 500
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"source": {
|
|
474
|
-
"selector": ".draggable",
|
|
475
|
-
"timeout": 10000
|
|
476
|
-
},
|
|
477
|
-
"target": {
|
|
478
|
-
"elementText": "Drop Zone",
|
|
479
|
-
"timeout": 5000
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"source": "/Widget Item.*/",
|
|
484
|
-
"target": "#canvas"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
"source": {
|
|
488
|
-
"selector": ".draggable",
|
|
489
|
-
"elementText": "/Button [0-9]+/"
|
|
490
|
-
},
|
|
491
|
-
"target": {
|
|
492
|
-
"elementText": "/Drop Zone.*/"
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
]
|
|
496
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "find",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Check if an element exists with the specified CSS selector.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "find"
|
|
9
|
-
},
|
|
10
|
-
"css": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "CSS selector that uniquely identified the element."
|
|
13
|
-
},
|
|
14
|
-
"wait": {
|
|
15
|
-
"type": "object",
|
|
16
|
-
"description": "Pause before performing the next action.",
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"properties": {
|
|
19
|
-
"duration": {
|
|
20
|
-
"type": "number",
|
|
21
|
-
"description": "Seconds to wait. If `css` is set, the maximum duration to wait for the element to become available.",
|
|
22
|
-
"default": 10000
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"matchText": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"description": "Check if an element displays the expected text.",
|
|
29
|
-
"additionalProperties": false,
|
|
30
|
-
"properties": {
|
|
31
|
-
"text": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"description": "Text that the element should display."
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"required": [
|
|
37
|
-
"text"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"moveMouse": {
|
|
41
|
-
"type": "object",
|
|
42
|
-
"description": "Move the mouse to an element specified by a CSS selector. Only runs if a test is being recorded.",
|
|
43
|
-
"additionalProperties": false,
|
|
44
|
-
"properties": {
|
|
45
|
-
"alignH": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"description": "Horizontal alignment of the mouse to the element.",
|
|
48
|
-
"enum": [
|
|
49
|
-
"left",
|
|
50
|
-
"center",
|
|
51
|
-
"right"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
"alignV": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"description": "Vertical alignment of the mouse to the element.",
|
|
57
|
-
"enum": [
|
|
58
|
-
"left",
|
|
59
|
-
"center",
|
|
60
|
-
"right"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"offsetX": {
|
|
64
|
-
"type": "integer",
|
|
65
|
-
"description": "Number of pixels to offset the mouse along the X axis, relative to the element center. Positive values offset to the right. Negative values offset to the left."
|
|
66
|
-
},
|
|
67
|
-
"offsetY": {
|
|
68
|
-
"type": "integer",
|
|
69
|
-
"description": "Number of pixels to offset the mouse along the Y axis, relative to the element center. Positive values offset to the top. Negative values offset to the bottom."
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"click": {
|
|
74
|
-
"type": "object",
|
|
75
|
-
"description": "Click an element specified by a CSS selector.",
|
|
76
|
-
"additionalProperties": false,
|
|
77
|
-
"properties": {
|
|
78
|
-
"alignH": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"description": "Horizontal alignment of the mouse to the element.",
|
|
81
|
-
"enum": [
|
|
82
|
-
"left",
|
|
83
|
-
"center",
|
|
84
|
-
"right"
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
"alignV": {
|
|
88
|
-
"type": "string",
|
|
89
|
-
"description": "Vertical alignment of the mouse to the element.",
|
|
90
|
-
"enum": [
|
|
91
|
-
"left",
|
|
92
|
-
"center",
|
|
93
|
-
"right"
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"offsetX": {
|
|
97
|
-
"type": "integer",
|
|
98
|
-
"description": "Number of pixels to offset the mouse along the X axis, relative to the element center. Positive values offset to the right. Negative values offset to the left."
|
|
99
|
-
},
|
|
100
|
-
"offsetY": {
|
|
101
|
-
"type": "integer",
|
|
102
|
-
"description": "Number of pixels to offset the mouse along the Y axis, relative to the element center. Positive values offset to the top. Negative values offset to the bottom."
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"type": {
|
|
107
|
-
"type": "object",
|
|
108
|
-
"description": "Click an element specified by a CSS selector.",
|
|
109
|
-
"additionalProperties": false,
|
|
110
|
-
"anyOf": [
|
|
111
|
-
{
|
|
112
|
-
"required": [
|
|
113
|
-
"keys"
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"required": [
|
|
118
|
-
"trailingSpecialKey"
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"properties": {
|
|
123
|
-
"keys": {
|
|
124
|
-
"type": "string",
|
|
125
|
-
"description": "String of keys to enter."
|
|
126
|
-
},
|
|
127
|
-
"trailingSpecialKey": {
|
|
128
|
-
"type": "string",
|
|
129
|
-
"description": "Special key pressed after the 'keys' value, if present. Supported values: https://github.com/puppeteer/puppeteer/blob/main/src/common/USKeyboardLayout.ts"
|
|
130
|
-
},
|
|
131
|
-
"env": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"description": "Path to a `.env` file to load before performing the action."
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"required": [
|
|
139
|
-
"action",
|
|
140
|
-
"css"
|
|
141
|
-
],
|
|
142
|
-
"additionalProperties": false,
|
|
143
|
-
"examples": [
|
|
144
|
-
{
|
|
145
|
-
"action": "find",
|
|
146
|
-
"css": "[title=Search]"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"action": "find",
|
|
150
|
-
"css": "[title=Search]",
|
|
151
|
-
"wait": {
|
|
152
|
-
"duration": 10000
|
|
153
|
-
},
|
|
154
|
-
"matchText": {
|
|
155
|
-
"text": "Search"
|
|
156
|
-
},
|
|
157
|
-
"moveMouse": {
|
|
158
|
-
"alignH": "center",
|
|
159
|
-
"alignV": "center",
|
|
160
|
-
"offsetX": 0,
|
|
161
|
-
"offsetY": 0
|
|
162
|
-
},
|
|
163
|
-
"click": {},
|
|
164
|
-
"type": {
|
|
165
|
-
"keys": "$SHORTHAIR_CAT_SEARCH",
|
|
166
|
-
"trailingSpecialKey": "Enter",
|
|
167
|
-
"env": "./sample/variables.env"
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}
|