oc-browser-relay 1.0.11 → 1.0.13
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/bundled-relay/public/configs/pages/douyin-fxg-homepage.json +1 -1
- package/bundled-relay/public/configs/pages/taobao-item-detail.json +12 -0
- package/bundled-relay/public/configs/pages/xiaohongshu-creator-publish.json +62 -22
- package/bundled-relay/public/configs/pages/xiaohongshu-web-explore.json +0 -8
- package/bundled-relay/public/configs/pages/xiaohongshu-web-search-result.json +0 -8
- package/index.js +26 -26
- package/package.json +1 -1
- package/skills/oc-browser-relay-article/SKILL.md +2 -0
- package/skills/oc-browser-relay-douyin/SKILL.md +2 -0
- package/skills/oc-browser-relay-douyin-fxg/SKILL.md +3 -1
- package/skills/oc-browser-relay-pinduoduo/SKILL.md +2 -0
- package/skills/oc-browser-relay-sycm/SKILL.md +3 -0
- package/skills/oc-browser-relay-taobao/SKILL.md +4 -0
- package/skills/oc-browser-relay-xiaohongshu/SKILL.md +5 -0
|
@@ -57,6 +57,12 @@
|
|
|
57
57
|
"actionId": "open_comments",
|
|
58
58
|
"label": "打开评论面板",
|
|
59
59
|
"kind": "click",
|
|
60
|
+
"missingElementScrollRetry": {
|
|
61
|
+
"timeoutMs": 60000,
|
|
62
|
+
"minScrollDistancePx": 180,
|
|
63
|
+
"maxScrollDistancePx": 320,
|
|
64
|
+
"settleDelayMs": 500
|
|
65
|
+
},
|
|
60
66
|
"locators": [
|
|
61
67
|
{
|
|
62
68
|
"kind": "css",
|
|
@@ -86,6 +92,12 @@
|
|
|
86
92
|
"actionId": "open_ask_answers",
|
|
87
93
|
"label": "打开问大家面板",
|
|
88
94
|
"kind": "click",
|
|
95
|
+
"missingElementScrollRetry": {
|
|
96
|
+
"timeoutMs": 60000,
|
|
97
|
+
"minScrollDistancePx": 180,
|
|
98
|
+
"maxScrollDistancePx": 320,
|
|
99
|
+
"settleDelayMs": 500
|
|
100
|
+
},
|
|
89
101
|
"locators": [
|
|
90
102
|
{
|
|
91
103
|
"kind": "css",
|
|
@@ -23,25 +23,22 @@
|
|
|
23
23
|
}
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"conditions": [
|
|
26
|
+
"publishFormSignals": {
|
|
27
|
+
"uploadInputLocators": [
|
|
29
28
|
{
|
|
30
|
-
"
|
|
31
|
-
"
|
|
29
|
+
"kind": "css",
|
|
30
|
+
"value": ".img-list input[type='file'][multiple][accept*='.jpg']",
|
|
31
|
+
"priority": 1
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
"publishFormSignals": {
|
|
40
|
-
"uploadInputLocators": [
|
|
34
|
+
"kind": "css",
|
|
35
|
+
"value": "input[type='file'][multiple][accept*='.jpg']",
|
|
36
|
+
"priority": 2
|
|
37
|
+
},
|
|
41
38
|
{
|
|
42
39
|
"kind": "css",
|
|
43
40
|
"value": "input.upload-input[type='file']",
|
|
44
|
-
"priority":
|
|
41
|
+
"priority": 3
|
|
45
42
|
}
|
|
46
43
|
],
|
|
47
44
|
"visibleLocators": [
|
|
@@ -82,12 +79,12 @@
|
|
|
82
79
|
"locators": [
|
|
83
80
|
{
|
|
84
81
|
"kind": "css",
|
|
85
|
-
"value": "input
|
|
82
|
+
"value": "input[type='text'][placeholder*='填写标题']",
|
|
86
83
|
"priority": 1
|
|
87
84
|
},
|
|
88
85
|
{
|
|
89
86
|
"kind": "css",
|
|
90
|
-
"value": "input[
|
|
87
|
+
"value": ".edit-container input[type='text']",
|
|
91
88
|
"priority": 2
|
|
92
89
|
}
|
|
93
90
|
],
|
|
@@ -151,18 +148,59 @@
|
|
|
151
148
|
"locators": [
|
|
152
149
|
{
|
|
153
150
|
"kind": "css",
|
|
154
|
-
"value": "
|
|
151
|
+
"value": ".img-list input[type='file'][multiple][accept*='.jpg']",
|
|
155
152
|
"priority": 1
|
|
156
153
|
},
|
|
157
154
|
{
|
|
158
155
|
"kind": "css",
|
|
159
|
-
"value": ".
|
|
156
|
+
"value": "input[type='file'][multiple][accept*='.jpg']",
|
|
160
157
|
"priority": 2
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"kind": "css",
|
|
161
|
+
"value": "input.upload-input[type='file']",
|
|
162
|
+
"priority": 3
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"kind": "css",
|
|
166
|
+
"value": ".upload-input",
|
|
167
|
+
"priority": 4
|
|
161
168
|
}
|
|
162
169
|
],
|
|
163
170
|
"inputStrategy": {
|
|
164
171
|
"mode": "file_upload",
|
|
165
172
|
"waitForUploadComplete": true,
|
|
173
|
+
"stageLocators": {
|
|
174
|
+
"empty": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "css",
|
|
177
|
+
"value": "input.upload-input[type='file']",
|
|
178
|
+
"priority": 1
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "css",
|
|
182
|
+
"value": ".upload-input",
|
|
183
|
+
"priority": 2
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"editing": [
|
|
187
|
+
{
|
|
188
|
+
"kind": "css",
|
|
189
|
+
"value": ".img-list input[type='file'][multiple]",
|
|
190
|
+
"priority": 1
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"kind": "css",
|
|
194
|
+
"value": ".img-list input[type='file'][multiple][accept*='.jpg']",
|
|
195
|
+
"priority": 2
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "css",
|
|
199
|
+
"value": "input[type='file'][multiple][accept*='.jpg']",
|
|
200
|
+
"priority": 3
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
166
204
|
"removeSelectors": [
|
|
167
205
|
"[aria-label*='删除图片']",
|
|
168
206
|
"[class*='upload'] [class*='delete']",
|
|
@@ -181,12 +219,14 @@
|
|
|
181
219
|
"observationRules": {
|
|
182
220
|
"filledWhen": "thumbnail_count_gt_0",
|
|
183
221
|
"emptyWhen": "thumbnail_count_eq_0",
|
|
222
|
+
"successLocators": [
|
|
223
|
+
".edit-container input[type='text'][placeholder*='填写标题']",
|
|
224
|
+
"input[type='text'][placeholder*='填写标题']"
|
|
225
|
+
],
|
|
184
226
|
"countSelectors": [
|
|
185
|
-
".
|
|
186
|
-
".
|
|
187
|
-
".img-preview-
|
|
188
|
-
"[class*='upload'] img",
|
|
189
|
-
"[class*='preview'] img"
|
|
227
|
+
".img-preview-area .img-container",
|
|
228
|
+
".img-preview-area .pr[data-draggable='true']",
|
|
229
|
+
".img-preview-area img.preview"
|
|
190
230
|
],
|
|
191
231
|
"uploadingSelectors": [
|
|
192
232
|
"[class*='uploading']",
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
"type": "element_visible",
|
|
19
19
|
"selector": "#search-input"
|
|
20
20
|
},
|
|
21
|
-
"blockingConditions": {
|
|
22
|
-
"type": "element_visible",
|
|
23
|
-
"selector": ".login-container"
|
|
24
|
-
},
|
|
25
21
|
"waitTimeoutMs": 15000
|
|
26
22
|
},
|
|
27
23
|
"reusePolicy": {
|
|
@@ -33,10 +29,6 @@
|
|
|
33
29
|
],
|
|
34
30
|
"requiredFields": ["keyword"],
|
|
35
31
|
"requiredActions": ["search"],
|
|
36
|
-
"blockingConditions": {
|
|
37
|
-
"type": "element_visible",
|
|
38
|
-
"selector": ".login-container"
|
|
39
|
-
},
|
|
40
32
|
"keywordBehavior": {
|
|
41
33
|
"mode": "compare_or_replace",
|
|
42
34
|
"skipInputWhenEqual": true,
|
|
@@ -32,10 +32,6 @@
|
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
|
-
"blockingConditions": {
|
|
36
|
-
"type": "element_visible",
|
|
37
|
-
"selector": ".login-container"
|
|
38
|
-
},
|
|
39
35
|
"waitTimeoutMs": 15000
|
|
40
36
|
},
|
|
41
37
|
"reusePolicy": {
|
|
@@ -47,10 +43,6 @@
|
|
|
47
43
|
],
|
|
48
44
|
"requiredFields": ["keyword"],
|
|
49
45
|
"requiredActions": ["search"],
|
|
50
|
-
"blockingConditions": {
|
|
51
|
-
"type": "element_visible",
|
|
52
|
-
"selector": ".login-container"
|
|
53
|
-
},
|
|
54
46
|
"keywordBehavior": {
|
|
55
47
|
"mode": "compare_or_replace",
|
|
56
48
|
"skipInputWhenEqual": true,
|