doc-detective-common 3.4.1-dev.1 → 3.4.1-dev.3
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/dist/schemas/click_v3.schema.json +142 -6
- package/dist/schemas/config_v3.schema.json +2146 -66
- package/dist/schemas/find_v3.schema.json +626 -20
- package/dist/schemas/report_v3.schema.json +2139 -59
- package/dist/schemas/resolvedTests_v3.schema.json +4304 -144
- package/dist/schemas/screenshot_v3.schema.json +204 -0
- package/dist/schemas/spec_v3.schema.json +2139 -59
- package/dist/schemas/step_v3.schema.json +1075 -35
- package/dist/schemas/test_v3.schema.json +2139 -59
- package/dist/schemas/type_v3.schema.json +94 -0
- package/package.json +1 -1
- package/src/resolvePaths.js +5 -0
- package/src/schemas/build/click_v3.schema.json +71 -3
- package/src/schemas/build/find_v3.schema.json +77 -4
- package/src/schemas/build/screenshot_v3.schema.json +68 -0
- package/src/schemas/build/type_v3.schema.json +47 -0
- package/src/schemas/output_schemas/click_v3.schema.json +142 -6
- package/src/schemas/output_schemas/config_v3.schema.json +2146 -66
- package/src/schemas/output_schemas/find_v3.schema.json +626 -20
- package/src/schemas/output_schemas/report_v3.schema.json +2139 -59
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +4304 -144
- package/src/schemas/output_schemas/screenshot_v3.schema.json +204 -0
- package/src/schemas/output_schemas/spec_v3.schema.json +2139 -59
- package/src/schemas/output_schemas/step_v3.schema.json +1075 -35
- package/src/schemas/output_schemas/test_v3.schema.json +2139 -59
- package/src/schemas/output_schemas/type_v3.schema.json +94 -0
- package/src/schemas/schemas.json +14926 -366
- package/src/schemas/src_schemas/click_v3.schema.json +71 -3
- package/src/schemas/src_schemas/find_v3.schema.json +77 -4
- package/src/schemas/src_schemas/screenshot_v3.schema.json +68 -0
- package/src/schemas/src_schemas/type_v3.schema.json +47 -0
|
@@ -53,6 +53,53 @@
|
|
|
53
53
|
"selector": {
|
|
54
54
|
"type": "string",
|
|
55
55
|
"description": "Selector for the element to type into. If not specified, the typing occurs in the active element."
|
|
56
|
+
},
|
|
57
|
+
"elementText": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Display text of the element to type into. If combined with other element finding fields, the element must match all specified criteria."
|
|
60
|
+
},
|
|
61
|
+
"elementId": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
64
|
+
},
|
|
65
|
+
"elementTestId": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
68
|
+
},
|
|
69
|
+
"elementClass": {
|
|
70
|
+
"oneOf": [
|
|
71
|
+
{
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"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."
|
|
82
|
+
},
|
|
83
|
+
"elementAttribute": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"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.",
|
|
86
|
+
"additionalProperties": {
|
|
87
|
+
"oneOf": [
|
|
88
|
+
{
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "number"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"elementAria": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
56
103
|
}
|
|
57
104
|
},
|
|
58
105
|
"required": [
|
|
@@ -113,6 +160,53 @@
|
|
|
113
160
|
"selector": {
|
|
114
161
|
"type": "string",
|
|
115
162
|
"description": "Selector for the element to type into. If not specified, the typing occurs in the active element."
|
|
163
|
+
},
|
|
164
|
+
"elementText": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "Display text of the element to type into. If combined with other element finding fields, the element must match all specified criteria."
|
|
167
|
+
},
|
|
168
|
+
"elementId": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
171
|
+
},
|
|
172
|
+
"elementTestId": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
175
|
+
},
|
|
176
|
+
"elementClass": {
|
|
177
|
+
"oneOf": [
|
|
178
|
+
{
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"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."
|
|
189
|
+
},
|
|
190
|
+
"elementAttribute": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"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.",
|
|
193
|
+
"additionalProperties": {
|
|
194
|
+
"oneOf": [
|
|
195
|
+
{
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "number"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "boolean"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"elementAria": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
116
210
|
}
|
|
117
211
|
},
|
|
118
212
|
"required": [
|
package/package.json
CHANGED
package/src/resolvePaths.js
CHANGED
|
@@ -140,6 +140,11 @@ async function resolvePaths({
|
|
|
140
140
|
pathProperties = specPaths;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
// If the object is null or empty, return it as is
|
|
144
|
+
if (object === null || Object.keys(object).length === 0) {
|
|
145
|
+
return object;
|
|
146
|
+
}
|
|
147
|
+
|
|
143
148
|
for (const property of Object.keys(object)) {
|
|
144
149
|
// If the property is an array, recursively call resolvePaths for each item in the array
|
|
145
150
|
if (Array.isArray(object[property])) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"string": {
|
|
19
19
|
"title": "Click element (simple)",
|
|
20
20
|
"type": "string",
|
|
21
|
-
"description": "
|
|
21
|
+
"description": "Identifier for the element to click. Can be a selector, element text, ARIA name, ID, or test ID."
|
|
22
22
|
},
|
|
23
23
|
"button": {
|
|
24
24
|
"description": "Kind of click to perform.",
|
|
@@ -42,6 +42,31 @@
|
|
|
42
42
|
"required": [
|
|
43
43
|
"elementText"
|
|
44
44
|
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"required": [
|
|
48
|
+
"elementId"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"required": [
|
|
53
|
+
"elementTestId"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"required": [
|
|
58
|
+
"elementClass"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"required": [
|
|
63
|
+
"elementAttribute"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"required": [
|
|
68
|
+
"elementAria"
|
|
69
|
+
]
|
|
45
70
|
}
|
|
46
71
|
],
|
|
47
72
|
"properties": {
|
|
@@ -50,11 +75,54 @@
|
|
|
50
75
|
},
|
|
51
76
|
"elementText": {
|
|
52
77
|
"type": "string",
|
|
53
|
-
"description": "Display text of the element to click. If combined with
|
|
78
|
+
"description": "Display text of the element to click. If combined with other element finding fields, the element must match all specified criteria."
|
|
54
79
|
},
|
|
55
80
|
"selector": {
|
|
56
81
|
"type": "string",
|
|
57
|
-
"description": "Selector of the element to click. If combined with
|
|
82
|
+
"description": "Selector of the element to click. If combined with other element finding fields, the element must match all specified criteria."
|
|
83
|
+
},
|
|
84
|
+
"elementId": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "ID attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
|
|
87
|
+
},
|
|
88
|
+
"elementTestId": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "data-testid attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
|
|
91
|
+
},
|
|
92
|
+
"elementClass": {
|
|
93
|
+
"oneOf": [
|
|
94
|
+
{
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"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."
|
|
105
|
+
},
|
|
106
|
+
"elementAttribute": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"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.",
|
|
109
|
+
"additionalProperties": {
|
|
110
|
+
"oneOf": [
|
|
111
|
+
{
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "number"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "boolean"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"elementAria": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
58
126
|
}
|
|
59
127
|
}
|
|
60
128
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"string": {
|
|
16
16
|
"title": "Find element (simple)",
|
|
17
17
|
"type": "string",
|
|
18
|
-
"description": "
|
|
18
|
+
"description": "Identifier for the element to find. Can be a selector, element text, ARIA name, ID, or test ID."
|
|
19
19
|
},
|
|
20
20
|
"object": {
|
|
21
21
|
"title": "Find element (detailed)",
|
|
@@ -30,17 +30,85 @@
|
|
|
30
30
|
"required": [
|
|
31
31
|
"elementText"
|
|
32
32
|
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"required": [
|
|
36
|
+
"elementId"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"required": [
|
|
41
|
+
"elementTestId"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"required": [
|
|
46
|
+
"elementClass"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"required": [
|
|
51
|
+
"elementAttribute"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"required": [
|
|
56
|
+
"elementAria"
|
|
57
|
+
]
|
|
33
58
|
}
|
|
34
59
|
],
|
|
35
60
|
"additionalProperties": false,
|
|
36
61
|
"properties": {
|
|
37
62
|
"elementText": {
|
|
38
63
|
"type": "string",
|
|
39
|
-
"description": "Display text of the element to find. If combined with
|
|
64
|
+
"description": "Display text of the element to find. If combined with other element finding fields, the element must match all specified criteria."
|
|
40
65
|
},
|
|
41
66
|
"selector": {
|
|
42
67
|
"type": "string",
|
|
43
|
-
"description": "Selector of the element to find. If combined with
|
|
68
|
+
"description": "Selector of the element to find. If combined with other element finding fields, the element must match all specified criteria."
|
|
69
|
+
},
|
|
70
|
+
"elementId": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
73
|
+
},
|
|
74
|
+
"elementTestId": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
77
|
+
},
|
|
78
|
+
"elementClass": {
|
|
79
|
+
"oneOf": [
|
|
80
|
+
{
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"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."
|
|
91
|
+
},
|
|
92
|
+
"elementAttribute": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"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.",
|
|
95
|
+
"additionalProperties": {
|
|
96
|
+
"oneOf": [
|
|
97
|
+
{
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "number"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"elementAria": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
44
112
|
},
|
|
45
113
|
"timeout": {
|
|
46
114
|
"type": "integer",
|
|
@@ -80,7 +148,12 @@
|
|
|
80
148
|
"type": "object",
|
|
81
149
|
"required": [
|
|
82
150
|
"selector",
|
|
83
|
-
"elementText"
|
|
151
|
+
"elementText",
|
|
152
|
+
"elementId",
|
|
153
|
+
"elementTestId",
|
|
154
|
+
"elementClass",
|
|
155
|
+
"elementAttribute",
|
|
156
|
+
"elementAria"
|
|
84
157
|
],
|
|
85
158
|
"title": "Find element and type"
|
|
86
159
|
}
|
|
@@ -87,6 +87,31 @@
|
|
|
87
87
|
"required": [
|
|
88
88
|
"elementText"
|
|
89
89
|
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"required": [
|
|
93
|
+
"elementId"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"required": [
|
|
98
|
+
"elementTestId"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"required": [
|
|
103
|
+
"elementClass"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"required": [
|
|
108
|
+
"elementAttribute"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"required": [
|
|
113
|
+
"elementAria"
|
|
114
|
+
]
|
|
90
115
|
}
|
|
91
116
|
],
|
|
92
117
|
"properties": {
|
|
@@ -98,6 +123,49 @@
|
|
|
98
123
|
"type": "string",
|
|
99
124
|
"description": "Selector of the element to screenshot."
|
|
100
125
|
},
|
|
126
|
+
"elementId": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
129
|
+
},
|
|
130
|
+
"elementTestId": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
133
|
+
},
|
|
134
|
+
"elementClass": {
|
|
135
|
+
"oneOf": [
|
|
136
|
+
{
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"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."
|
|
147
|
+
},
|
|
148
|
+
"elementAttribute": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"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.",
|
|
151
|
+
"additionalProperties": {
|
|
152
|
+
"oneOf": [
|
|
153
|
+
{
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "number"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "boolean"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"elementAria": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
168
|
+
},
|
|
101
169
|
"padding": {
|
|
102
170
|
"anyOf": [
|
|
103
171
|
{
|
|
@@ -46,6 +46,53 @@
|
|
|
46
46
|
"selector": {
|
|
47
47
|
"type": "string",
|
|
48
48
|
"description": "Selector for the element to type into. If not specified, the typing occurs in the active element."
|
|
49
|
+
},
|
|
50
|
+
"elementText": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Display text of the element to type into. If combined with other element finding fields, the element must match all specified criteria."
|
|
53
|
+
},
|
|
54
|
+
"elementId": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
57
|
+
},
|
|
58
|
+
"elementTestId": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
61
|
+
},
|
|
62
|
+
"elementClass": {
|
|
63
|
+
"oneOf": [
|
|
64
|
+
{
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"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."
|
|
75
|
+
},
|
|
76
|
+
"elementAttribute": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"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.",
|
|
79
|
+
"additionalProperties": {
|
|
80
|
+
"oneOf": [
|
|
81
|
+
{
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "number"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"elementAria": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
49
96
|
}
|
|
50
97
|
},
|
|
51
98
|
"required": [
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"title": "Click element (simple)",
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Identifier for the element to click. Can be a selector, element text, ARIA name, ID, or test ID."
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"title": "Click element (detailed)",
|
|
@@ -21,6 +21,31 @@
|
|
|
21
21
|
"required": [
|
|
22
22
|
"elementText"
|
|
23
23
|
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"required": [
|
|
27
|
+
"elementId"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"required": [
|
|
32
|
+
"elementTestId"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"required": [
|
|
37
|
+
"elementClass"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"required": [
|
|
42
|
+
"elementAttribute"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"required": [
|
|
47
|
+
"elementAria"
|
|
48
|
+
]
|
|
24
49
|
}
|
|
25
50
|
],
|
|
26
51
|
"properties": {
|
|
@@ -35,11 +60,54 @@
|
|
|
35
60
|
},
|
|
36
61
|
"elementText": {
|
|
37
62
|
"type": "string",
|
|
38
|
-
"description": "Display text of the element to click. If combined with
|
|
63
|
+
"description": "Display text of the element to click. If combined with other element finding fields, the element must match all specified criteria."
|
|
39
64
|
},
|
|
40
65
|
"selector": {
|
|
41
66
|
"type": "string",
|
|
42
|
-
"description": "Selector of the element to click. If combined with
|
|
67
|
+
"description": "Selector of the element to click. If combined with other element finding fields, the element must match all specified criteria."
|
|
68
|
+
},
|
|
69
|
+
"elementId": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "ID attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
|
|
72
|
+
},
|
|
73
|
+
"elementTestId": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "data-testid attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
|
|
76
|
+
},
|
|
77
|
+
"elementClass": {
|
|
78
|
+
"oneOf": [
|
|
79
|
+
{
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"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."
|
|
90
|
+
},
|
|
91
|
+
"elementAttribute": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"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.",
|
|
94
|
+
"additionalProperties": {
|
|
95
|
+
"oneOf": [
|
|
96
|
+
{
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "number"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "boolean"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"elementAria": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
43
111
|
}
|
|
44
112
|
}
|
|
45
113
|
},
|
|
@@ -52,7 +120,7 @@
|
|
|
52
120
|
"string": {
|
|
53
121
|
"title": "Click element (simple)",
|
|
54
122
|
"type": "string",
|
|
55
|
-
"description": "
|
|
123
|
+
"description": "Identifier for the element to click. Can be a selector, element text, ARIA name, ID, or test ID."
|
|
56
124
|
},
|
|
57
125
|
"button": {
|
|
58
126
|
"description": "Kind of click to perform.",
|
|
@@ -76,6 +144,31 @@
|
|
|
76
144
|
"required": [
|
|
77
145
|
"elementText"
|
|
78
146
|
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"required": [
|
|
150
|
+
"elementId"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"required": [
|
|
155
|
+
"elementTestId"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"required": [
|
|
160
|
+
"elementClass"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"required": [
|
|
165
|
+
"elementAttribute"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"required": [
|
|
170
|
+
"elementAria"
|
|
171
|
+
]
|
|
79
172
|
}
|
|
80
173
|
],
|
|
81
174
|
"properties": {
|
|
@@ -90,11 +183,54 @@
|
|
|
90
183
|
},
|
|
91
184
|
"elementText": {
|
|
92
185
|
"type": "string",
|
|
93
|
-
"description": "Display text of the element to click. If combined with
|
|
186
|
+
"description": "Display text of the element to click. If combined with other element finding fields, the element must match all specified criteria."
|
|
94
187
|
},
|
|
95
188
|
"selector": {
|
|
96
189
|
"type": "string",
|
|
97
|
-
"description": "Selector of the element to click. If combined with
|
|
190
|
+
"description": "Selector of the element to click. If combined with other element finding fields, the element must match all specified criteria."
|
|
191
|
+
},
|
|
192
|
+
"elementId": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "ID attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
|
|
195
|
+
},
|
|
196
|
+
"elementTestId": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "data-testid attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
|
|
199
|
+
},
|
|
200
|
+
"elementClass": {
|
|
201
|
+
"oneOf": [
|
|
202
|
+
{
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "array",
|
|
207
|
+
"items": {
|
|
208
|
+
"type": "string"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"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."
|
|
213
|
+
},
|
|
214
|
+
"elementAttribute": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"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.",
|
|
217
|
+
"additionalProperties": {
|
|
218
|
+
"oneOf": [
|
|
219
|
+
{
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "number"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"type": "boolean"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"elementAria": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
98
234
|
}
|
|
99
235
|
}
|
|
100
236
|
}
|