doc-detective-common 3.4.1-dev.4 → 3.4.1-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.
@@ -16,32 +16,86 @@
16
16
  "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.",
17
17
  "type": "string",
18
18
  "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
19
- "transform": [
20
- "trim"
21
- ]
19
+ "transform": ["trim"]
22
20
  },
23
21
  "object": {
24
22
  "description": "Navigate to an HTTP or HTTPS URL.",
25
23
  "type": "object",
26
24
  "additionalProperties": false,
27
- "required": [
28
- "url"
29
- ],
25
+ "required": ["url"],
30
26
  "properties": {
31
27
  "url": {
32
28
  "type": "string",
33
29
  "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.",
34
30
  "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
35
- "transform": [
36
- "trim"
37
- ]
31
+ "transform": ["trim"]
38
32
  },
39
33
  "origin": {
40
34
  "type": "string",
41
35
  "description": "Protocol and domain to navigate to. Prepended to `url`.",
42
- "transform": [
43
- "trim"
44
- ]
36
+ "transform": ["trim"]
37
+ },
38
+ "timeout": {
39
+ "type": "integer",
40
+ "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
41
+ "default": 30000,
42
+ "minimum": 0
43
+ },
44
+ "waitUntil": {
45
+ "type": "object",
46
+ "description": "Configuration for waiting conditions after navigation.",
47
+ "additionalProperties": false,
48
+ "properties": {
49
+ "networkIdleTime": {
50
+ "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
51
+ "anyOf": [
52
+ {
53
+ "type": "integer",
54
+ "minimum": 0
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ],
60
+ "default": 500
61
+ },
62
+ "domIdleTime": {
63
+ "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
64
+ "anyOf": [
65
+ {
66
+ "type": "integer",
67
+ "minimum": 0
68
+ },
69
+ {
70
+ "type": "null"
71
+ }
72
+ ],
73
+ "default": 1000
74
+ },
75
+ "find": {
76
+ "type": "object",
77
+ "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
78
+ "additionalProperties": false,
79
+ "anyOf": [
80
+ {
81
+ "required": ["selector"]
82
+ },
83
+ {
84
+ "required": ["elementText"]
85
+ }
86
+ ],
87
+ "properties": {
88
+ "selector": {
89
+ "type": "string",
90
+ "description": "CSS selector for the element to wait for."
91
+ },
92
+ "elementText": {
93
+ "type": "string",
94
+ "description": "Text content the element must contain."
95
+ }
96
+ }
97
+ }
98
+ }
45
99
  }
46
100
  },
47
101
  "title": "Go to URL (detailed)"
@@ -56,7 +110,48 @@
56
110
  },
57
111
  {
58
112
  "url": "/search",
59
- "origin": "www.google.com"
113
+ "origin": "https://www.google.com"
114
+ },
115
+ {
116
+ "url": "https://www.example.com",
117
+ "waitUntil": {
118
+ "networkIdleTime": 500
119
+ }
120
+ },
121
+ {
122
+ "url": "https://www.example.com/dashboard",
123
+ "waitUntil": {
124
+ "find": {
125
+ "selector": "[data-testid='dashboard-loaded']"
126
+ }
127
+ }
128
+ },
129
+ {
130
+ "url": "https://www.example.com/app",
131
+ "timeout": 60000,
132
+ "waitUntil": {
133
+ "networkIdleTime": 500,
134
+ "domIdleTime": 1000,
135
+ "find": {
136
+ "selector": ".main-content",
137
+ "elementText": "Dashboard"
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "url": "https://www.example.com/app",
143
+ "timeout": 60000,
144
+ "waitUntil": {
145
+ "networkIdleTime": null
146
+ }
147
+ },
148
+ {
149
+ "url": "https://www.example.com/status",
150
+ "waitUntil": {
151
+ "find": {
152
+ "elementText": "System operational"
153
+ }
154
+ }
60
155
  }
61
156
  ]
62
- }
157
+ }
@@ -1,63 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "goTo",
4
- "anyOf": [
5
- {
6
- "$ref": "#/components/schemas/string"
7
- },
8
- {
9
- "$ref": "#/components/schemas/object"
10
- }
11
- ],
12
- "components": {
13
- "schemas": {
14
- "string": {
15
- "title": "Go to URL (simple)",
16
- "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.",
17
- "type": "string",
18
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
19
- "transform": [
20
- "trim"
21
- ]
22
- },
23
- "object": {
24
- "description": "Navigate to an HTTP or HTTPS URL.",
25
- "type": "object",
26
- "additionalProperties": false,
27
- "required": [
28
- "url"
29
- ],
30
- "properties": {
31
- "url": {
32
- "type": "string",
33
- "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.",
34
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
35
- "transform": [
36
- "trim"
37
- ]
38
- },
39
- "origin": {
40
- "type": "string",
41
- "description": "Protocol and domain to navigate to. Prepended to `url`.",
42
- "transform": [
43
- "trim"
44
- ]
45
- }
46
- },
47
- "title": "Go to URL (detailed)"
48
- }
49
- }
50
- },
51
- "examples": [
52
- "https://www.google.com",
53
- "/search",
54
- {
55
- "url": "https://www.google.com"
56
- },
57
- {
58
- "url": "/search",
59
- "origin": "www.google.com"
60
- }
61
- ],
62
- "$id": "/home/runner/work/common/common/src/schemas/src_schemas/goTo_v3.schema.json"
63
- }