@spider-cloud/spider-client 0.0.66 → 0.0.67
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/config.d.ts +13 -20
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -103,35 +103,28 @@ type CSSExtractionMap = {
|
|
|
103
103
|
[path: string]: CSSSelector[];
|
|
104
104
|
};
|
|
105
105
|
export type WebAutomation = {
|
|
106
|
-
|
|
107
|
-
code: string;
|
|
106
|
+
Evaluate: string;
|
|
108
107
|
} | {
|
|
109
|
-
|
|
110
|
-
selector: string;
|
|
108
|
+
Click: string;
|
|
111
109
|
} | {
|
|
112
|
-
|
|
113
|
-
duration: number;
|
|
110
|
+
Wait: number;
|
|
114
111
|
} | {
|
|
115
|
-
|
|
112
|
+
WaitForNavigation: boolean;
|
|
116
113
|
} | {
|
|
117
|
-
|
|
118
|
-
selector: string;
|
|
114
|
+
WaitFor: string;
|
|
119
115
|
} | {
|
|
120
|
-
|
|
121
|
-
selector: string;
|
|
116
|
+
WaitForAndClick: string;
|
|
122
117
|
} | {
|
|
123
|
-
|
|
124
|
-
pixels: number;
|
|
118
|
+
ScrollX: number;
|
|
125
119
|
} | {
|
|
126
|
-
|
|
127
|
-
pixels: number;
|
|
120
|
+
ScrollY: number;
|
|
128
121
|
} | {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
122
|
+
Fill: {
|
|
123
|
+
selector: string;
|
|
124
|
+
value?: string;
|
|
125
|
+
};
|
|
132
126
|
} | {
|
|
133
|
-
|
|
134
|
-
times: number;
|
|
127
|
+
InfiniteScroll: number;
|
|
135
128
|
};
|
|
136
129
|
export type WebAutomationMap = Record<string, WebAutomation[]>;
|
|
137
130
|
export type ExecutionScriptsMap = Record<string, string>;
|