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,168 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "find",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Check if an element exists with the specified CSS selector.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "ID of the step."
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Description of the step."
|
|
13
|
-
},
|
|
14
|
-
"action": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"const": "find",
|
|
17
|
-
"description": "Action to perform."
|
|
18
|
-
},
|
|
19
|
-
"selector": {
|
|
20
|
-
"description": "Selector that uniquely identifies the element.",
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"timeout": {
|
|
24
|
-
"type": "integer",
|
|
25
|
-
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
26
|
-
"default": 5000
|
|
27
|
-
},
|
|
28
|
-
"matchText": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Text that the element should contain. If the element doesn't contain the text, the step fails. Accepts both strings and regular expressions. To use a regular expression, the expression should start and end with a `/`. For example, `/search/`."
|
|
31
|
-
},
|
|
32
|
-
"moveTo": {
|
|
33
|
-
"description": "Move to the element. If the element isn't visible, it's scrolled into view. Only runs if the test is being recorded.",
|
|
34
|
-
"oneOf": [
|
|
35
|
-
{
|
|
36
|
-
"type": "boolean"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"default": false
|
|
40
|
-
},
|
|
41
|
-
"click": {
|
|
42
|
-
"description": "Click the element.",
|
|
43
|
-
"oneOf": [
|
|
44
|
-
{
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"default": false
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"type": "object",
|
|
50
|
-
"additionalProperties": false,
|
|
51
|
-
"properties": {
|
|
52
|
-
"button": {
|
|
53
|
-
"description": "Kind of click to perform.",
|
|
54
|
-
"type": "string",
|
|
55
|
-
"enum": [
|
|
56
|
-
"left",
|
|
57
|
-
"right",
|
|
58
|
-
"middle"
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"typeKeys": {
|
|
66
|
-
"description": "Type keys after finding the element. Either a string or an object with a `keys` field as defined in [`typeKeys`](typeKeys). To type in the element, make the element active with the `click` parameter.",
|
|
67
|
-
"oneOf": [
|
|
68
|
-
{
|
|
69
|
-
"type": "string"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"type": "object",
|
|
73
|
-
"additionalProperties": false,
|
|
74
|
-
"properties": {
|
|
75
|
-
"keys": {
|
|
76
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/typeKeys_v2.schema.json#/properties/keys"
|
|
77
|
-
},
|
|
78
|
-
"delay": {
|
|
79
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/typeKeys_v2.schema.json#/properties/delay"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"setVariables": {
|
|
86
|
-
"type": "array",
|
|
87
|
-
"description": "Extract environment variables from the element's text.",
|
|
88
|
-
"items": {
|
|
89
|
-
"oneOf": [
|
|
90
|
-
{
|
|
91
|
-
"description": "",
|
|
92
|
-
"type": "object",
|
|
93
|
-
"properties": {
|
|
94
|
-
"name": {
|
|
95
|
-
"description": "Name of the environment variable to set.",
|
|
96
|
-
"type": "string"
|
|
97
|
-
},
|
|
98
|
-
"regex": {
|
|
99
|
-
"description": "Regex to extract the environment variable from the element's text.",
|
|
100
|
-
"type": "string"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"required": [
|
|
104
|
-
"name",
|
|
105
|
-
"regex"
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
"default": []
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"required": [
|
|
114
|
-
"action",
|
|
115
|
-
"selector"
|
|
116
|
-
],
|
|
117
|
-
"dynamicDefaults": {
|
|
118
|
-
"id": "uuid"
|
|
119
|
-
},
|
|
120
|
-
"additionalProperties": false,
|
|
121
|
-
"examples": [
|
|
122
|
-
{
|
|
123
|
-
"action": "find",
|
|
124
|
-
"selector": "[title=Search]"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"action": "find",
|
|
128
|
-
"selector": "[title=Search]",
|
|
129
|
-
"timeout": 10000,
|
|
130
|
-
"matchText": "Search",
|
|
131
|
-
"moveTo": true,
|
|
132
|
-
"click": true,
|
|
133
|
-
"typeKeys": "shorthair cat"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"action": "find",
|
|
137
|
-
"selector": "[title=Search]",
|
|
138
|
-
"click": {
|
|
139
|
-
"button": "right"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"action": "find",
|
|
144
|
-
"selector": "[title=Search]",
|
|
145
|
-
"timeout": 10000,
|
|
146
|
-
"matchText": "Search",
|
|
147
|
-
"moveTo": true,
|
|
148
|
-
"click": true,
|
|
149
|
-
"typeKeys": {
|
|
150
|
-
"keys": [
|
|
151
|
-
"shorthair cat"
|
|
152
|
-
],
|
|
153
|
-
"delay": 100
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"action": "find",
|
|
158
|
-
"selector": "[title=ResultsCount]",
|
|
159
|
-
"setVariables": [
|
|
160
|
-
{
|
|
161
|
-
"name": "resultsCount",
|
|
162
|
-
"regex": ".*"
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/find_v2.schema.json"
|
|
168
|
-
}
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "find",
|
|
4
|
-
"description": "Find an element based on display text or a selector, then optionally interact with it.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"$ref": "#/components/schemas/string"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"$ref": "#/components/schemas/object"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"components": {
|
|
14
|
-
"schemas": {
|
|
15
|
-
"string": {
|
|
16
|
-
"title": "Find element (simple)",
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Identifier for the element to find. Can be a selector, element text, ARIA name, ID, or test ID."
|
|
19
|
-
},
|
|
20
|
-
"object": {
|
|
21
|
-
"title": "Find element (detailed)",
|
|
22
|
-
"type": "object",
|
|
23
|
-
"anyOf": [
|
|
24
|
-
{
|
|
25
|
-
"required": [
|
|
26
|
-
"selector"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"required": [
|
|
31
|
-
"elementText"
|
|
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
|
-
]
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"additionalProperties": false,
|
|
61
|
-
"properties": {
|
|
62
|
-
"elementText": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Display text of the element to find. If combined with other element finding fields, the element must match all specified criteria."
|
|
65
|
-
},
|
|
66
|
-
"selector": {
|
|
67
|
-
"type": "string",
|
|
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
|
-
"anyOf": [
|
|
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
|
-
"anyOf": [
|
|
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."
|
|
112
|
-
},
|
|
113
|
-
"timeout": {
|
|
114
|
-
"type": "integer",
|
|
115
|
-
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
116
|
-
"default": 5000
|
|
117
|
-
},
|
|
118
|
-
"moveTo": {
|
|
119
|
-
"description": "Move to the element. If the element isn't visible, it's scrolled into view.",
|
|
120
|
-
"type": "boolean",
|
|
121
|
-
"default": true
|
|
122
|
-
},
|
|
123
|
-
"click": {
|
|
124
|
-
"description": "Click the element.",
|
|
125
|
-
"anyOf": [
|
|
126
|
-
{
|
|
127
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/click_v3.schema.json#"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"type": "object",
|
|
131
|
-
"properties": {
|
|
132
|
-
"button": {
|
|
133
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/click_v3.schema.json#/components/schemas/button"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"title": "Find element and click"
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
"type": {
|
|
141
|
-
"description": "Type keys after finding the element. Either a string or an object with a `keys` field as defined in [`type`](type). To type in the element, make the element active with the `click` parameter.",
|
|
142
|
-
"allOf": [
|
|
143
|
-
{
|
|
144
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/type_v3.schema.json#"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"not": {
|
|
148
|
-
"type": "object",
|
|
149
|
-
"required": [
|
|
150
|
-
"selector",
|
|
151
|
-
"elementText",
|
|
152
|
-
"elementId",
|
|
153
|
-
"elementTestId",
|
|
154
|
-
"elementClass",
|
|
155
|
-
"elementAttribute",
|
|
156
|
-
"elementAria"
|
|
157
|
-
],
|
|
158
|
-
"title": "Find element and type"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"examples": [
|
|
168
|
-
"Find me!",
|
|
169
|
-
{
|
|
170
|
-
"selector": "[title=Search]"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"selector": "[title=Search]",
|
|
174
|
-
"timeout": 10000,
|
|
175
|
-
"elementText": "Search",
|
|
176
|
-
"moveTo": true,
|
|
177
|
-
"click": true,
|
|
178
|
-
"type": "shorthair cat"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"selector": "[title=Search]",
|
|
182
|
-
"click": {
|
|
183
|
-
"button": "right"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"selector": "[title=Search]",
|
|
188
|
-
"timeout": 10000,
|
|
189
|
-
"elementText": "Search",
|
|
190
|
-
"moveTo": true,
|
|
191
|
-
"click": true,
|
|
192
|
-
"type": {
|
|
193
|
-
"keys": [
|
|
194
|
-
"shorthair cat"
|
|
195
|
-
],
|
|
196
|
-
"inputDelay": 100
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"elementId": "/^user-[0-9]+$/",
|
|
201
|
-
"elementClass": [
|
|
202
|
-
"admin",
|
|
203
|
-
"/^level-[1-5]$/"
|
|
204
|
-
],
|
|
205
|
-
"elementAttribute": {
|
|
206
|
-
"data-active": true,
|
|
207
|
-
"data-score": "/^[0-9]+$/"
|
|
208
|
-
},
|
|
209
|
-
"timeout": 8000,
|
|
210
|
-
"moveTo": false
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/find_v3.schema.json"
|
|
214
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "goTo",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Navigate to a specified URL.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "ID of the step."
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Description of the step."
|
|
13
|
-
},
|
|
14
|
-
"action": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"const": "goTo",
|
|
17
|
-
"description": "Action to perform."
|
|
18
|
-
},
|
|
19
|
-
"url": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "URL to navigate to.",
|
|
22
|
-
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
23
|
-
"transform": [
|
|
24
|
-
"trim"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"origin": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Protocol and domain to navigate to. Prepended to `url`.",
|
|
30
|
-
"transform": [
|
|
31
|
-
"trim"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"dynamicDefaults": {
|
|
36
|
-
"id": "uuid"
|
|
37
|
-
},
|
|
38
|
-
"required": [
|
|
39
|
-
"action",
|
|
40
|
-
"url"
|
|
41
|
-
],
|
|
42
|
-
"additionalProperties": false,
|
|
43
|
-
"examples": [
|
|
44
|
-
{
|
|
45
|
-
"action": "goTo",
|
|
46
|
-
"url": "https://www.google.com"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"id": "ddec5e20-2e81-4f38-867c-92c8d9516755",
|
|
50
|
-
"description": "This is a test!",
|
|
51
|
-
"action": "goTo",
|
|
52
|
-
"url": "https://www.google.com"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"id": "ddec5e20-2e81-4f38-867c-92c8d9516756",
|
|
56
|
-
"description": "This is a test!",
|
|
57
|
-
"action": "goTo",
|
|
58
|
-
"url": "/search",
|
|
59
|
-
"origin": "https://www.google.com"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/goTo_v2.schema.json"
|
|
63
|
-
}
|