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,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "goTo",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Navigate to a specified URI.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "goTo"
|
|
9
|
-
},
|
|
10
|
-
"uri": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "URI to navigate to."
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"action",
|
|
17
|
-
"uri"
|
|
18
|
-
],
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"examples": [
|
|
21
|
-
{
|
|
22
|
-
"action": "goTo",
|
|
23
|
-
"uri": "https://www.google.com"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"action": "goTo",
|
|
27
|
-
"uri": "$URI"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
@@ -1,62 +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
|
-
}
|
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "goTo",
|
|
4
|
-
"anyOf": [
|
|
5
|
-
{
|
|
6
|
-
"title": "Go to URL (simple)",
|
|
7
|
-
"description": "Navigate to an HTTP or HTTPS URL. Can be a full URL or a path. If a path is provided, navigates relative to the current URL, if any.",
|
|
8
|
-
"type": "string",
|
|
9
|
-
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
10
|
-
"transform": [
|
|
11
|
-
"trim"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"description": "Navigate to an HTTP or HTTPS URL.",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"required": [
|
|
19
|
-
"url"
|
|
20
|
-
],
|
|
21
|
-
"properties": {
|
|
22
|
-
"url": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "URL to navigate to. Can be a full URL or a path. If a path is provided and `origin` is specified, prepends `origin` to `url`. If a path is provided but `origin` isn't specified, attempts to navigate relative to the current URL, if any.",
|
|
25
|
-
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
26
|
-
"transform": [
|
|
27
|
-
"trim"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"origin": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"description": "Protocol and domain to navigate to. Prepended to `url`.",
|
|
33
|
-
"transform": [
|
|
34
|
-
"trim"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"timeout": {
|
|
38
|
-
"type": "integer",
|
|
39
|
-
"description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
|
|
40
|
-
"default": 30000,
|
|
41
|
-
"minimum": 0
|
|
42
|
-
},
|
|
43
|
-
"waitUntil": {
|
|
44
|
-
"type": "object",
|
|
45
|
-
"description": "Configuration for waiting conditions after navigation.",
|
|
46
|
-
"additionalProperties": false,
|
|
47
|
-
"properties": {
|
|
48
|
-
"networkIdleTime": {
|
|
49
|
-
"description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
|
|
50
|
-
"anyOf": [
|
|
51
|
-
{
|
|
52
|
-
"type": "integer",
|
|
53
|
-
"minimum": 0
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "null"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"default": 500
|
|
60
|
-
},
|
|
61
|
-
"domIdleTime": {
|
|
62
|
-
"description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
|
|
63
|
-
"anyOf": [
|
|
64
|
-
{
|
|
65
|
-
"type": "integer",
|
|
66
|
-
"minimum": 0
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "null"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"default": 1000
|
|
73
|
-
},
|
|
74
|
-
"find": {
|
|
75
|
-
"type": "object",
|
|
76
|
-
"description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
|
|
77
|
-
"additionalProperties": false,
|
|
78
|
-
"anyOf": [
|
|
79
|
-
{
|
|
80
|
-
"required": [
|
|
81
|
-
"selector"
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"required": [
|
|
86
|
-
"elementText"
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"required": [
|
|
91
|
-
"elementId"
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"required": [
|
|
96
|
-
"elementTestId"
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"required": [
|
|
101
|
-
"elementClass"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"required": [
|
|
106
|
-
"elementAttribute"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"required": [
|
|
111
|
-
"elementAria"
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"properties": {
|
|
116
|
-
"selector": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"description": "CSS selector for the element to wait for."
|
|
119
|
-
},
|
|
120
|
-
"elementText": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"description": "Text content the element must contain. Supports exact match or regex pattern using /pattern/ syntax."
|
|
123
|
-
},
|
|
124
|
-
"elementId": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
127
|
-
},
|
|
128
|
-
"elementTestId": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
131
|
-
},
|
|
132
|
-
"elementClass": {
|
|
133
|
-
"anyOf": [
|
|
134
|
-
{
|
|
135
|
-
"type": "string"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "array",
|
|
139
|
-
"items": {
|
|
140
|
-
"type": "string"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"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."
|
|
145
|
-
},
|
|
146
|
-
"elementAttribute": {
|
|
147
|
-
"type": "object",
|
|
148
|
-
"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.",
|
|
149
|
-
"additionalProperties": {
|
|
150
|
-
"anyOf": [
|
|
151
|
-
{
|
|
152
|
-
"type": "string"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"type": "number"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"type": "boolean"
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"elementAria": {
|
|
164
|
-
"type": "string",
|
|
165
|
-
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"title": "Go to URL (detailed)"
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
"components": {
|
|
176
|
-
"schemas": {
|
|
177
|
-
"string": {
|
|
178
|
-
"title": "Go to URL (simple)",
|
|
179
|
-
"description": "Navigate to an HTTP or HTTPS URL. Can be a full URL or a path. If a path is provided, navigates relative to the current URL, if any.",
|
|
180
|
-
"type": "string",
|
|
181
|
-
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
182
|
-
"transform": [
|
|
183
|
-
"trim"
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
"object": {
|
|
187
|
-
"description": "Navigate to an HTTP or HTTPS URL.",
|
|
188
|
-
"type": "object",
|
|
189
|
-
"additionalProperties": false,
|
|
190
|
-
"required": [
|
|
191
|
-
"url"
|
|
192
|
-
],
|
|
193
|
-
"properties": {
|
|
194
|
-
"url": {
|
|
195
|
-
"type": "string",
|
|
196
|
-
"description": "URL to navigate to. Can be a full URL or a path. If a path is provided and `origin` is specified, prepends `origin` to `url`. If a path is provided but `origin` isn't specified, attempts to navigate relative to the current URL, if any.",
|
|
197
|
-
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
198
|
-
"transform": [
|
|
199
|
-
"trim"
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
|
-
"origin": {
|
|
203
|
-
"type": "string",
|
|
204
|
-
"description": "Protocol and domain to navigate to. Prepended to `url`.",
|
|
205
|
-
"transform": [
|
|
206
|
-
"trim"
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
"timeout": {
|
|
210
|
-
"type": "integer",
|
|
211
|
-
"description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
|
|
212
|
-
"default": 30000,
|
|
213
|
-
"minimum": 0
|
|
214
|
-
},
|
|
215
|
-
"waitUntil": {
|
|
216
|
-
"type": "object",
|
|
217
|
-
"description": "Configuration for waiting conditions after navigation.",
|
|
218
|
-
"additionalProperties": false,
|
|
219
|
-
"properties": {
|
|
220
|
-
"networkIdleTime": {
|
|
221
|
-
"description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
|
|
222
|
-
"anyOf": [
|
|
223
|
-
{
|
|
224
|
-
"type": "integer",
|
|
225
|
-
"minimum": 0
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"type": "null"
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"default": 500
|
|
232
|
-
},
|
|
233
|
-
"domIdleTime": {
|
|
234
|
-
"description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
|
|
235
|
-
"anyOf": [
|
|
236
|
-
{
|
|
237
|
-
"type": "integer",
|
|
238
|
-
"minimum": 0
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"type": "null"
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"default": 1000
|
|
245
|
-
},
|
|
246
|
-
"find": {
|
|
247
|
-
"type": "object",
|
|
248
|
-
"description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
|
|
249
|
-
"additionalProperties": false,
|
|
250
|
-
"anyOf": [
|
|
251
|
-
{
|
|
252
|
-
"required": [
|
|
253
|
-
"selector"
|
|
254
|
-
]
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"required": [
|
|
258
|
-
"elementText"
|
|
259
|
-
]
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"required": [
|
|
263
|
-
"elementId"
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"required": [
|
|
268
|
-
"elementTestId"
|
|
269
|
-
]
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"required": [
|
|
273
|
-
"elementClass"
|
|
274
|
-
]
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"required": [
|
|
278
|
-
"elementAttribute"
|
|
279
|
-
]
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"required": [
|
|
283
|
-
"elementAria"
|
|
284
|
-
]
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
"properties": {
|
|
288
|
-
"selector": {
|
|
289
|
-
"type": "string",
|
|
290
|
-
"description": "CSS selector for the element to wait for."
|
|
291
|
-
},
|
|
292
|
-
"elementText": {
|
|
293
|
-
"type": "string",
|
|
294
|
-
"description": "Text content the element must contain. Supports exact match or regex pattern using /pattern/ syntax."
|
|
295
|
-
},
|
|
296
|
-
"elementId": {
|
|
297
|
-
"type": "string",
|
|
298
|
-
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
299
|
-
},
|
|
300
|
-
"elementTestId": {
|
|
301
|
-
"type": "string",
|
|
302
|
-
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
303
|
-
},
|
|
304
|
-
"elementClass": {
|
|
305
|
-
"anyOf": [
|
|
306
|
-
{
|
|
307
|
-
"type": "string"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"type": "array",
|
|
311
|
-
"items": {
|
|
312
|
-
"type": "string"
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
"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."
|
|
317
|
-
},
|
|
318
|
-
"elementAttribute": {
|
|
319
|
-
"type": "object",
|
|
320
|
-
"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.",
|
|
321
|
-
"additionalProperties": {
|
|
322
|
-
"anyOf": [
|
|
323
|
-
{
|
|
324
|
-
"type": "string"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"type": "number"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"type": "boolean"
|
|
331
|
-
}
|
|
332
|
-
]
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"elementAria": {
|
|
336
|
-
"type": "string",
|
|
337
|
-
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
"title": "Go to URL (detailed)"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"examples": [
|
|
349
|
-
"https://www.google.com",
|
|
350
|
-
"/search",
|
|
351
|
-
{
|
|
352
|
-
"url": "https://www.google.com"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"url": "/search",
|
|
356
|
-
"origin": "https://www.google.com"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"url": "https://www.example.com",
|
|
360
|
-
"waitUntil": {
|
|
361
|
-
"networkIdleTime": 500
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"url": "https://www.example.com/dashboard",
|
|
366
|
-
"waitUntil": {
|
|
367
|
-
"find": {
|
|
368
|
-
"selector": "[data-testid='dashboard-loaded']"
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"url": "https://www.example.com/app",
|
|
374
|
-
"timeout": 60000,
|
|
375
|
-
"waitUntil": {
|
|
376
|
-
"networkIdleTime": 500,
|
|
377
|
-
"domIdleTime": 1000,
|
|
378
|
-
"find": {
|
|
379
|
-
"selector": ".main-content",
|
|
380
|
-
"elementText": "Dashboard"
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
"url": "https://www.example.com/app",
|
|
386
|
-
"timeout": 60000,
|
|
387
|
-
"waitUntil": {
|
|
388
|
-
"networkIdleTime": null
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
"url": "https://www.example.com/status",
|
|
393
|
-
"waitUntil": {
|
|
394
|
-
"find": {
|
|
395
|
-
"elementText": "System operational"
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"url": "http://localhost:8092",
|
|
401
|
-
"waitUntil": {
|
|
402
|
-
"find": {
|
|
403
|
-
"selector": "button",
|
|
404
|
-
"elementText": "Standard Button",
|
|
405
|
-
"elementTestId": "standard-btn",
|
|
406
|
-
"elementAria": "Sample Standard Button",
|
|
407
|
-
"elementId": "standard-btn",
|
|
408
|
-
"elementClass": [
|
|
409
|
-
"btn"
|
|
410
|
-
],
|
|
411
|
-
"elementAttribute": {
|
|
412
|
-
"type": "button",
|
|
413
|
-
"value": "Standard Button"
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
]
|
|
419
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "httpRequest",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Perform a generic HTTP request, for example to a REST API.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "httpRequest"
|
|
9
|
-
},
|
|
10
|
-
"uri": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "The URI for the HTTP request."
|
|
13
|
-
},
|
|
14
|
-
"statusCodes": {
|
|
15
|
-
"type": "array",
|
|
16
|
-
"items": {
|
|
17
|
-
"type": "integer"
|
|
18
|
-
},
|
|
19
|
-
"default": [
|
|
20
|
-
200
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"env": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"description": ""
|
|
26
|
-
},
|
|
27
|
-
"method": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Method of the HTTP request",
|
|
30
|
-
"enum": [
|
|
31
|
-
"get",
|
|
32
|
-
"post",
|
|
33
|
-
"patch",
|
|
34
|
-
"delete"
|
|
35
|
-
],
|
|
36
|
-
"default": "get"
|
|
37
|
-
},
|
|
38
|
-
"requestHeaders": {
|
|
39
|
-
"description": "Headers to include in the HTTP request, in key/value format.",
|
|
40
|
-
"type": "object",
|
|
41
|
-
"additionalProperties": true,
|
|
42
|
-
"minProperties": 1,
|
|
43
|
-
"properties": {}
|
|
44
|
-
},
|
|
45
|
-
"responseHeaders": {
|
|
46
|
-
"description": "Headers expected in the response, in key/value format. If one or more `responseHeaders` entries aren't present in the response, the action fails.",
|
|
47
|
-
"type": "object",
|
|
48
|
-
"additionalProperties": true,
|
|
49
|
-
"minProperties": 1,
|
|
50
|
-
"properties": {}
|
|
51
|
-
},
|
|
52
|
-
"requestParams": {
|
|
53
|
-
"description": "URL parameters to include in the HTTP request, in key/value format.",
|
|
54
|
-
"type": "object",
|
|
55
|
-
"additionalProperties": true,
|
|
56
|
-
"minProperties": 1,
|
|
57
|
-
"properties": {}
|
|
58
|
-
},
|
|
59
|
-
"responseParams": {
|
|
60
|
-
"description": "URL parameters expected in the response, in key/value format. If one or more `responseParams` entries aren't present in the response, the action fails.",
|
|
61
|
-
"type": "object",
|
|
62
|
-
"additionalProperties": true,
|
|
63
|
-
"minProperties": 1,
|
|
64
|
-
"properties": {}
|
|
65
|
-
},
|
|
66
|
-
"requestData": {
|
|
67
|
-
"type": "object",
|
|
68
|
-
"additionalProperties": true,
|
|
69
|
-
"minProperties": 1,
|
|
70
|
-
"properties": {}
|
|
71
|
-
},
|
|
72
|
-
"responseData": {
|
|
73
|
-
"type": "object",
|
|
74
|
-
"additionalProperties": true,
|
|
75
|
-
"minProperties": 1,
|
|
76
|
-
"properties": {}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"required": [
|
|
80
|
-
"action",
|
|
81
|
-
"uri"
|
|
82
|
-
],
|
|
83
|
-
"additionalProperties": false,
|
|
84
|
-
"examples": [
|
|
85
|
-
{
|
|
86
|
-
"action": "httpRequest",
|
|
87
|
-
"uri": "https://www.api-server.com",
|
|
88
|
-
"method": "post"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"action": "httpRequest",
|
|
92
|
-
"env": "path/to/variables.env",
|
|
93
|
-
"uri": "https://www.api-server.com",
|
|
94
|
-
"method": "post",
|
|
95
|
-
"requestHeaders": {
|
|
96
|
-
"header": "value"
|
|
97
|
-
},
|
|
98
|
-
"requestParams": {
|
|
99
|
-
"param": "value"
|
|
100
|
-
},
|
|
101
|
-
"requestData": {
|
|
102
|
-
"field": "value"
|
|
103
|
-
},
|
|
104
|
-
"responseHeaders": {
|
|
105
|
-
"header": "value"
|
|
106
|
-
},
|
|
107
|
-
"responseData": {
|
|
108
|
-
"field": "value"
|
|
109
|
-
},
|
|
110
|
-
"statusCodes": [
|
|
111
|
-
200
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
}
|