airbrowser-client 1.2.3 → 1.3.0
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/.openapi-generator/FILES +14 -31
- package/README.md +46 -65
- package/api.ts +807 -1256
- package/dist/api.d.ts +666 -1064
- package/dist/api.js +546 -636
- package/dist/esm/api.d.ts +666 -1064
- package/dist/esm/api.js +545 -635
- package/docs/BrowserApi.md +288 -340
- package/docs/{UrlData.md → BrowsersRequest.md} +5 -5
- package/docs/ClickRequest.md +5 -5
- package/docs/ConsoleLogsRequest.md +2 -2
- package/docs/CreateBrowserRequest.md +38 -0
- package/docs/DetectCoordinatesRequest.md +5 -1
- package/docs/{FormField.md → DialogRequest.md} +7 -7
- package/docs/EmulateRequest.md +32 -0
- package/docs/{ExecuteData.md → ExecuteScriptRequest.md} +5 -5
- package/docs/FillFormRequest.md +2 -2
- package/docs/GenericResponse.md +24 -0
- package/docs/GuiClickRequest.md +30 -0
- package/docs/GuiHoverXyRequest.md +24 -0
- package/docs/GuiPressKeysXyRequest.md +26 -0
- package/docs/GuiTypeXyRequest.md +26 -0
- package/docs/HistoryRequest.md +1 -1
- package/docs/MouseRequest.md +5 -5
- package/docs/{NavigateRequest.md → NavigateBrowserRequest.md} +5 -5
- package/docs/NetworkLogsRequest.md +2 -2
- package/docs/PerformanceRequest.md +2 -2
- package/docs/PressKeysRequest.md +4 -4
- package/docs/ResizeRequest.md +2 -2
- package/docs/ScrollRequest.md +32 -0
- package/docs/SelectRequest.md +7 -7
- package/docs/SnapshotRequest.md +2 -2
- package/docs/TabsRequest.md +4 -4
- package/docs/TakeScreenshotRequest.md +20 -0
- package/docs/TypeTextRequest.md +26 -0
- package/docs/UploadFileRequest.md +3 -3
- package/docs/WaitElementRequest.md +5 -5
- package/package.json +1 -1
- package/docs/ActionResult.md +0 -26
- package/docs/AttributeResponse.md +0 -26
- package/docs/BrowserConfig.md +0 -36
- package/docs/BrowserCreated.md +0 -26
- package/docs/BrowserCreationData.md +0 -22
- package/docs/BrowserInfoResponse.md +0 -26
- package/docs/BrowserList.md +0 -26
- package/docs/BrowserListData.md +0 -22
- package/docs/CheckElementRequest.md +0 -24
- package/docs/CombinedDialogRequest.md +0 -22
- package/docs/CombinedEmulateRequest.md +0 -32
- package/docs/CombinedGuiClickRequest.md +0 -30
- package/docs/CombinedScrollRequest.md +0 -32
- package/docs/ContentData.md +0 -24
- package/docs/ContentResponse.md +0 -26
- package/docs/DetectCoordinatesResult.md +0 -44
- package/docs/ElementDataRequest.md +0 -26
- package/docs/ExecuteRequest.md +0 -22
- package/docs/ExecuteResponse.md +0 -26
- package/docs/LogsResponse.md +0 -26
- package/docs/PoolStatusResponse.md +0 -26
- package/docs/ScreenshotData.md +0 -22
- package/docs/ScreenshotResponse.md +0 -26
- package/docs/SuccessResponse.md +0 -26
- package/docs/TypeRequest.md +0 -26
- package/docs/UrlResponse.md +0 -26
- package/docs/WhatIsVisibleResult.md +0 -34
package/dist/api.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
-
export interface
|
|
16
|
+
export interface BaseResponse {
|
|
17
17
|
/**
|
|
18
18
|
* Operation success
|
|
19
19
|
*/
|
|
@@ -26,504 +26,262 @@ export interface ActionResult {
|
|
|
26
26
|
* Unix timestamp
|
|
27
27
|
*/
|
|
28
28
|
'timestamp': number;
|
|
29
|
+
}
|
|
30
|
+
export interface BrowsersRequest {
|
|
29
31
|
/**
|
|
30
|
-
*
|
|
32
|
+
* action
|
|
31
33
|
*/
|
|
32
|
-
'
|
|
34
|
+
'action': string;
|
|
33
35
|
}
|
|
34
|
-
export interface
|
|
36
|
+
export interface ClickRequest {
|
|
35
37
|
/**
|
|
36
|
-
*
|
|
38
|
+
* selector
|
|
37
39
|
*/
|
|
38
|
-
'
|
|
40
|
+
'selector': string;
|
|
39
41
|
/**
|
|
40
|
-
*
|
|
42
|
+
* timeout
|
|
41
43
|
*/
|
|
42
|
-
'
|
|
44
|
+
'timeout'?: number;
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
46
|
+
* by
|
|
45
47
|
*/
|
|
46
|
-
'
|
|
48
|
+
'by'?: string;
|
|
47
49
|
/**
|
|
48
|
-
*
|
|
50
|
+
* if_visible
|
|
49
51
|
*/
|
|
50
|
-
'
|
|
52
|
+
'if_visible'?: boolean;
|
|
51
53
|
}
|
|
52
|
-
export interface
|
|
53
|
-
/**
|
|
54
|
-
* Operation success
|
|
55
|
-
*/
|
|
56
|
-
'success': boolean;
|
|
54
|
+
export interface ConsoleLogsRequest {
|
|
57
55
|
/**
|
|
58
|
-
*
|
|
56
|
+
* action
|
|
59
57
|
*/
|
|
60
|
-
'
|
|
58
|
+
'action': string;
|
|
61
59
|
/**
|
|
62
|
-
*
|
|
60
|
+
* limit
|
|
63
61
|
*/
|
|
64
|
-
'
|
|
62
|
+
'limit'?: number;
|
|
65
63
|
}
|
|
66
|
-
export interface
|
|
64
|
+
export interface CreateBrowserRequest {
|
|
67
65
|
/**
|
|
68
|
-
*
|
|
66
|
+
* uc
|
|
69
67
|
*/
|
|
70
|
-
'
|
|
68
|
+
'uc'?: boolean;
|
|
71
69
|
/**
|
|
72
|
-
*
|
|
70
|
+
* proxy
|
|
73
71
|
*/
|
|
74
72
|
'proxy'?: string;
|
|
75
73
|
/**
|
|
76
|
-
*
|
|
74
|
+
* window_size
|
|
77
75
|
*/
|
|
78
|
-
'
|
|
76
|
+
'window_size'?: Array<number>;
|
|
79
77
|
/**
|
|
80
|
-
*
|
|
78
|
+
* user_agent
|
|
81
79
|
*/
|
|
82
|
-
'
|
|
80
|
+
'user_agent'?: string;
|
|
83
81
|
/**
|
|
84
|
-
*
|
|
82
|
+
* disable_gpu
|
|
85
83
|
*/
|
|
86
84
|
'disable_gpu'?: boolean;
|
|
87
85
|
/**
|
|
88
|
-
*
|
|
86
|
+
* disable_images
|
|
89
87
|
*/
|
|
90
88
|
'disable_images'?: boolean;
|
|
91
89
|
/**
|
|
92
|
-
*
|
|
90
|
+
* disable_javascript
|
|
93
91
|
*/
|
|
94
92
|
'disable_javascript'?: boolean;
|
|
95
93
|
/**
|
|
96
|
-
*
|
|
94
|
+
* extensions
|
|
97
95
|
*/
|
|
98
96
|
'extensions'?: Array<string>;
|
|
99
97
|
/**
|
|
100
|
-
*
|
|
98
|
+
* custom_args
|
|
101
99
|
*/
|
|
102
100
|
'custom_args'?: Array<string>;
|
|
103
|
-
}
|
|
104
|
-
export interface BrowserCreated {
|
|
105
|
-
/**
|
|
106
|
-
* Operation success
|
|
107
|
-
*/
|
|
108
|
-
'success': boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Status message
|
|
111
|
-
*/
|
|
112
|
-
'message': string;
|
|
113
|
-
/**
|
|
114
|
-
* Unix timestamp
|
|
115
|
-
*/
|
|
116
|
-
'timestamp': number;
|
|
117
101
|
/**
|
|
118
|
-
*
|
|
102
|
+
* profile_name
|
|
119
103
|
*/
|
|
120
|
-
'
|
|
121
|
-
}
|
|
122
|
-
export interface BrowserCreationData {
|
|
123
|
-
/**
|
|
124
|
-
* Unique browser identifier
|
|
125
|
-
*/
|
|
126
|
-
'browser_id': string;
|
|
127
|
-
/**
|
|
128
|
-
* Browser configuration used
|
|
129
|
-
*/
|
|
130
|
-
'config'?: object;
|
|
131
|
-
}
|
|
132
|
-
export interface BrowserInfoResponse {
|
|
133
|
-
/**
|
|
134
|
-
* Operation success
|
|
135
|
-
*/
|
|
136
|
-
'success': boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Status message
|
|
139
|
-
*/
|
|
140
|
-
'message': string;
|
|
141
|
-
/**
|
|
142
|
-
* Unix timestamp
|
|
143
|
-
*/
|
|
144
|
-
'timestamp': number;
|
|
145
|
-
/**
|
|
146
|
-
* Browser information
|
|
147
|
-
*/
|
|
148
|
-
'data'?: object;
|
|
149
|
-
}
|
|
150
|
-
export interface BrowserList {
|
|
151
|
-
/**
|
|
152
|
-
* Operation success
|
|
153
|
-
*/
|
|
154
|
-
'success': boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Status message
|
|
157
|
-
*/
|
|
158
|
-
'message': string;
|
|
159
|
-
/**
|
|
160
|
-
* Unix timestamp
|
|
161
|
-
*/
|
|
162
|
-
'timestamp': number;
|
|
163
|
-
/**
|
|
164
|
-
* Browser list data
|
|
165
|
-
*/
|
|
166
|
-
'data'?: BrowserListData;
|
|
167
|
-
}
|
|
168
|
-
export interface BrowserListData {
|
|
169
|
-
/**
|
|
170
|
-
* List of active browsers
|
|
171
|
-
*/
|
|
172
|
-
'browsers'?: Array<object>;
|
|
173
|
-
/**
|
|
174
|
-
* Total browser count
|
|
175
|
-
*/
|
|
176
|
-
'count'?: number;
|
|
104
|
+
'profile_name'?: string;
|
|
177
105
|
}
|
|
178
|
-
export interface
|
|
179
|
-
/**
|
|
180
|
-
* Element selector
|
|
181
|
-
*/
|
|
182
|
-
'selector': string;
|
|
183
|
-
/**
|
|
184
|
-
* Selector type (css, id, name, xpath)
|
|
185
|
-
*/
|
|
186
|
-
'by'?: string;
|
|
106
|
+
export interface CreateProfileRequest {
|
|
187
107
|
/**
|
|
188
|
-
*
|
|
108
|
+
* Profile name
|
|
189
109
|
*/
|
|
190
|
-
'
|
|
110
|
+
'name': string;
|
|
191
111
|
}
|
|
192
|
-
export
|
|
193
|
-
readonly Exists: "exists";
|
|
194
|
-
readonly Visible: "visible";
|
|
195
|
-
};
|
|
196
|
-
export type CheckElementRequestCheckEnum = typeof CheckElementRequestCheckEnum[keyof typeof CheckElementRequestCheckEnum];
|
|
197
|
-
export interface ClickRequest {
|
|
198
|
-
/**
|
|
199
|
-
* Element selector
|
|
200
|
-
*/
|
|
201
|
-
'selector': string;
|
|
112
|
+
export interface DetectCoordinatesRequest {
|
|
202
113
|
/**
|
|
203
|
-
*
|
|
114
|
+
* prompt
|
|
204
115
|
*/
|
|
205
|
-
'
|
|
116
|
+
'prompt': string;
|
|
206
117
|
/**
|
|
207
|
-
*
|
|
118
|
+
* fx
|
|
208
119
|
*/
|
|
209
|
-
'
|
|
120
|
+
'fx'?: number;
|
|
210
121
|
/**
|
|
211
|
-
*
|
|
122
|
+
* fy
|
|
212
123
|
*/
|
|
213
|
-
'
|
|
124
|
+
'fy'?: number;
|
|
214
125
|
}
|
|
215
|
-
export interface
|
|
126
|
+
export interface DialogRequest {
|
|
216
127
|
/**
|
|
217
|
-
*
|
|
128
|
+
* action
|
|
218
129
|
*/
|
|
219
|
-
'action':
|
|
130
|
+
'action': string;
|
|
220
131
|
/**
|
|
221
|
-
*
|
|
132
|
+
* text
|
|
222
133
|
*/
|
|
223
134
|
'text'?: string;
|
|
224
135
|
}
|
|
225
|
-
export
|
|
226
|
-
readonly Get: "get";
|
|
227
|
-
readonly Accept: "accept";
|
|
228
|
-
readonly Dismiss: "dismiss";
|
|
229
|
-
};
|
|
230
|
-
export type CombinedDialogRequestActionEnum = typeof CombinedDialogRequestActionEnum[keyof typeof CombinedDialogRequestActionEnum];
|
|
231
|
-
export interface CombinedEmulateRequest {
|
|
136
|
+
export interface EmulateRequest {
|
|
232
137
|
/**
|
|
233
|
-
*
|
|
138
|
+
* action
|
|
234
139
|
*/
|
|
235
|
-
'action'?:
|
|
140
|
+
'action'?: string;
|
|
236
141
|
/**
|
|
237
|
-
*
|
|
142
|
+
* device
|
|
238
143
|
*/
|
|
239
144
|
'device'?: string;
|
|
240
145
|
/**
|
|
241
|
-
*
|
|
146
|
+
* width
|
|
242
147
|
*/
|
|
243
148
|
'width'?: number;
|
|
244
149
|
/**
|
|
245
|
-
*
|
|
150
|
+
* height
|
|
246
151
|
*/
|
|
247
152
|
'height'?: number;
|
|
248
153
|
/**
|
|
249
|
-
*
|
|
154
|
+
* device_scale_factor
|
|
250
155
|
*/
|
|
251
156
|
'device_scale_factor'?: number;
|
|
252
157
|
/**
|
|
253
|
-
*
|
|
158
|
+
* mobile
|
|
254
159
|
*/
|
|
255
160
|
'mobile'?: boolean;
|
|
256
161
|
/**
|
|
257
|
-
*
|
|
162
|
+
* user_agent
|
|
258
163
|
*/
|
|
259
164
|
'user_agent'?: string;
|
|
260
165
|
}
|
|
261
|
-
export
|
|
262
|
-
readonly Set: "set";
|
|
263
|
-
readonly Clear: "clear";
|
|
264
|
-
readonly ListDevices: "list_devices";
|
|
265
|
-
};
|
|
266
|
-
export type CombinedEmulateRequestActionEnum = typeof CombinedEmulateRequestActionEnum[keyof typeof CombinedEmulateRequestActionEnum];
|
|
267
|
-
export interface CombinedGuiClickRequest {
|
|
268
|
-
/**
|
|
269
|
-
* Element selector (for selector mode)
|
|
270
|
-
*/
|
|
271
|
-
'selector'?: string;
|
|
272
|
-
/**
|
|
273
|
-
* Screen X coordinate (for coordinate mode)
|
|
274
|
-
*/
|
|
275
|
-
'x'?: number;
|
|
276
|
-
/**
|
|
277
|
-
* Screen Y coordinate (for coordinate mode)
|
|
278
|
-
*/
|
|
279
|
-
'y'?: number;
|
|
280
|
-
/**
|
|
281
|
-
* Mouse move duration (seconds)
|
|
282
|
-
*/
|
|
283
|
-
'timeframe'?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Relative X (0..1) within element to click
|
|
286
|
-
*/
|
|
287
|
-
'fx'?: number;
|
|
288
|
-
/**
|
|
289
|
-
* Relative Y (0..1) within element to click
|
|
290
|
-
*/
|
|
291
|
-
'fy'?: number;
|
|
292
|
-
}
|
|
293
|
-
export interface CombinedScrollRequest {
|
|
294
|
-
/**
|
|
295
|
-
* Element selector to scroll to
|
|
296
|
-
*/
|
|
297
|
-
'selector'?: string;
|
|
298
|
-
/**
|
|
299
|
-
* Selector type (css, id, name, xpath)
|
|
300
|
-
*/
|
|
301
|
-
'by'?: string;
|
|
302
|
-
/**
|
|
303
|
-
* X coordinate to scroll to (absolute)
|
|
304
|
-
*/
|
|
305
|
-
'x'?: number;
|
|
306
|
-
/**
|
|
307
|
-
* Y coordinate to scroll to (absolute)
|
|
308
|
-
*/
|
|
309
|
-
'y'?: number;
|
|
310
|
-
/**
|
|
311
|
-
* Horizontal scroll amount (relative)
|
|
312
|
-
*/
|
|
313
|
-
'delta_x'?: number;
|
|
314
|
-
/**
|
|
315
|
-
* Vertical scroll amount (relative)
|
|
316
|
-
*/
|
|
317
|
-
'delta_y'?: number;
|
|
166
|
+
export interface ErrorResponse {
|
|
318
167
|
/**
|
|
319
|
-
*
|
|
168
|
+
* Operation success (false)
|
|
320
169
|
*/
|
|
321
|
-
'
|
|
322
|
-
}
|
|
323
|
-
export interface ConsoleLogsRequest {
|
|
170
|
+
'success'?: boolean;
|
|
324
171
|
/**
|
|
325
|
-
*
|
|
172
|
+
* Error message
|
|
326
173
|
*/
|
|
327
|
-
'
|
|
174
|
+
'message'?: string;
|
|
328
175
|
/**
|
|
329
|
-
*
|
|
176
|
+
* Unix timestamp
|
|
330
177
|
*/
|
|
331
|
-
'
|
|
178
|
+
'timestamp'?: number;
|
|
332
179
|
}
|
|
333
|
-
export
|
|
334
|
-
readonly Get: "get";
|
|
335
|
-
readonly Clear: "clear";
|
|
336
|
-
};
|
|
337
|
-
export type ConsoleLogsRequestActionEnum = typeof ConsoleLogsRequestActionEnum[keyof typeof ConsoleLogsRequestActionEnum];
|
|
338
|
-
export interface ContentData {
|
|
339
|
-
/**
|
|
340
|
-
* Page HTML content
|
|
341
|
-
*/
|
|
342
|
-
'html'?: string;
|
|
343
|
-
/**
|
|
344
|
-
* Page title
|
|
345
|
-
*/
|
|
346
|
-
'title'?: string;
|
|
180
|
+
export interface ExecuteScriptRequest {
|
|
347
181
|
/**
|
|
348
|
-
*
|
|
182
|
+
* script
|
|
349
183
|
*/
|
|
350
|
-
'
|
|
184
|
+
'script': string;
|
|
351
185
|
}
|
|
352
|
-
export interface
|
|
353
|
-
/**
|
|
354
|
-
* Operation success
|
|
355
|
-
*/
|
|
356
|
-
'success': boolean;
|
|
357
|
-
/**
|
|
358
|
-
* Status message
|
|
359
|
-
*/
|
|
360
|
-
'message': string;
|
|
361
|
-
/**
|
|
362
|
-
* Unix timestamp
|
|
363
|
-
*/
|
|
364
|
-
'timestamp': number;
|
|
186
|
+
export interface FillFormRequest {
|
|
365
187
|
/**
|
|
366
|
-
*
|
|
188
|
+
* fields
|
|
367
189
|
*/
|
|
368
|
-
'
|
|
369
|
-
}
|
|
370
|
-
export interface CreateProfileRequest {
|
|
190
|
+
'fields': Array<object>;
|
|
371
191
|
/**
|
|
372
|
-
*
|
|
192
|
+
* by
|
|
373
193
|
*/
|
|
374
|
-
'
|
|
375
|
-
}
|
|
376
|
-
export interface DetectCoordinatesRequest {
|
|
377
|
-
/**
|
|
378
|
-
* Natural language description of element to find
|
|
379
|
-
*/
|
|
380
|
-
'prompt': string;
|
|
194
|
+
'by'?: string;
|
|
381
195
|
}
|
|
382
|
-
export interface
|
|
196
|
+
export interface GenericResponse {
|
|
383
197
|
/**
|
|
384
|
-
*
|
|
198
|
+
* Whether the operation succeeded
|
|
385
199
|
*/
|
|
386
200
|
'success'?: boolean;
|
|
387
201
|
/**
|
|
388
|
-
*
|
|
202
|
+
* Response message
|
|
389
203
|
*/
|
|
390
204
|
'message'?: string;
|
|
391
205
|
/**
|
|
392
|
-
*
|
|
393
|
-
*/
|
|
394
|
-
'timestamp'?: number;
|
|
395
|
-
/**
|
|
396
|
-
* Element description used
|
|
397
|
-
*/
|
|
398
|
-
'prompt'?: string;
|
|
399
|
-
/**
|
|
400
|
-
* Full coordinate information
|
|
401
|
-
*/
|
|
402
|
-
'coordinates'?: object;
|
|
403
|
-
/**
|
|
404
|
-
* Element bounding box {x, y, width, height}
|
|
405
|
-
*/
|
|
406
|
-
'bounding_box'?: object;
|
|
407
|
-
/**
|
|
408
|
-
* Recommended click point {x, y}
|
|
409
|
-
*/
|
|
410
|
-
'click_point'?: object;
|
|
411
|
-
/**
|
|
412
|
-
* Path to screenshot analyzed
|
|
413
|
-
*/
|
|
414
|
-
'screenshot_path'?: string;
|
|
415
|
-
/**
|
|
416
|
-
* Vision model used for detection
|
|
417
|
-
*/
|
|
418
|
-
'model_used'?: string;
|
|
419
|
-
/**
|
|
420
|
-
* Detection confidence (0.0-1.0)
|
|
421
|
-
*/
|
|
422
|
-
'confidence'?: number;
|
|
423
|
-
/**
|
|
424
|
-
* Models attempted if detection failed
|
|
425
|
-
*/
|
|
426
|
-
'models_tried'?: Array<string>;
|
|
427
|
-
/**
|
|
428
|
-
* Additional result data
|
|
206
|
+
* Response data
|
|
429
207
|
*/
|
|
430
208
|
'data'?: object;
|
|
431
|
-
/**
|
|
432
|
-
* Error message if failed
|
|
433
|
-
*/
|
|
434
|
-
'error'?: string;
|
|
435
209
|
}
|
|
436
|
-
export interface
|
|
437
|
-
/**
|
|
438
|
-
* Element selector
|
|
439
|
-
*/
|
|
440
|
-
'selector': string;
|
|
210
|
+
export interface GuiClickRequest {
|
|
441
211
|
/**
|
|
442
|
-
*
|
|
212
|
+
* selector
|
|
443
213
|
*/
|
|
444
|
-
'
|
|
214
|
+
'selector'?: string;
|
|
445
215
|
/**
|
|
446
|
-
*
|
|
216
|
+
* x
|
|
447
217
|
*/
|
|
448
|
-
'
|
|
218
|
+
'x'?: number;
|
|
449
219
|
/**
|
|
450
|
-
*
|
|
220
|
+
* y
|
|
451
221
|
*/
|
|
452
|
-
'
|
|
453
|
-
}
|
|
454
|
-
export declare const ElementDataRequestTypeEnum: {
|
|
455
|
-
readonly Text: "text";
|
|
456
|
-
readonly Attribute: "attribute";
|
|
457
|
-
readonly Property: "property";
|
|
458
|
-
};
|
|
459
|
-
export type ElementDataRequestTypeEnum = typeof ElementDataRequestTypeEnum[keyof typeof ElementDataRequestTypeEnum];
|
|
460
|
-
export interface ErrorResponse {
|
|
222
|
+
'y'?: number;
|
|
461
223
|
/**
|
|
462
|
-
*
|
|
224
|
+
* timeframe
|
|
463
225
|
*/
|
|
464
|
-
'
|
|
226
|
+
'timeframe'?: number;
|
|
465
227
|
/**
|
|
466
|
-
*
|
|
228
|
+
* fx
|
|
467
229
|
*/
|
|
468
|
-
'
|
|
230
|
+
'fx'?: number;
|
|
469
231
|
/**
|
|
470
|
-
*
|
|
232
|
+
* fy
|
|
471
233
|
*/
|
|
472
|
-
'
|
|
234
|
+
'fy'?: number;
|
|
473
235
|
}
|
|
474
|
-
export interface
|
|
236
|
+
export interface GuiHoverXyRequest {
|
|
475
237
|
/**
|
|
476
|
-
*
|
|
238
|
+
* x
|
|
477
239
|
*/
|
|
478
|
-
'
|
|
479
|
-
}
|
|
480
|
-
export interface ExecuteRequest {
|
|
240
|
+
'x': number;
|
|
481
241
|
/**
|
|
482
|
-
*
|
|
242
|
+
* y
|
|
483
243
|
*/
|
|
484
|
-
'
|
|
244
|
+
'y': number;
|
|
485
245
|
/**
|
|
486
|
-
*
|
|
246
|
+
* timeframe
|
|
487
247
|
*/
|
|
488
|
-
'
|
|
248
|
+
'timeframe'?: number;
|
|
489
249
|
}
|
|
490
|
-
export interface
|
|
250
|
+
export interface GuiPressKeysXyRequest {
|
|
491
251
|
/**
|
|
492
|
-
*
|
|
252
|
+
* x
|
|
493
253
|
*/
|
|
494
|
-
'
|
|
254
|
+
'x': number;
|
|
495
255
|
/**
|
|
496
|
-
*
|
|
256
|
+
* y
|
|
497
257
|
*/
|
|
498
|
-
'
|
|
258
|
+
'y': number;
|
|
499
259
|
/**
|
|
500
|
-
*
|
|
260
|
+
* keys
|
|
501
261
|
*/
|
|
502
|
-
'
|
|
262
|
+
'keys': string;
|
|
503
263
|
/**
|
|
504
|
-
*
|
|
264
|
+
* timeframe
|
|
505
265
|
*/
|
|
506
|
-
'
|
|
266
|
+
'timeframe'?: number;
|
|
507
267
|
}
|
|
508
|
-
export interface
|
|
268
|
+
export interface GuiTypeXyRequest {
|
|
509
269
|
/**
|
|
510
|
-
*
|
|
270
|
+
* x
|
|
511
271
|
*/
|
|
512
|
-
'
|
|
272
|
+
'x': number;
|
|
513
273
|
/**
|
|
514
|
-
*
|
|
274
|
+
* y
|
|
515
275
|
*/
|
|
516
|
-
'
|
|
517
|
-
}
|
|
518
|
-
export interface FormField {
|
|
276
|
+
'y': number;
|
|
519
277
|
/**
|
|
520
|
-
*
|
|
278
|
+
* text
|
|
521
279
|
*/
|
|
522
|
-
'
|
|
280
|
+
'text': string;
|
|
523
281
|
/**
|
|
524
|
-
*
|
|
282
|
+
* timeframe
|
|
525
283
|
*/
|
|
526
|
-
'
|
|
284
|
+
'timeframe'?: number;
|
|
527
285
|
}
|
|
528
286
|
export interface HealthStatus {
|
|
529
287
|
/**
|
|
@@ -541,98 +299,62 @@ export interface HealthStatus {
|
|
|
541
299
|
}
|
|
542
300
|
export interface HistoryRequest {
|
|
543
301
|
/**
|
|
544
|
-
*
|
|
545
|
-
*/
|
|
546
|
-
'action': HistoryRequestActionEnum;
|
|
547
|
-
}
|
|
548
|
-
export declare const HistoryRequestActionEnum: {
|
|
549
|
-
readonly Back: "back";
|
|
550
|
-
readonly Forward: "forward";
|
|
551
|
-
readonly Refresh: "refresh";
|
|
552
|
-
};
|
|
553
|
-
export type HistoryRequestActionEnum = typeof HistoryRequestActionEnum[keyof typeof HistoryRequestActionEnum];
|
|
554
|
-
export interface LogsResponse {
|
|
555
|
-
/**
|
|
556
|
-
* Operation success
|
|
557
|
-
*/
|
|
558
|
-
'success': boolean;
|
|
559
|
-
/**
|
|
560
|
-
* Status message
|
|
302
|
+
* action
|
|
561
303
|
*/
|
|
562
|
-
'
|
|
563
|
-
/**
|
|
564
|
-
* Unix timestamp
|
|
565
|
-
*/
|
|
566
|
-
'timestamp': number;
|
|
567
|
-
/**
|
|
568
|
-
* Log entries
|
|
569
|
-
*/
|
|
570
|
-
'data'?: object;
|
|
304
|
+
'action': string;
|
|
571
305
|
}
|
|
572
306
|
export interface MouseRequest {
|
|
573
307
|
/**
|
|
574
|
-
*
|
|
308
|
+
* action
|
|
575
309
|
*/
|
|
576
310
|
'action': string;
|
|
577
311
|
/**
|
|
578
|
-
*
|
|
312
|
+
* selector
|
|
579
313
|
*/
|
|
580
314
|
'selector'?: string;
|
|
581
315
|
/**
|
|
582
|
-
*
|
|
316
|
+
* source
|
|
583
317
|
*/
|
|
584
318
|
'source'?: string;
|
|
585
319
|
/**
|
|
586
|
-
*
|
|
320
|
+
* target
|
|
587
321
|
*/
|
|
588
322
|
'target'?: string;
|
|
589
323
|
/**
|
|
590
|
-
*
|
|
324
|
+
* by
|
|
591
325
|
*/
|
|
592
326
|
'by'?: string;
|
|
593
327
|
}
|
|
594
|
-
export interface
|
|
328
|
+
export interface NavigateBrowserRequest {
|
|
595
329
|
/**
|
|
596
|
-
*
|
|
330
|
+
* url
|
|
597
331
|
*/
|
|
598
332
|
'url': string;
|
|
599
333
|
/**
|
|
600
|
-
*
|
|
334
|
+
* timeout
|
|
601
335
|
*/
|
|
602
336
|
'timeout'?: number;
|
|
603
337
|
}
|
|
604
338
|
export interface NetworkLogsRequest {
|
|
605
339
|
/**
|
|
606
|
-
*
|
|
340
|
+
* action
|
|
607
341
|
*/
|
|
608
|
-
'action':
|
|
342
|
+
'action': string;
|
|
609
343
|
/**
|
|
610
|
-
*
|
|
344
|
+
* limit
|
|
611
345
|
*/
|
|
612
346
|
'limit'?: number;
|
|
613
347
|
}
|
|
614
|
-
export declare const NetworkLogsRequestActionEnum: {
|
|
615
|
-
readonly Get: "get";
|
|
616
|
-
readonly Clear: "clear";
|
|
617
|
-
};
|
|
618
|
-
export type NetworkLogsRequestActionEnum = typeof NetworkLogsRequestActionEnum[keyof typeof NetworkLogsRequestActionEnum];
|
|
619
348
|
export interface PerformanceRequest {
|
|
620
349
|
/**
|
|
621
|
-
*
|
|
350
|
+
* action
|
|
622
351
|
*/
|
|
623
|
-
'action':
|
|
352
|
+
'action': string;
|
|
624
353
|
/**
|
|
625
|
-
*
|
|
354
|
+
* categories
|
|
626
355
|
*/
|
|
627
356
|
'categories'?: string;
|
|
628
357
|
}
|
|
629
|
-
export declare const PerformanceRequestActionEnum: {
|
|
630
|
-
readonly StartTrace: "start_trace";
|
|
631
|
-
readonly StopTrace: "stop_trace";
|
|
632
|
-
readonly Metrics: "metrics";
|
|
633
|
-
readonly Analyze: "analyze";
|
|
634
|
-
};
|
|
635
|
-
export type PerformanceRequestActionEnum = typeof PerformanceRequestActionEnum[keyof typeof PerformanceRequestActionEnum];
|
|
636
358
|
export interface PoolScaled {
|
|
637
359
|
/**
|
|
638
360
|
* Operation success
|
|
@@ -651,37 +373,19 @@ export interface PoolScaled {
|
|
|
651
373
|
*/
|
|
652
374
|
'data'?: ScaleData;
|
|
653
375
|
}
|
|
654
|
-
export interface PoolStatusResponse {
|
|
655
|
-
/**
|
|
656
|
-
* Operation success
|
|
657
|
-
*/
|
|
658
|
-
'success': boolean;
|
|
659
|
-
/**
|
|
660
|
-
* Status message
|
|
661
|
-
*/
|
|
662
|
-
'message': string;
|
|
663
|
-
/**
|
|
664
|
-
* Unix timestamp
|
|
665
|
-
*/
|
|
666
|
-
'timestamp': number;
|
|
667
|
-
/**
|
|
668
|
-
* Pool status information
|
|
669
|
-
*/
|
|
670
|
-
'data'?: object;
|
|
671
|
-
}
|
|
672
376
|
export interface PressKeysRequest {
|
|
673
377
|
/**
|
|
674
|
-
*
|
|
378
|
+
* selector
|
|
675
379
|
*/
|
|
676
380
|
'selector': string;
|
|
677
381
|
/**
|
|
678
|
-
*
|
|
382
|
+
* keys
|
|
679
383
|
*/
|
|
680
|
-
'
|
|
384
|
+
'keys': string;
|
|
681
385
|
/**
|
|
682
|
-
*
|
|
386
|
+
* by
|
|
683
387
|
*/
|
|
684
|
-
'
|
|
388
|
+
'by'?: string;
|
|
685
389
|
}
|
|
686
390
|
export interface ProfileInfo {
|
|
687
391
|
/**
|
|
@@ -743,11 +447,11 @@ export interface ProfileResponse {
|
|
|
743
447
|
}
|
|
744
448
|
export interface ResizeRequest {
|
|
745
449
|
/**
|
|
746
|
-
*
|
|
450
|
+
* width
|
|
747
451
|
*/
|
|
748
452
|
'width': number;
|
|
749
453
|
/**
|
|
750
|
-
*
|
|
454
|
+
* height
|
|
751
455
|
*/
|
|
752
456
|
'height': number;
|
|
753
457
|
}
|
|
@@ -763,227 +467,141 @@ export interface ScalePool {
|
|
|
763
467
|
*/
|
|
764
468
|
'target_size': number;
|
|
765
469
|
}
|
|
766
|
-
export interface
|
|
470
|
+
export interface ScrollRequest {
|
|
767
471
|
/**
|
|
768
|
-
*
|
|
472
|
+
* selector
|
|
769
473
|
*/
|
|
770
|
-
'
|
|
474
|
+
'selector'?: string;
|
|
771
475
|
/**
|
|
772
|
-
*
|
|
476
|
+
* x
|
|
773
477
|
*/
|
|
774
|
-
'
|
|
775
|
-
}
|
|
776
|
-
export interface ScreenshotResponse {
|
|
478
|
+
'x'?: number;
|
|
777
479
|
/**
|
|
778
|
-
*
|
|
480
|
+
* y
|
|
779
481
|
*/
|
|
780
|
-
'
|
|
482
|
+
'y'?: number;
|
|
781
483
|
/**
|
|
782
|
-
*
|
|
484
|
+
* delta_x
|
|
783
485
|
*/
|
|
784
|
-
'
|
|
486
|
+
'delta_x'?: number;
|
|
785
487
|
/**
|
|
786
|
-
*
|
|
488
|
+
* delta_y
|
|
787
489
|
*/
|
|
788
|
-
'
|
|
490
|
+
'delta_y'?: number;
|
|
789
491
|
/**
|
|
790
|
-
*
|
|
492
|
+
* behavior
|
|
791
493
|
*/
|
|
792
|
-
'
|
|
494
|
+
'behavior'?: string;
|
|
495
|
+
/**
|
|
496
|
+
* by
|
|
497
|
+
*/
|
|
498
|
+
'by'?: string;
|
|
793
499
|
}
|
|
794
500
|
export interface SelectRequest {
|
|
795
501
|
/**
|
|
796
|
-
*
|
|
502
|
+
* selector
|
|
797
503
|
*/
|
|
798
504
|
'selector': string;
|
|
799
505
|
/**
|
|
800
|
-
*
|
|
801
|
-
*/
|
|
802
|
-
'by'?: string;
|
|
803
|
-
/**
|
|
804
|
-
* Action: select or options
|
|
506
|
+
* action
|
|
805
507
|
*/
|
|
806
|
-
'action'?:
|
|
508
|
+
'action'?: string;
|
|
807
509
|
/**
|
|
808
|
-
*
|
|
510
|
+
* value
|
|
809
511
|
*/
|
|
810
512
|
'value'?: string;
|
|
811
513
|
/**
|
|
812
|
-
*
|
|
514
|
+
* text
|
|
813
515
|
*/
|
|
814
516
|
'text'?: string;
|
|
815
517
|
/**
|
|
816
|
-
*
|
|
518
|
+
* index
|
|
817
519
|
*/
|
|
818
520
|
'index'?: number;
|
|
819
|
-
}
|
|
820
|
-
export declare const SelectRequestActionEnum: {
|
|
821
|
-
readonly Select: "select";
|
|
822
|
-
readonly Options: "options";
|
|
823
|
-
};
|
|
824
|
-
export type SelectRequestActionEnum = typeof SelectRequestActionEnum[keyof typeof SelectRequestActionEnum];
|
|
825
|
-
export interface SnapshotRequest {
|
|
826
521
|
/**
|
|
827
|
-
*
|
|
522
|
+
* by
|
|
828
523
|
*/
|
|
829
|
-
'
|
|
524
|
+
'by'?: string;
|
|
830
525
|
}
|
|
831
|
-
export interface
|
|
832
|
-
/**
|
|
833
|
-
* Operation success
|
|
834
|
-
*/
|
|
835
|
-
'success'?: boolean;
|
|
836
|
-
/**
|
|
837
|
-
* Success message
|
|
838
|
-
*/
|
|
839
|
-
'message'?: string;
|
|
840
|
-
/**
|
|
841
|
-
* Unix timestamp
|
|
842
|
-
*/
|
|
843
|
-
'timestamp'?: number;
|
|
526
|
+
export interface SnapshotRequest {
|
|
844
527
|
/**
|
|
845
|
-
*
|
|
528
|
+
* snapshot_type
|
|
846
529
|
*/
|
|
847
|
-
'
|
|
530
|
+
'snapshot_type'?: string;
|
|
848
531
|
}
|
|
849
532
|
export interface TabsRequest {
|
|
850
533
|
/**
|
|
851
|
-
*
|
|
534
|
+
* action
|
|
852
535
|
*/
|
|
853
|
-
'action':
|
|
536
|
+
'action': string;
|
|
854
537
|
/**
|
|
855
|
-
*
|
|
538
|
+
* url
|
|
856
539
|
*/
|
|
857
540
|
'url'?: string;
|
|
858
541
|
/**
|
|
859
|
-
*
|
|
542
|
+
* index
|
|
860
543
|
*/
|
|
861
544
|
'index'?: number;
|
|
862
545
|
/**
|
|
863
|
-
*
|
|
546
|
+
* handle
|
|
864
547
|
*/
|
|
865
548
|
'handle'?: string;
|
|
866
549
|
}
|
|
867
|
-
export
|
|
868
|
-
readonly List: "list";
|
|
869
|
-
readonly New: "new";
|
|
870
|
-
readonly Switch: "switch";
|
|
871
|
-
readonly Close: "close";
|
|
872
|
-
readonly Current: "current";
|
|
873
|
-
};
|
|
874
|
-
export type TabsRequestActionEnum = typeof TabsRequestActionEnum[keyof typeof TabsRequestActionEnum];
|
|
875
|
-
export interface TypeRequest {
|
|
550
|
+
export interface TakeScreenshotRequest {
|
|
876
551
|
/**
|
|
877
|
-
*
|
|
552
|
+
* full_page
|
|
878
553
|
*/
|
|
879
|
-
'
|
|
554
|
+
'full_page'?: boolean;
|
|
555
|
+
}
|
|
556
|
+
export interface TypeTextRequest {
|
|
880
557
|
/**
|
|
881
|
-
*
|
|
558
|
+
* selector
|
|
882
559
|
*/
|
|
883
|
-
'
|
|
560
|
+
'selector': string;
|
|
884
561
|
/**
|
|
885
|
-
*
|
|
562
|
+
* text
|
|
886
563
|
*/
|
|
887
564
|
'text': string;
|
|
888
565
|
/**
|
|
889
|
-
*
|
|
566
|
+
* timeout
|
|
890
567
|
*/
|
|
891
568
|
'timeout'?: number;
|
|
569
|
+
/**
|
|
570
|
+
* by
|
|
571
|
+
*/
|
|
572
|
+
'by'?: string;
|
|
892
573
|
}
|
|
893
574
|
export interface UploadFileRequest {
|
|
894
575
|
/**
|
|
895
|
-
*
|
|
576
|
+
* selector
|
|
896
577
|
*/
|
|
897
578
|
'selector': string;
|
|
898
579
|
/**
|
|
899
|
-
*
|
|
580
|
+
* file_path
|
|
900
581
|
*/
|
|
901
582
|
'file_path': string;
|
|
902
583
|
/**
|
|
903
|
-
*
|
|
584
|
+
* by
|
|
904
585
|
*/
|
|
905
586
|
'by'?: string;
|
|
906
587
|
}
|
|
907
|
-
export interface UrlData {
|
|
908
|
-
/**
|
|
909
|
-
* Current URL
|
|
910
|
-
*/
|
|
911
|
-
'url'?: string;
|
|
912
|
-
}
|
|
913
|
-
export interface UrlResponse {
|
|
914
|
-
/**
|
|
915
|
-
* Operation success
|
|
916
|
-
*/
|
|
917
|
-
'success': boolean;
|
|
918
|
-
/**
|
|
919
|
-
* Status message
|
|
920
|
-
*/
|
|
921
|
-
'message': string;
|
|
922
|
-
/**
|
|
923
|
-
* Unix timestamp
|
|
924
|
-
*/
|
|
925
|
-
'timestamp': number;
|
|
926
|
-
/**
|
|
927
|
-
* URL data
|
|
928
|
-
*/
|
|
929
|
-
'data'?: UrlData;
|
|
930
|
-
}
|
|
931
588
|
export interface WaitElementRequest {
|
|
932
589
|
/**
|
|
933
|
-
*
|
|
590
|
+
* selector
|
|
934
591
|
*/
|
|
935
592
|
'selector': string;
|
|
936
593
|
/**
|
|
937
|
-
*
|
|
594
|
+
* until
|
|
938
595
|
*/
|
|
939
|
-
'
|
|
940
|
-
/**
|
|
941
|
-
* Wait until: visible or hidden
|
|
942
|
-
*/
|
|
943
|
-
'until': WaitElementRequestUntilEnum;
|
|
596
|
+
'until': string;
|
|
944
597
|
/**
|
|
945
|
-
*
|
|
598
|
+
* timeout
|
|
946
599
|
*/
|
|
947
600
|
'timeout'?: number;
|
|
948
|
-
}
|
|
949
|
-
export declare const WaitElementRequestUntilEnum: {
|
|
950
|
-
readonly Visible: "visible";
|
|
951
|
-
readonly Hidden: "hidden";
|
|
952
|
-
};
|
|
953
|
-
export type WaitElementRequestUntilEnum = typeof WaitElementRequestUntilEnum[keyof typeof WaitElementRequestUntilEnum];
|
|
954
|
-
export interface WhatIsVisibleResult {
|
|
955
601
|
/**
|
|
956
|
-
*
|
|
602
|
+
* by
|
|
957
603
|
*/
|
|
958
|
-
'
|
|
959
|
-
/**
|
|
960
|
-
* Success message
|
|
961
|
-
*/
|
|
962
|
-
'message'?: string;
|
|
963
|
-
/**
|
|
964
|
-
* Unix timestamp
|
|
965
|
-
*/
|
|
966
|
-
'timestamp'?: number;
|
|
967
|
-
/**
|
|
968
|
-
* Comprehensive page state analysis
|
|
969
|
-
*/
|
|
970
|
-
'analysis'?: string;
|
|
971
|
-
/**
|
|
972
|
-
* AI model used for analysis
|
|
973
|
-
*/
|
|
974
|
-
'model'?: string;
|
|
975
|
-
/**
|
|
976
|
-
* URL to the screenshot
|
|
977
|
-
*/
|
|
978
|
-
'screenshot_url'?: string;
|
|
979
|
-
/**
|
|
980
|
-
* Path to the screenshot file
|
|
981
|
-
*/
|
|
982
|
-
'screenshot_path'?: string;
|
|
983
|
-
/**
|
|
984
|
-
* Error message if failed
|
|
985
|
-
*/
|
|
986
|
-
'error'?: string;
|
|
604
|
+
'by'?: string;
|
|
987
605
|
}
|
|
988
606
|
/**
|
|
989
607
|
* BrowserApi - axios parameter creator
|
|
@@ -991,41 +609,44 @@ export interface WhatIsVisibleResult {
|
|
|
991
609
|
export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
992
610
|
/**
|
|
993
611
|
*
|
|
994
|
-
* @summary
|
|
995
|
-
* @param {
|
|
996
|
-
* @param {CheckElementRequest} payload
|
|
612
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
613
|
+
* @param {BrowsersRequest} payload
|
|
997
614
|
* @param {*} [options] Override http request option.
|
|
998
615
|
* @throws {RequiredError}
|
|
999
616
|
*/
|
|
1000
|
-
|
|
617
|
+
browsers: (payload: BrowsersRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1001
618
|
/**
|
|
1002
|
-
*
|
|
1003
|
-
* @summary
|
|
1004
|
-
* @param {string} browserId
|
|
1005
|
-
* @param {
|
|
619
|
+
*
|
|
620
|
+
* @summary Check if element exists or is visible
|
|
621
|
+
* @param {string} browserId
|
|
622
|
+
* @param {string} selector selector
|
|
623
|
+
* @param {string} check check
|
|
624
|
+
* @param {string} [by] by
|
|
1006
625
|
* @param {*} [options] Override http request option.
|
|
1007
626
|
* @throws {RequiredError}
|
|
1008
627
|
*/
|
|
1009
|
-
|
|
628
|
+
checkElement: (browserId: string, selector: string, check: string, by?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1010
629
|
/**
|
|
1011
|
-
*
|
|
1012
|
-
* @summary
|
|
630
|
+
* Use if_visible=True to only click if visible.
|
|
631
|
+
* @summary Click element
|
|
632
|
+
* @param {string} browserId
|
|
633
|
+
* @param {ClickRequest} payload
|
|
1013
634
|
* @param {*} [options] Override http request option.
|
|
1014
635
|
* @throws {RequiredError}
|
|
1015
636
|
*/
|
|
1016
|
-
|
|
637
|
+
click: (browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1017
638
|
/**
|
|
1018
639
|
*
|
|
1019
|
-
* @summary Close
|
|
1020
|
-
* @param {string} browserId
|
|
640
|
+
* @summary Close browser instance
|
|
641
|
+
* @param {string} browserId
|
|
1021
642
|
* @param {*} [options] Override http request option.
|
|
1022
643
|
* @throws {RequiredError}
|
|
1023
644
|
*/
|
|
1024
645
|
closeBrowser: (browserId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1025
646
|
/**
|
|
1026
647
|
*
|
|
1027
|
-
* @summary
|
|
1028
|
-
* @param {string} browserId
|
|
648
|
+
* @summary Console logs: get or clear
|
|
649
|
+
* @param {string} browserId
|
|
1029
650
|
* @param {ConsoleLogsRequest} payload
|
|
1030
651
|
* @param {*} [options] Override http request option.
|
|
1031
652
|
* @throws {RequiredError}
|
|
@@ -1033,24 +654,16 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1033
654
|
consoleLogs: (browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1034
655
|
/**
|
|
1035
656
|
*
|
|
1036
|
-
* @summary Create
|
|
1037
|
-
* @param {
|
|
657
|
+
* @summary Create browser instance with optional persistent profile
|
|
658
|
+
* @param {CreateBrowserRequest} payload
|
|
1038
659
|
* @param {*} [options] Override http request option.
|
|
1039
660
|
* @throws {RequiredError}
|
|
1040
661
|
*/
|
|
1041
|
-
createBrowser: (payload:
|
|
662
|
+
createBrowser: (payload: CreateBrowserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1042
663
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
* @summary
|
|
1045
|
-
* @param {string} browserId
|
|
1046
|
-
* @param {*} [options] Override http request option.
|
|
1047
|
-
* @throws {RequiredError}
|
|
1048
|
-
*/
|
|
1049
|
-
deleteBrowser: (browserId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1050
|
-
/**
|
|
1051
|
-
*
|
|
1052
|
-
* @summary Detect element coordinates using AI vision
|
|
1053
|
-
* @param {string} browserId Unique browser identifier
|
|
664
|
+
* Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
|
|
665
|
+
* @summary Detect element coordinates using vision
|
|
666
|
+
* @param {string} browserId
|
|
1054
667
|
* @param {DetectCoordinatesRequest} payload
|
|
1055
668
|
* @param {*} [options] Override http request option.
|
|
1056
669
|
* @throws {RequiredError}
|
|
@@ -1058,35 +671,35 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1058
671
|
detectCoordinates: (browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1059
672
|
/**
|
|
1060
673
|
*
|
|
1061
|
-
* @summary
|
|
1062
|
-
* @param {string} browserId
|
|
1063
|
-
* @param {
|
|
674
|
+
* @summary Dialogs: get, accept, dismiss
|
|
675
|
+
* @param {string} browserId
|
|
676
|
+
* @param {DialogRequest} payload
|
|
1064
677
|
* @param {*} [options] Override http request option.
|
|
1065
678
|
* @throws {RequiredError}
|
|
1066
679
|
*/
|
|
1067
|
-
dialog: (browserId: string, payload:
|
|
680
|
+
dialog: (browserId: string, payload: DialogRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1068
681
|
/**
|
|
1069
682
|
*
|
|
1070
|
-
* @summary
|
|
1071
|
-
* @param {string} browserId
|
|
1072
|
-
* @param {
|
|
683
|
+
* @summary Emulation: set, clear, list_devices
|
|
684
|
+
* @param {string} browserId
|
|
685
|
+
* @param {EmulateRequest} payload
|
|
1073
686
|
* @param {*} [options] Override http request option.
|
|
1074
687
|
* @throws {RequiredError}
|
|
1075
688
|
*/
|
|
1076
|
-
emulate: (browserId: string, payload:
|
|
689
|
+
emulate: (browserId: string, payload: EmulateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1077
690
|
/**
|
|
1078
691
|
*
|
|
1079
692
|
* @summary Execute JavaScript
|
|
1080
|
-
* @param {string} browserId
|
|
1081
|
-
* @param {
|
|
693
|
+
* @param {string} browserId
|
|
694
|
+
* @param {ExecuteScriptRequest} payload
|
|
1082
695
|
* @param {*} [options] Override http request option.
|
|
1083
696
|
* @throws {RequiredError}
|
|
1084
697
|
*/
|
|
1085
|
-
executeScript: (browserId: string, payload:
|
|
698
|
+
executeScript: (browserId: string, payload: ExecuteScriptRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1086
699
|
/**
|
|
1087
700
|
*
|
|
1088
701
|
* @summary Fill multiple form fields
|
|
1089
|
-
* @param {string} browserId
|
|
702
|
+
* @param {string} browserId
|
|
1090
703
|
* @param {FillFormRequest} payload
|
|
1091
704
|
* @param {*} [options] Override http request option.
|
|
1092
705
|
* @throws {RequiredError}
|
|
@@ -1094,65 +707,72 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1094
707
|
fillForm: (browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1095
708
|
/**
|
|
1096
709
|
*
|
|
1097
|
-
* @summary Get
|
|
1098
|
-
* @param {string} browserId
|
|
710
|
+
* @summary Get page HTML
|
|
711
|
+
* @param {string} browserId
|
|
1099
712
|
* @param {*} [options] Override http request option.
|
|
1100
713
|
* @throws {RequiredError}
|
|
1101
714
|
*/
|
|
1102
|
-
|
|
715
|
+
getContent: (browserId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1103
716
|
/**
|
|
1104
717
|
*
|
|
1105
|
-
* @summary Get
|
|
1106
|
-
* @param {string} browserId
|
|
718
|
+
* @summary Get element text, attribute, or property
|
|
719
|
+
* @param {string} browserId
|
|
720
|
+
* @param {string} selector selector
|
|
721
|
+
* @param {string} dataType data_type
|
|
722
|
+
* @param {string} [name] name
|
|
723
|
+
* @param {string} [by] by
|
|
1107
724
|
* @param {*} [options] Override http request option.
|
|
1108
725
|
* @throws {RequiredError}
|
|
1109
726
|
*/
|
|
1110
|
-
|
|
727
|
+
getElementData: (browserId: string, selector: string, dataType: string, name?: string, by?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1111
728
|
/**
|
|
1112
729
|
*
|
|
1113
|
-
* @summary Get
|
|
1114
|
-
* @param {string} browserId
|
|
730
|
+
* @summary Get current URL
|
|
731
|
+
* @param {string} browserId
|
|
1115
732
|
* @param {*} [options] Override http request option.
|
|
1116
733
|
* @throws {RequiredError}
|
|
1117
734
|
*/
|
|
1118
|
-
|
|
735
|
+
getUrl: (browserId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1119
736
|
/**
|
|
1120
737
|
*
|
|
1121
|
-
* @summary
|
|
1122
|
-
* @param {string} browserId
|
|
1123
|
-
* @param {
|
|
738
|
+
* @summary GUI click by selector or coordinates
|
|
739
|
+
* @param {string} browserId
|
|
740
|
+
* @param {GuiClickRequest} payload
|
|
1124
741
|
* @param {*} [options] Override http request option.
|
|
1125
742
|
* @throws {RequiredError}
|
|
1126
743
|
*/
|
|
1127
|
-
|
|
744
|
+
guiClick: (browserId: string, payload: GuiClickRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1128
745
|
/**
|
|
1129
746
|
*
|
|
1130
|
-
* @summary
|
|
747
|
+
* @summary GUI hover at coordinates
|
|
748
|
+
* @param {string} browserId
|
|
749
|
+
* @param {GuiHoverXyRequest} payload
|
|
1131
750
|
* @param {*} [options] Override http request option.
|
|
1132
751
|
* @throws {RequiredError}
|
|
1133
752
|
*/
|
|
1134
|
-
|
|
753
|
+
guiHoverXy: (browserId: string, payload: GuiHoverXyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1135
754
|
/**
|
|
1136
755
|
*
|
|
1137
|
-
* @summary
|
|
1138
|
-
* @param {string} browserId
|
|
756
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
757
|
+
* @param {string} browserId
|
|
758
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
1139
759
|
* @param {*} [options] Override http request option.
|
|
1140
760
|
* @throws {RequiredError}
|
|
1141
761
|
*/
|
|
1142
|
-
|
|
762
|
+
guiPressKeysXy: (browserId: string, payload: GuiPressKeysXyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1143
763
|
/**
|
|
1144
764
|
*
|
|
1145
|
-
* @summary
|
|
1146
|
-
* @param {string} browserId
|
|
1147
|
-
* @param {
|
|
765
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
766
|
+
* @param {string} browserId
|
|
767
|
+
* @param {GuiTypeXyRequest} payload
|
|
1148
768
|
* @param {*} [options] Override http request option.
|
|
1149
769
|
* @throws {RequiredError}
|
|
1150
770
|
*/
|
|
1151
|
-
|
|
771
|
+
guiTypeXy: (browserId: string, payload: GuiTypeXyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1152
772
|
/**
|
|
1153
773
|
*
|
|
1154
|
-
* @summary
|
|
1155
|
-
* @param {string} browserId
|
|
774
|
+
* @summary History: back, forward, or refresh
|
|
775
|
+
* @param {string} browserId
|
|
1156
776
|
* @param {HistoryRequest} payload
|
|
1157
777
|
* @param {*} [options] Override http request option.
|
|
1158
778
|
* @throws {RequiredError}
|
|
@@ -1160,15 +780,8 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1160
780
|
history: (browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1161
781
|
/**
|
|
1162
782
|
*
|
|
1163
|
-
* @summary
|
|
1164
|
-
* @param {
|
|
1165
|
-
* @throws {RequiredError}
|
|
1166
|
-
*/
|
|
1167
|
-
listBrowsers: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1168
|
-
/**
|
|
1169
|
-
*
|
|
1170
|
-
* @summary Mouse action: hover or drag
|
|
1171
|
-
* @param {string} browserId Unique browser identifier
|
|
783
|
+
* @summary Mouse: hover or drag
|
|
784
|
+
* @param {string} browserId
|
|
1172
785
|
* @param {MouseRequest} payload
|
|
1173
786
|
* @param {*} [options] Override http request option.
|
|
1174
787
|
* @throws {RequiredError}
|
|
@@ -1176,17 +789,17 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1176
789
|
mouse: (browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1177
790
|
/**
|
|
1178
791
|
*
|
|
1179
|
-
* @summary Navigate to
|
|
1180
|
-
* @param {string} browserId
|
|
1181
|
-
* @param {
|
|
792
|
+
* @summary Navigate to URL
|
|
793
|
+
* @param {string} browserId
|
|
794
|
+
* @param {NavigateBrowserRequest} payload
|
|
1182
795
|
* @param {*} [options] Override http request option.
|
|
1183
796
|
* @throws {RequiredError}
|
|
1184
797
|
*/
|
|
1185
|
-
navigateBrowser: (browserId: string, payload:
|
|
798
|
+
navigateBrowser: (browserId: string, payload: NavigateBrowserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1186
799
|
/**
|
|
1187
800
|
*
|
|
1188
|
-
* @summary
|
|
1189
|
-
* @param {string} browserId
|
|
801
|
+
* @summary Network logs: get or clear
|
|
802
|
+
* @param {string} browserId
|
|
1190
803
|
* @param {NetworkLogsRequest} payload
|
|
1191
804
|
* @param {*} [options] Override http request option.
|
|
1192
805
|
* @throws {RequiredError}
|
|
@@ -1194,8 +807,8 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1194
807
|
networkLogs: (browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1195
808
|
/**
|
|
1196
809
|
*
|
|
1197
|
-
* @summary
|
|
1198
|
-
* @param {string} browserId
|
|
810
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
811
|
+
* @param {string} browserId
|
|
1199
812
|
* @param {PerformanceRequest} payload
|
|
1200
813
|
* @param {*} [options] Override http request option.
|
|
1201
814
|
* @throws {RequiredError}
|
|
@@ -1203,8 +816,8 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1203
816
|
performance: (browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1204
817
|
/**
|
|
1205
818
|
*
|
|
1206
|
-
* @summary Press keys
|
|
1207
|
-
* @param {string} browserId
|
|
819
|
+
* @summary Press keyboard keys
|
|
820
|
+
* @param {string} browserId
|
|
1208
821
|
* @param {PressKeysRequest} payload
|
|
1209
822
|
* @param {*} [options] Override http request option.
|
|
1210
823
|
* @throws {RequiredError}
|
|
@@ -1213,7 +826,7 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1213
826
|
/**
|
|
1214
827
|
*
|
|
1215
828
|
* @summary Resize viewport
|
|
1216
|
-
* @param {string} browserId
|
|
829
|
+
* @param {string} browserId
|
|
1217
830
|
* @param {ResizeRequest} payload
|
|
1218
831
|
* @param {*} [options] Override http request option.
|
|
1219
832
|
* @throws {RequiredError}
|
|
@@ -1221,17 +834,17 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1221
834
|
resize: (browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1222
835
|
/**
|
|
1223
836
|
*
|
|
1224
|
-
* @summary Scroll to element/
|
|
1225
|
-
* @param {string} browserId
|
|
1226
|
-
* @param {
|
|
837
|
+
* @summary Scroll to element/coords or by delta
|
|
838
|
+
* @param {string} browserId
|
|
839
|
+
* @param {ScrollRequest} payload
|
|
1227
840
|
* @param {*} [options] Override http request option.
|
|
1228
841
|
* @throws {RequiredError}
|
|
1229
842
|
*/
|
|
1230
|
-
scroll: (browserId: string, payload:
|
|
843
|
+
scroll: (browserId: string, payload: ScrollRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1231
844
|
/**
|
|
1232
845
|
*
|
|
1233
846
|
* @summary Select dropdown: select option or get options
|
|
1234
|
-
* @param {string} browserId
|
|
847
|
+
* @param {string} browserId
|
|
1235
848
|
* @param {SelectRequest} payload
|
|
1236
849
|
* @param {*} [options] Override http request option.
|
|
1237
850
|
* @throws {RequiredError}
|
|
@@ -1239,43 +852,44 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1239
852
|
select: (browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1240
853
|
/**
|
|
1241
854
|
*
|
|
1242
|
-
* @summary
|
|
1243
|
-
* @param {string} browserId
|
|
1244
|
-
* @param {
|
|
855
|
+
* @summary DOM or accessibility snapshot
|
|
856
|
+
* @param {string} browserId
|
|
857
|
+
* @param {SnapshotRequest} payload
|
|
1245
858
|
* @param {*} [options] Override http request option.
|
|
1246
859
|
* @throws {RequiredError}
|
|
1247
860
|
*/
|
|
1248
|
-
|
|
861
|
+
snapshot: (browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1249
862
|
/**
|
|
1250
863
|
*
|
|
1251
|
-
* @summary
|
|
1252
|
-
* @param {string} browserId
|
|
864
|
+
* @summary Tabs: list, new, switch, close, current
|
|
865
|
+
* @param {string} browserId
|
|
866
|
+
* @param {TabsRequest} payload
|
|
1253
867
|
* @param {*} [options] Override http request option.
|
|
1254
868
|
* @throws {RequiredError}
|
|
1255
869
|
*/
|
|
1256
|
-
|
|
870
|
+
tabs: (browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1257
871
|
/**
|
|
1258
872
|
*
|
|
1259
|
-
* @summary Take
|
|
1260
|
-
* @param {string} browserId
|
|
1261
|
-
* @param {
|
|
873
|
+
* @summary Take screenshot
|
|
874
|
+
* @param {string} browserId
|
|
875
|
+
* @param {TakeScreenshotRequest} payload
|
|
1262
876
|
* @param {*} [options] Override http request option.
|
|
1263
877
|
* @throws {RequiredError}
|
|
1264
878
|
*/
|
|
1265
|
-
|
|
879
|
+
takeScreenshot: (browserId: string, payload: TakeScreenshotRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1266
880
|
/**
|
|
1267
881
|
*
|
|
1268
|
-
* @summary Type text into
|
|
1269
|
-
* @param {string} browserId
|
|
1270
|
-
* @param {
|
|
882
|
+
* @summary Type text into element
|
|
883
|
+
* @param {string} browserId
|
|
884
|
+
* @param {TypeTextRequest} payload
|
|
1271
885
|
* @param {*} [options] Override http request option.
|
|
1272
886
|
* @throws {RequiredError}
|
|
1273
887
|
*/
|
|
1274
|
-
typeText: (browserId: string, payload:
|
|
888
|
+
typeText: (browserId: string, payload: TypeTextRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1275
889
|
/**
|
|
1276
890
|
*
|
|
1277
|
-
* @summary Upload
|
|
1278
|
-
* @param {string} browserId
|
|
891
|
+
* @summary Upload file to input
|
|
892
|
+
* @param {string} browserId
|
|
1279
893
|
* @param {UploadFileRequest} payload
|
|
1280
894
|
* @param {*} [options] Override http request option.
|
|
1281
895
|
* @throws {RequiredError}
|
|
@@ -1283,8 +897,8 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1283
897
|
uploadFile: (browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1284
898
|
/**
|
|
1285
899
|
*
|
|
1286
|
-
* @summary Wait for element to
|
|
1287
|
-
* @param {string} browserId
|
|
900
|
+
* @summary Wait for element to be visible or hidden
|
|
901
|
+
* @param {string} browserId
|
|
1288
902
|
* @param {WaitElementRequest} payload
|
|
1289
903
|
* @param {*} [options] Override http request option.
|
|
1290
904
|
* @throws {RequiredError}
|
|
@@ -1292,8 +906,8 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1292
906
|
waitElement: (browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1293
907
|
/**
|
|
1294
908
|
*
|
|
1295
|
-
* @summary
|
|
1296
|
-
* @param {string} browserId
|
|
909
|
+
* @summary AI page analysis - what\'s visible
|
|
910
|
+
* @param {string} browserId
|
|
1297
911
|
* @param {*} [options] Override http request option.
|
|
1298
912
|
* @throws {RequiredError}
|
|
1299
913
|
*/
|
|
@@ -1305,313 +919,309 @@ export declare const BrowserApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1305
919
|
export declare const BrowserApiFp: (configuration?: Configuration) => {
|
|
1306
920
|
/**
|
|
1307
921
|
*
|
|
1308
|
-
* @summary
|
|
1309
|
-
* @param {
|
|
1310
|
-
* @param {CheckElementRequest} payload
|
|
1311
|
-
* @param {*} [options] Override http request option.
|
|
1312
|
-
* @throws {RequiredError}
|
|
1313
|
-
*/
|
|
1314
|
-
checkElement(browserId: string, payload: CheckElementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>>;
|
|
1315
|
-
/**
|
|
1316
|
-
* Use if_visible=true to only click if visible.
|
|
1317
|
-
* @summary Click element
|
|
1318
|
-
* @param {string} browserId Unique browser identifier
|
|
1319
|
-
* @param {ClickRequest} payload
|
|
922
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
923
|
+
* @param {BrowsersRequest} payload
|
|
1320
924
|
* @param {*} [options] Override http request option.
|
|
1321
925
|
* @throws {RequiredError}
|
|
1322
926
|
*/
|
|
1323
|
-
|
|
927
|
+
browsers(payload: BrowsersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1324
928
|
/**
|
|
1325
929
|
*
|
|
1326
|
-
* @summary
|
|
930
|
+
* @summary Check if element exists or is visible
|
|
931
|
+
* @param {string} browserId
|
|
932
|
+
* @param {string} selector selector
|
|
933
|
+
* @param {string} check check
|
|
934
|
+
* @param {string} [by] by
|
|
1327
935
|
* @param {*} [options] Override http request option.
|
|
1328
936
|
* @throws {RequiredError}
|
|
1329
937
|
*/
|
|
1330
|
-
|
|
938
|
+
checkElement(browserId: string, selector: string, check: string, by?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1331
939
|
/**
|
|
1332
|
-
*
|
|
1333
|
-
* @summary
|
|
1334
|
-
* @param {string} browserId
|
|
940
|
+
* Use if_visible=True to only click if visible.
|
|
941
|
+
* @summary Click element
|
|
942
|
+
* @param {string} browserId
|
|
943
|
+
* @param {ClickRequest} payload
|
|
1335
944
|
* @param {*} [options] Override http request option.
|
|
1336
945
|
* @throws {RequiredError}
|
|
1337
946
|
*/
|
|
1338
|
-
|
|
947
|
+
click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1339
948
|
/**
|
|
1340
949
|
*
|
|
1341
|
-
* @summary
|
|
1342
|
-
* @param {string} browserId
|
|
1343
|
-
* @param {ConsoleLogsRequest} payload
|
|
950
|
+
* @summary Close browser instance
|
|
951
|
+
* @param {string} browserId
|
|
1344
952
|
* @param {*} [options] Override http request option.
|
|
1345
953
|
* @throws {RequiredError}
|
|
1346
954
|
*/
|
|
1347
|
-
|
|
955
|
+
closeBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1348
956
|
/**
|
|
1349
957
|
*
|
|
1350
|
-
* @summary
|
|
1351
|
-
* @param {
|
|
958
|
+
* @summary Console logs: get or clear
|
|
959
|
+
* @param {string} browserId
|
|
960
|
+
* @param {ConsoleLogsRequest} payload
|
|
1352
961
|
* @param {*} [options] Override http request option.
|
|
1353
962
|
* @throws {RequiredError}
|
|
1354
963
|
*/
|
|
1355
|
-
|
|
964
|
+
consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1356
965
|
/**
|
|
1357
966
|
*
|
|
1358
|
-
* @summary
|
|
1359
|
-
* @param {
|
|
967
|
+
* @summary Create browser instance with optional persistent profile
|
|
968
|
+
* @param {CreateBrowserRequest} payload
|
|
1360
969
|
* @param {*} [options] Override http request option.
|
|
1361
970
|
* @throws {RequiredError}
|
|
1362
971
|
*/
|
|
1363
|
-
|
|
972
|
+
createBrowser(payload: CreateBrowserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1364
973
|
/**
|
|
1365
|
-
*
|
|
1366
|
-
* @summary Detect element coordinates using
|
|
1367
|
-
* @param {string} browserId
|
|
974
|
+
* Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
|
|
975
|
+
* @summary Detect element coordinates using vision
|
|
976
|
+
* @param {string} browserId
|
|
1368
977
|
* @param {DetectCoordinatesRequest} payload
|
|
1369
978
|
* @param {*} [options] Override http request option.
|
|
1370
979
|
* @throws {RequiredError}
|
|
1371
980
|
*/
|
|
1372
|
-
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
981
|
+
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1373
982
|
/**
|
|
1374
983
|
*
|
|
1375
|
-
* @summary
|
|
1376
|
-
* @param {string} browserId
|
|
1377
|
-
* @param {
|
|
984
|
+
* @summary Dialogs: get, accept, dismiss
|
|
985
|
+
* @param {string} browserId
|
|
986
|
+
* @param {DialogRequest} payload
|
|
1378
987
|
* @param {*} [options] Override http request option.
|
|
1379
988
|
* @throws {RequiredError}
|
|
1380
989
|
*/
|
|
1381
|
-
dialog(browserId: string, payload:
|
|
990
|
+
dialog(browserId: string, payload: DialogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1382
991
|
/**
|
|
1383
992
|
*
|
|
1384
|
-
* @summary
|
|
1385
|
-
* @param {string} browserId
|
|
1386
|
-
* @param {
|
|
993
|
+
* @summary Emulation: set, clear, list_devices
|
|
994
|
+
* @param {string} browserId
|
|
995
|
+
* @param {EmulateRequest} payload
|
|
1387
996
|
* @param {*} [options] Override http request option.
|
|
1388
997
|
* @throws {RequiredError}
|
|
1389
998
|
*/
|
|
1390
|
-
emulate(browserId: string, payload:
|
|
999
|
+
emulate(browserId: string, payload: EmulateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1391
1000
|
/**
|
|
1392
1001
|
*
|
|
1393
1002
|
* @summary Execute JavaScript
|
|
1394
|
-
* @param {string} browserId
|
|
1395
|
-
* @param {
|
|
1003
|
+
* @param {string} browserId
|
|
1004
|
+
* @param {ExecuteScriptRequest} payload
|
|
1396
1005
|
* @param {*} [options] Override http request option.
|
|
1397
1006
|
* @throws {RequiredError}
|
|
1398
1007
|
*/
|
|
1399
|
-
executeScript(browserId: string, payload:
|
|
1008
|
+
executeScript(browserId: string, payload: ExecuteScriptRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1400
1009
|
/**
|
|
1401
1010
|
*
|
|
1402
1011
|
* @summary Fill multiple form fields
|
|
1403
|
-
* @param {string} browserId
|
|
1012
|
+
* @param {string} browserId
|
|
1404
1013
|
* @param {FillFormRequest} payload
|
|
1405
1014
|
* @param {*} [options] Override http request option.
|
|
1406
1015
|
* @throws {RequiredError}
|
|
1407
1016
|
*/
|
|
1408
|
-
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1017
|
+
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1409
1018
|
/**
|
|
1410
1019
|
*
|
|
1411
|
-
* @summary Get
|
|
1412
|
-
* @param {string} browserId
|
|
1020
|
+
* @summary Get page HTML
|
|
1021
|
+
* @param {string} browserId
|
|
1413
1022
|
* @param {*} [options] Override http request option.
|
|
1414
1023
|
* @throws {RequiredError}
|
|
1415
1024
|
*/
|
|
1416
|
-
|
|
1025
|
+
getContent(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1417
1026
|
/**
|
|
1418
1027
|
*
|
|
1419
|
-
* @summary Get
|
|
1420
|
-
* @param {string} browserId
|
|
1028
|
+
* @summary Get element text, attribute, or property
|
|
1029
|
+
* @param {string} browserId
|
|
1030
|
+
* @param {string} selector selector
|
|
1031
|
+
* @param {string} dataType data_type
|
|
1032
|
+
* @param {string} [name] name
|
|
1033
|
+
* @param {string} [by] by
|
|
1421
1034
|
* @param {*} [options] Override http request option.
|
|
1422
1035
|
* @throws {RequiredError}
|
|
1423
1036
|
*/
|
|
1424
|
-
|
|
1037
|
+
getElementData(browserId: string, selector: string, dataType: string, name?: string, by?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1425
1038
|
/**
|
|
1426
1039
|
*
|
|
1427
|
-
* @summary Get
|
|
1428
|
-
* @param {string} browserId
|
|
1040
|
+
* @summary Get current URL
|
|
1041
|
+
* @param {string} browserId
|
|
1429
1042
|
* @param {*} [options] Override http request option.
|
|
1430
1043
|
* @throws {RequiredError}
|
|
1431
1044
|
*/
|
|
1432
|
-
|
|
1045
|
+
getUrl(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1433
1046
|
/**
|
|
1434
1047
|
*
|
|
1435
|
-
* @summary
|
|
1436
|
-
* @param {string} browserId
|
|
1437
|
-
* @param {
|
|
1048
|
+
* @summary GUI click by selector or coordinates
|
|
1049
|
+
* @param {string} browserId
|
|
1050
|
+
* @param {GuiClickRequest} payload
|
|
1438
1051
|
* @param {*} [options] Override http request option.
|
|
1439
1052
|
* @throws {RequiredError}
|
|
1440
1053
|
*/
|
|
1441
|
-
|
|
1054
|
+
guiClick(browserId: string, payload: GuiClickRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1442
1055
|
/**
|
|
1443
1056
|
*
|
|
1444
|
-
* @summary
|
|
1057
|
+
* @summary GUI hover at coordinates
|
|
1058
|
+
* @param {string} browserId
|
|
1059
|
+
* @param {GuiHoverXyRequest} payload
|
|
1445
1060
|
* @param {*} [options] Override http request option.
|
|
1446
1061
|
* @throws {RequiredError}
|
|
1447
1062
|
*/
|
|
1448
|
-
|
|
1063
|
+
guiHoverXy(browserId: string, payload: GuiHoverXyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1449
1064
|
/**
|
|
1450
1065
|
*
|
|
1451
|
-
* @summary
|
|
1452
|
-
* @param {string} browserId
|
|
1066
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
1067
|
+
* @param {string} browserId
|
|
1068
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
1453
1069
|
* @param {*} [options] Override http request option.
|
|
1454
1070
|
* @throws {RequiredError}
|
|
1455
1071
|
*/
|
|
1456
|
-
|
|
1072
|
+
guiPressKeysXy(browserId: string, payload: GuiPressKeysXyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1457
1073
|
/**
|
|
1458
1074
|
*
|
|
1459
|
-
* @summary
|
|
1460
|
-
* @param {string} browserId
|
|
1461
|
-
* @param {
|
|
1075
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
1076
|
+
* @param {string} browserId
|
|
1077
|
+
* @param {GuiTypeXyRequest} payload
|
|
1462
1078
|
* @param {*} [options] Override http request option.
|
|
1463
1079
|
* @throws {RequiredError}
|
|
1464
1080
|
*/
|
|
1465
|
-
|
|
1081
|
+
guiTypeXy(browserId: string, payload: GuiTypeXyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1466
1082
|
/**
|
|
1467
1083
|
*
|
|
1468
|
-
* @summary
|
|
1469
|
-
* @param {string} browserId
|
|
1084
|
+
* @summary History: back, forward, or refresh
|
|
1085
|
+
* @param {string} browserId
|
|
1470
1086
|
* @param {HistoryRequest} payload
|
|
1471
1087
|
* @param {*} [options] Override http request option.
|
|
1472
1088
|
* @throws {RequiredError}
|
|
1473
1089
|
*/
|
|
1474
|
-
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1475
|
-
/**
|
|
1476
|
-
*
|
|
1477
|
-
* @summary List all active browser instances
|
|
1478
|
-
* @param {*} [options] Override http request option.
|
|
1479
|
-
* @throws {RequiredError}
|
|
1480
|
-
*/
|
|
1481
|
-
listBrowsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrowserList>>;
|
|
1090
|
+
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1482
1091
|
/**
|
|
1483
1092
|
*
|
|
1484
|
-
* @summary Mouse
|
|
1485
|
-
* @param {string} browserId
|
|
1093
|
+
* @summary Mouse: hover or drag
|
|
1094
|
+
* @param {string} browserId
|
|
1486
1095
|
* @param {MouseRequest} payload
|
|
1487
1096
|
* @param {*} [options] Override http request option.
|
|
1488
1097
|
* @throws {RequiredError}
|
|
1489
1098
|
*/
|
|
1490
|
-
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1099
|
+
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1491
1100
|
/**
|
|
1492
1101
|
*
|
|
1493
|
-
* @summary Navigate to
|
|
1494
|
-
* @param {string} browserId
|
|
1495
|
-
* @param {
|
|
1102
|
+
* @summary Navigate to URL
|
|
1103
|
+
* @param {string} browserId
|
|
1104
|
+
* @param {NavigateBrowserRequest} payload
|
|
1496
1105
|
* @param {*} [options] Override http request option.
|
|
1497
1106
|
* @throws {RequiredError}
|
|
1498
1107
|
*/
|
|
1499
|
-
navigateBrowser(browserId: string, payload:
|
|
1108
|
+
navigateBrowser(browserId: string, payload: NavigateBrowserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1500
1109
|
/**
|
|
1501
1110
|
*
|
|
1502
|
-
* @summary
|
|
1503
|
-
* @param {string} browserId
|
|
1111
|
+
* @summary Network logs: get or clear
|
|
1112
|
+
* @param {string} browserId
|
|
1504
1113
|
* @param {NetworkLogsRequest} payload
|
|
1505
1114
|
* @param {*} [options] Override http request option.
|
|
1506
1115
|
* @throws {RequiredError}
|
|
1507
1116
|
*/
|
|
1508
|
-
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1117
|
+
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1509
1118
|
/**
|
|
1510
1119
|
*
|
|
1511
|
-
* @summary
|
|
1512
|
-
* @param {string} browserId
|
|
1120
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
1121
|
+
* @param {string} browserId
|
|
1513
1122
|
* @param {PerformanceRequest} payload
|
|
1514
1123
|
* @param {*} [options] Override http request option.
|
|
1515
1124
|
* @throws {RequiredError}
|
|
1516
1125
|
*/
|
|
1517
|
-
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1126
|
+
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1518
1127
|
/**
|
|
1519
1128
|
*
|
|
1520
|
-
* @summary Press keys
|
|
1521
|
-
* @param {string} browserId
|
|
1129
|
+
* @summary Press keyboard keys
|
|
1130
|
+
* @param {string} browserId
|
|
1522
1131
|
* @param {PressKeysRequest} payload
|
|
1523
1132
|
* @param {*} [options] Override http request option.
|
|
1524
1133
|
* @throws {RequiredError}
|
|
1525
1134
|
*/
|
|
1526
|
-
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1135
|
+
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1527
1136
|
/**
|
|
1528
1137
|
*
|
|
1529
1138
|
* @summary Resize viewport
|
|
1530
|
-
* @param {string} browserId
|
|
1139
|
+
* @param {string} browserId
|
|
1531
1140
|
* @param {ResizeRequest} payload
|
|
1532
1141
|
* @param {*} [options] Override http request option.
|
|
1533
1142
|
* @throws {RequiredError}
|
|
1534
1143
|
*/
|
|
1535
|
-
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1144
|
+
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1536
1145
|
/**
|
|
1537
1146
|
*
|
|
1538
|
-
* @summary Scroll to element/
|
|
1539
|
-
* @param {string} browserId
|
|
1540
|
-
* @param {
|
|
1147
|
+
* @summary Scroll to element/coords or by delta
|
|
1148
|
+
* @param {string} browserId
|
|
1149
|
+
* @param {ScrollRequest} payload
|
|
1541
1150
|
* @param {*} [options] Override http request option.
|
|
1542
1151
|
* @throws {RequiredError}
|
|
1543
1152
|
*/
|
|
1544
|
-
scroll(browserId: string, payload:
|
|
1153
|
+
scroll(browserId: string, payload: ScrollRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1545
1154
|
/**
|
|
1546
1155
|
*
|
|
1547
1156
|
* @summary Select dropdown: select option or get options
|
|
1548
|
-
* @param {string} browserId
|
|
1157
|
+
* @param {string} browserId
|
|
1549
1158
|
* @param {SelectRequest} payload
|
|
1550
1159
|
* @param {*} [options] Override http request option.
|
|
1551
1160
|
* @throws {RequiredError}
|
|
1552
1161
|
*/
|
|
1553
|
-
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1162
|
+
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1554
1163
|
/**
|
|
1555
1164
|
*
|
|
1556
|
-
* @summary
|
|
1557
|
-
* @param {string} browserId
|
|
1558
|
-
* @param {
|
|
1165
|
+
* @summary DOM or accessibility snapshot
|
|
1166
|
+
* @param {string} browserId
|
|
1167
|
+
* @param {SnapshotRequest} payload
|
|
1559
1168
|
* @param {*} [options] Override http request option.
|
|
1560
1169
|
* @throws {RequiredError}
|
|
1561
1170
|
*/
|
|
1562
|
-
|
|
1171
|
+
snapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1563
1172
|
/**
|
|
1564
1173
|
*
|
|
1565
|
-
* @summary
|
|
1566
|
-
* @param {string} browserId
|
|
1174
|
+
* @summary Tabs: list, new, switch, close, current
|
|
1175
|
+
* @param {string} browserId
|
|
1176
|
+
* @param {TabsRequest} payload
|
|
1567
1177
|
* @param {*} [options] Override http request option.
|
|
1568
1178
|
* @throws {RequiredError}
|
|
1569
1179
|
*/
|
|
1570
|
-
|
|
1180
|
+
tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1571
1181
|
/**
|
|
1572
1182
|
*
|
|
1573
|
-
* @summary Take
|
|
1574
|
-
* @param {string} browserId
|
|
1575
|
-
* @param {
|
|
1183
|
+
* @summary Take screenshot
|
|
1184
|
+
* @param {string} browserId
|
|
1185
|
+
* @param {TakeScreenshotRequest} payload
|
|
1576
1186
|
* @param {*} [options] Override http request option.
|
|
1577
1187
|
* @throws {RequiredError}
|
|
1578
1188
|
*/
|
|
1579
|
-
|
|
1189
|
+
takeScreenshot(browserId: string, payload: TakeScreenshotRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1580
1190
|
/**
|
|
1581
1191
|
*
|
|
1582
|
-
* @summary Type text into
|
|
1583
|
-
* @param {string} browserId
|
|
1584
|
-
* @param {
|
|
1192
|
+
* @summary Type text into element
|
|
1193
|
+
* @param {string} browserId
|
|
1194
|
+
* @param {TypeTextRequest} payload
|
|
1585
1195
|
* @param {*} [options] Override http request option.
|
|
1586
1196
|
* @throws {RequiredError}
|
|
1587
1197
|
*/
|
|
1588
|
-
typeText(browserId: string, payload:
|
|
1198
|
+
typeText(browserId: string, payload: TypeTextRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1589
1199
|
/**
|
|
1590
1200
|
*
|
|
1591
|
-
* @summary Upload
|
|
1592
|
-
* @param {string} browserId
|
|
1201
|
+
* @summary Upload file to input
|
|
1202
|
+
* @param {string} browserId
|
|
1593
1203
|
* @param {UploadFileRequest} payload
|
|
1594
1204
|
* @param {*} [options] Override http request option.
|
|
1595
1205
|
* @throws {RequiredError}
|
|
1596
1206
|
*/
|
|
1597
|
-
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1207
|
+
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1598
1208
|
/**
|
|
1599
1209
|
*
|
|
1600
|
-
* @summary Wait for element to
|
|
1601
|
-
* @param {string} browserId
|
|
1210
|
+
* @summary Wait for element to be visible or hidden
|
|
1211
|
+
* @param {string} browserId
|
|
1602
1212
|
* @param {WaitElementRequest} payload
|
|
1603
1213
|
* @param {*} [options] Override http request option.
|
|
1604
1214
|
* @throws {RequiredError}
|
|
1605
1215
|
*/
|
|
1606
|
-
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1216
|
+
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1607
1217
|
/**
|
|
1608
1218
|
*
|
|
1609
|
-
* @summary
|
|
1610
|
-
* @param {string} browserId
|
|
1219
|
+
* @summary AI page analysis - what\'s visible
|
|
1220
|
+
* @param {string} browserId
|
|
1611
1221
|
* @param {*} [options] Override http request option.
|
|
1612
1222
|
* @throws {RequiredError}
|
|
1613
1223
|
*/
|
|
1614
|
-
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1224
|
+
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>>;
|
|
1615
1225
|
};
|
|
1616
1226
|
/**
|
|
1617
1227
|
* BrowserApi - factory interface
|
|
@@ -1619,313 +1229,309 @@ export declare const BrowserApiFp: (configuration?: Configuration) => {
|
|
|
1619
1229
|
export declare const BrowserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1620
1230
|
/**
|
|
1621
1231
|
*
|
|
1622
|
-
* @summary
|
|
1623
|
-
* @param {
|
|
1624
|
-
* @param {CheckElementRequest} payload
|
|
1232
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
1233
|
+
* @param {BrowsersRequest} payload
|
|
1625
1234
|
* @param {*} [options] Override http request option.
|
|
1626
1235
|
* @throws {RequiredError}
|
|
1627
1236
|
*/
|
|
1628
|
-
|
|
1629
|
-
/**
|
|
1630
|
-
* Use if_visible=true to only click if visible.
|
|
1631
|
-
* @summary Click element
|
|
1632
|
-
* @param {string} browserId Unique browser identifier
|
|
1633
|
-
* @param {ClickRequest} payload
|
|
1634
|
-
* @param {*} [options] Override http request option.
|
|
1635
|
-
* @throws {RequiredError}
|
|
1636
|
-
*/
|
|
1637
|
-
click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActionResult>;
|
|
1237
|
+
browsers(payload: BrowsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1638
1238
|
/**
|
|
1639
1239
|
*
|
|
1640
|
-
* @summary
|
|
1240
|
+
* @summary Check if element exists or is visible
|
|
1241
|
+
* @param {string} browserId
|
|
1242
|
+
* @param {string} selector selector
|
|
1243
|
+
* @param {string} check check
|
|
1244
|
+
* @param {string} [by] by
|
|
1641
1245
|
* @param {*} [options] Override http request option.
|
|
1642
1246
|
* @throws {RequiredError}
|
|
1643
1247
|
*/
|
|
1644
|
-
|
|
1248
|
+
checkElement(browserId: string, selector: string, check: string, by?: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1645
1249
|
/**
|
|
1646
|
-
*
|
|
1647
|
-
* @summary
|
|
1648
|
-
* @param {string} browserId
|
|
1250
|
+
* Use if_visible=True to only click if visible.
|
|
1251
|
+
* @summary Click element
|
|
1252
|
+
* @param {string} browserId
|
|
1253
|
+
* @param {ClickRequest} payload
|
|
1649
1254
|
* @param {*} [options] Override http request option.
|
|
1650
1255
|
* @throws {RequiredError}
|
|
1651
1256
|
*/
|
|
1652
|
-
|
|
1257
|
+
click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1653
1258
|
/**
|
|
1654
1259
|
*
|
|
1655
|
-
* @summary
|
|
1656
|
-
* @param {string} browserId
|
|
1657
|
-
* @param {ConsoleLogsRequest} payload
|
|
1260
|
+
* @summary Close browser instance
|
|
1261
|
+
* @param {string} browserId
|
|
1658
1262
|
* @param {*} [options] Override http request option.
|
|
1659
1263
|
* @throws {RequiredError}
|
|
1660
1264
|
*/
|
|
1661
|
-
|
|
1265
|
+
closeBrowser(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1662
1266
|
/**
|
|
1663
1267
|
*
|
|
1664
|
-
* @summary
|
|
1665
|
-
* @param {
|
|
1268
|
+
* @summary Console logs: get or clear
|
|
1269
|
+
* @param {string} browserId
|
|
1270
|
+
* @param {ConsoleLogsRequest} payload
|
|
1666
1271
|
* @param {*} [options] Override http request option.
|
|
1667
1272
|
* @throws {RequiredError}
|
|
1668
1273
|
*/
|
|
1669
|
-
|
|
1274
|
+
consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1670
1275
|
/**
|
|
1671
1276
|
*
|
|
1672
|
-
* @summary
|
|
1673
|
-
* @param {
|
|
1277
|
+
* @summary Create browser instance with optional persistent profile
|
|
1278
|
+
* @param {CreateBrowserRequest} payload
|
|
1674
1279
|
* @param {*} [options] Override http request option.
|
|
1675
1280
|
* @throws {RequiredError}
|
|
1676
1281
|
*/
|
|
1677
|
-
|
|
1282
|
+
createBrowser(payload: CreateBrowserRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1678
1283
|
/**
|
|
1679
|
-
*
|
|
1680
|
-
* @summary Detect element coordinates using
|
|
1681
|
-
* @param {string} browserId
|
|
1284
|
+
* Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
|
|
1285
|
+
* @summary Detect element coordinates using vision
|
|
1286
|
+
* @param {string} browserId
|
|
1682
1287
|
* @param {DetectCoordinatesRequest} payload
|
|
1683
1288
|
* @param {*} [options] Override http request option.
|
|
1684
1289
|
* @throws {RequiredError}
|
|
1685
1290
|
*/
|
|
1686
|
-
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1291
|
+
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1687
1292
|
/**
|
|
1688
1293
|
*
|
|
1689
|
-
* @summary
|
|
1690
|
-
* @param {string} browserId
|
|
1691
|
-
* @param {
|
|
1294
|
+
* @summary Dialogs: get, accept, dismiss
|
|
1295
|
+
* @param {string} browserId
|
|
1296
|
+
* @param {DialogRequest} payload
|
|
1692
1297
|
* @param {*} [options] Override http request option.
|
|
1693
1298
|
* @throws {RequiredError}
|
|
1694
1299
|
*/
|
|
1695
|
-
dialog(browserId: string, payload:
|
|
1300
|
+
dialog(browserId: string, payload: DialogRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1696
1301
|
/**
|
|
1697
1302
|
*
|
|
1698
|
-
* @summary
|
|
1699
|
-
* @param {string} browserId
|
|
1700
|
-
* @param {
|
|
1303
|
+
* @summary Emulation: set, clear, list_devices
|
|
1304
|
+
* @param {string} browserId
|
|
1305
|
+
* @param {EmulateRequest} payload
|
|
1701
1306
|
* @param {*} [options] Override http request option.
|
|
1702
1307
|
* @throws {RequiredError}
|
|
1703
1308
|
*/
|
|
1704
|
-
emulate(browserId: string, payload:
|
|
1309
|
+
emulate(browserId: string, payload: EmulateRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1705
1310
|
/**
|
|
1706
1311
|
*
|
|
1707
1312
|
* @summary Execute JavaScript
|
|
1708
|
-
* @param {string} browserId
|
|
1709
|
-
* @param {
|
|
1313
|
+
* @param {string} browserId
|
|
1314
|
+
* @param {ExecuteScriptRequest} payload
|
|
1710
1315
|
* @param {*} [options] Override http request option.
|
|
1711
1316
|
* @throws {RequiredError}
|
|
1712
1317
|
*/
|
|
1713
|
-
executeScript(browserId: string, payload:
|
|
1318
|
+
executeScript(browserId: string, payload: ExecuteScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1714
1319
|
/**
|
|
1715
1320
|
*
|
|
1716
1321
|
* @summary Fill multiple form fields
|
|
1717
|
-
* @param {string} browserId
|
|
1322
|
+
* @param {string} browserId
|
|
1718
1323
|
* @param {FillFormRequest} payload
|
|
1719
1324
|
* @param {*} [options] Override http request option.
|
|
1720
1325
|
* @throws {RequiredError}
|
|
1721
1326
|
*/
|
|
1722
|
-
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1327
|
+
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1723
1328
|
/**
|
|
1724
1329
|
*
|
|
1725
|
-
* @summary Get
|
|
1726
|
-
* @param {string} browserId
|
|
1330
|
+
* @summary Get page HTML
|
|
1331
|
+
* @param {string} browserId
|
|
1727
1332
|
* @param {*} [options] Override http request option.
|
|
1728
1333
|
* @throws {RequiredError}
|
|
1729
1334
|
*/
|
|
1730
|
-
|
|
1335
|
+
getContent(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1731
1336
|
/**
|
|
1732
1337
|
*
|
|
1733
|
-
* @summary Get
|
|
1734
|
-
* @param {string} browserId
|
|
1338
|
+
* @summary Get element text, attribute, or property
|
|
1339
|
+
* @param {string} browserId
|
|
1340
|
+
* @param {string} selector selector
|
|
1341
|
+
* @param {string} dataType data_type
|
|
1342
|
+
* @param {string} [name] name
|
|
1343
|
+
* @param {string} [by] by
|
|
1735
1344
|
* @param {*} [options] Override http request option.
|
|
1736
1345
|
* @throws {RequiredError}
|
|
1737
1346
|
*/
|
|
1738
|
-
|
|
1347
|
+
getElementData(browserId: string, selector: string, dataType: string, name?: string, by?: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1739
1348
|
/**
|
|
1740
1349
|
*
|
|
1741
|
-
* @summary Get
|
|
1742
|
-
* @param {string} browserId
|
|
1350
|
+
* @summary Get current URL
|
|
1351
|
+
* @param {string} browserId
|
|
1743
1352
|
* @param {*} [options] Override http request option.
|
|
1744
1353
|
* @throws {RequiredError}
|
|
1745
1354
|
*/
|
|
1746
|
-
|
|
1355
|
+
getUrl(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1747
1356
|
/**
|
|
1748
1357
|
*
|
|
1749
|
-
* @summary
|
|
1750
|
-
* @param {string} browserId
|
|
1751
|
-
* @param {
|
|
1358
|
+
* @summary GUI click by selector or coordinates
|
|
1359
|
+
* @param {string} browserId
|
|
1360
|
+
* @param {GuiClickRequest} payload
|
|
1752
1361
|
* @param {*} [options] Override http request option.
|
|
1753
1362
|
* @throws {RequiredError}
|
|
1754
1363
|
*/
|
|
1755
|
-
|
|
1364
|
+
guiClick(browserId: string, payload: GuiClickRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1756
1365
|
/**
|
|
1757
1366
|
*
|
|
1758
|
-
* @summary
|
|
1367
|
+
* @summary GUI hover at coordinates
|
|
1368
|
+
* @param {string} browserId
|
|
1369
|
+
* @param {GuiHoverXyRequest} payload
|
|
1759
1370
|
* @param {*} [options] Override http request option.
|
|
1760
1371
|
* @throws {RequiredError}
|
|
1761
1372
|
*/
|
|
1762
|
-
|
|
1373
|
+
guiHoverXy(browserId: string, payload: GuiHoverXyRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1763
1374
|
/**
|
|
1764
1375
|
*
|
|
1765
|
-
* @summary
|
|
1766
|
-
* @param {string} browserId
|
|
1376
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
1377
|
+
* @param {string} browserId
|
|
1378
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
1767
1379
|
* @param {*} [options] Override http request option.
|
|
1768
1380
|
* @throws {RequiredError}
|
|
1769
1381
|
*/
|
|
1770
|
-
|
|
1382
|
+
guiPressKeysXy(browserId: string, payload: GuiPressKeysXyRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1771
1383
|
/**
|
|
1772
1384
|
*
|
|
1773
|
-
* @summary
|
|
1774
|
-
* @param {string} browserId
|
|
1775
|
-
* @param {
|
|
1385
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
1386
|
+
* @param {string} browserId
|
|
1387
|
+
* @param {GuiTypeXyRequest} payload
|
|
1776
1388
|
* @param {*} [options] Override http request option.
|
|
1777
1389
|
* @throws {RequiredError}
|
|
1778
1390
|
*/
|
|
1779
|
-
|
|
1391
|
+
guiTypeXy(browserId: string, payload: GuiTypeXyRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1780
1392
|
/**
|
|
1781
1393
|
*
|
|
1782
|
-
* @summary
|
|
1783
|
-
* @param {string} browserId
|
|
1394
|
+
* @summary History: back, forward, or refresh
|
|
1395
|
+
* @param {string} browserId
|
|
1784
1396
|
* @param {HistoryRequest} payload
|
|
1785
1397
|
* @param {*} [options] Override http request option.
|
|
1786
1398
|
* @throws {RequiredError}
|
|
1787
1399
|
*/
|
|
1788
|
-
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1400
|
+
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1789
1401
|
/**
|
|
1790
1402
|
*
|
|
1791
|
-
* @summary
|
|
1792
|
-
* @param {
|
|
1793
|
-
* @throws {RequiredError}
|
|
1794
|
-
*/
|
|
1795
|
-
listBrowsers(options?: RawAxiosRequestConfig): AxiosPromise<BrowserList>;
|
|
1796
|
-
/**
|
|
1797
|
-
*
|
|
1798
|
-
* @summary Mouse action: hover or drag
|
|
1799
|
-
* @param {string} browserId Unique browser identifier
|
|
1403
|
+
* @summary Mouse: hover or drag
|
|
1404
|
+
* @param {string} browserId
|
|
1800
1405
|
* @param {MouseRequest} payload
|
|
1801
1406
|
* @param {*} [options] Override http request option.
|
|
1802
1407
|
* @throws {RequiredError}
|
|
1803
1408
|
*/
|
|
1804
|
-
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1409
|
+
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1805
1410
|
/**
|
|
1806
1411
|
*
|
|
1807
|
-
* @summary Navigate to
|
|
1808
|
-
* @param {string} browserId
|
|
1809
|
-
* @param {
|
|
1412
|
+
* @summary Navigate to URL
|
|
1413
|
+
* @param {string} browserId
|
|
1414
|
+
* @param {NavigateBrowserRequest} payload
|
|
1810
1415
|
* @param {*} [options] Override http request option.
|
|
1811
1416
|
* @throws {RequiredError}
|
|
1812
1417
|
*/
|
|
1813
|
-
navigateBrowser(browserId: string, payload:
|
|
1418
|
+
navigateBrowser(browserId: string, payload: NavigateBrowserRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1814
1419
|
/**
|
|
1815
1420
|
*
|
|
1816
|
-
* @summary
|
|
1817
|
-
* @param {string} browserId
|
|
1421
|
+
* @summary Network logs: get or clear
|
|
1422
|
+
* @param {string} browserId
|
|
1818
1423
|
* @param {NetworkLogsRequest} payload
|
|
1819
1424
|
* @param {*} [options] Override http request option.
|
|
1820
1425
|
* @throws {RequiredError}
|
|
1821
1426
|
*/
|
|
1822
|
-
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1427
|
+
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1823
1428
|
/**
|
|
1824
1429
|
*
|
|
1825
|
-
* @summary
|
|
1826
|
-
* @param {string} browserId
|
|
1430
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
1431
|
+
* @param {string} browserId
|
|
1827
1432
|
* @param {PerformanceRequest} payload
|
|
1828
1433
|
* @param {*} [options] Override http request option.
|
|
1829
1434
|
* @throws {RequiredError}
|
|
1830
1435
|
*/
|
|
1831
|
-
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1436
|
+
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1832
1437
|
/**
|
|
1833
1438
|
*
|
|
1834
|
-
* @summary Press keys
|
|
1835
|
-
* @param {string} browserId
|
|
1439
|
+
* @summary Press keyboard keys
|
|
1440
|
+
* @param {string} browserId
|
|
1836
1441
|
* @param {PressKeysRequest} payload
|
|
1837
1442
|
* @param {*} [options] Override http request option.
|
|
1838
1443
|
* @throws {RequiredError}
|
|
1839
1444
|
*/
|
|
1840
|
-
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1445
|
+
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1841
1446
|
/**
|
|
1842
1447
|
*
|
|
1843
1448
|
* @summary Resize viewport
|
|
1844
|
-
* @param {string} browserId
|
|
1449
|
+
* @param {string} browserId
|
|
1845
1450
|
* @param {ResizeRequest} payload
|
|
1846
1451
|
* @param {*} [options] Override http request option.
|
|
1847
1452
|
* @throws {RequiredError}
|
|
1848
1453
|
*/
|
|
1849
|
-
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1454
|
+
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1850
1455
|
/**
|
|
1851
1456
|
*
|
|
1852
|
-
* @summary Scroll to element/
|
|
1853
|
-
* @param {string} browserId
|
|
1854
|
-
* @param {
|
|
1457
|
+
* @summary Scroll to element/coords or by delta
|
|
1458
|
+
* @param {string} browserId
|
|
1459
|
+
* @param {ScrollRequest} payload
|
|
1855
1460
|
* @param {*} [options] Override http request option.
|
|
1856
1461
|
* @throws {RequiredError}
|
|
1857
1462
|
*/
|
|
1858
|
-
scroll(browserId: string, payload:
|
|
1463
|
+
scroll(browserId: string, payload: ScrollRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1859
1464
|
/**
|
|
1860
1465
|
*
|
|
1861
1466
|
* @summary Select dropdown: select option or get options
|
|
1862
|
-
* @param {string} browserId
|
|
1467
|
+
* @param {string} browserId
|
|
1863
1468
|
* @param {SelectRequest} payload
|
|
1864
1469
|
* @param {*} [options] Override http request option.
|
|
1865
1470
|
* @throws {RequiredError}
|
|
1866
1471
|
*/
|
|
1867
|
-
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1472
|
+
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1868
1473
|
/**
|
|
1869
1474
|
*
|
|
1870
|
-
* @summary
|
|
1871
|
-
* @param {string} browserId
|
|
1872
|
-
* @param {
|
|
1475
|
+
* @summary DOM or accessibility snapshot
|
|
1476
|
+
* @param {string} browserId
|
|
1477
|
+
* @param {SnapshotRequest} payload
|
|
1873
1478
|
* @param {*} [options] Override http request option.
|
|
1874
1479
|
* @throws {RequiredError}
|
|
1875
1480
|
*/
|
|
1876
|
-
|
|
1481
|
+
snapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1877
1482
|
/**
|
|
1878
1483
|
*
|
|
1879
|
-
* @summary
|
|
1880
|
-
* @param {string} browserId
|
|
1484
|
+
* @summary Tabs: list, new, switch, close, current
|
|
1485
|
+
* @param {string} browserId
|
|
1486
|
+
* @param {TabsRequest} payload
|
|
1881
1487
|
* @param {*} [options] Override http request option.
|
|
1882
1488
|
* @throws {RequiredError}
|
|
1883
1489
|
*/
|
|
1884
|
-
|
|
1490
|
+
tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1885
1491
|
/**
|
|
1886
1492
|
*
|
|
1887
|
-
* @summary Take
|
|
1888
|
-
* @param {string} browserId
|
|
1889
|
-
* @param {
|
|
1493
|
+
* @summary Take screenshot
|
|
1494
|
+
* @param {string} browserId
|
|
1495
|
+
* @param {TakeScreenshotRequest} payload
|
|
1890
1496
|
* @param {*} [options] Override http request option.
|
|
1891
1497
|
* @throws {RequiredError}
|
|
1892
1498
|
*/
|
|
1893
|
-
|
|
1499
|
+
takeScreenshot(browserId: string, payload: TakeScreenshotRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1894
1500
|
/**
|
|
1895
1501
|
*
|
|
1896
|
-
* @summary Type text into
|
|
1897
|
-
* @param {string} browserId
|
|
1898
|
-
* @param {
|
|
1502
|
+
* @summary Type text into element
|
|
1503
|
+
* @param {string} browserId
|
|
1504
|
+
* @param {TypeTextRequest} payload
|
|
1899
1505
|
* @param {*} [options] Override http request option.
|
|
1900
1506
|
* @throws {RequiredError}
|
|
1901
1507
|
*/
|
|
1902
|
-
typeText(browserId: string, payload:
|
|
1508
|
+
typeText(browserId: string, payload: TypeTextRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1903
1509
|
/**
|
|
1904
1510
|
*
|
|
1905
|
-
* @summary Upload
|
|
1906
|
-
* @param {string} browserId
|
|
1511
|
+
* @summary Upload file to input
|
|
1512
|
+
* @param {string} browserId
|
|
1907
1513
|
* @param {UploadFileRequest} payload
|
|
1908
1514
|
* @param {*} [options] Override http request option.
|
|
1909
1515
|
* @throws {RequiredError}
|
|
1910
1516
|
*/
|
|
1911
|
-
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1517
|
+
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1912
1518
|
/**
|
|
1913
1519
|
*
|
|
1914
|
-
* @summary Wait for element to
|
|
1915
|
-
* @param {string} browserId
|
|
1520
|
+
* @summary Wait for element to be visible or hidden
|
|
1521
|
+
* @param {string} browserId
|
|
1916
1522
|
* @param {WaitElementRequest} payload
|
|
1917
1523
|
* @param {*} [options] Override http request option.
|
|
1918
1524
|
* @throws {RequiredError}
|
|
1919
1525
|
*/
|
|
1920
|
-
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1526
|
+
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1921
1527
|
/**
|
|
1922
1528
|
*
|
|
1923
|
-
* @summary
|
|
1924
|
-
* @param {string} browserId
|
|
1529
|
+
* @summary AI page analysis - what\'s visible
|
|
1530
|
+
* @param {string} browserId
|
|
1925
1531
|
* @param {*} [options] Override http request option.
|
|
1926
1532
|
* @throws {RequiredError}
|
|
1927
1533
|
*/
|
|
1928
|
-
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1534
|
+
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse>;
|
|
1929
1535
|
};
|
|
1930
1536
|
/**
|
|
1931
1537
|
* BrowserApi - object-oriented interface
|
|
@@ -1933,313 +1539,309 @@ export declare const BrowserApiFactory: (configuration?: Configuration, basePath
|
|
|
1933
1539
|
export declare class BrowserApi extends BaseAPI {
|
|
1934
1540
|
/**
|
|
1935
1541
|
*
|
|
1936
|
-
* @summary
|
|
1937
|
-
* @param {
|
|
1938
|
-
* @param {CheckElementRequest} payload
|
|
1542
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
1543
|
+
* @param {BrowsersRequest} payload
|
|
1939
1544
|
* @param {*} [options] Override http request option.
|
|
1940
1545
|
* @throws {RequiredError}
|
|
1941
1546
|
*/
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* Use if_visible=true to only click if visible.
|
|
1945
|
-
* @summary Click element
|
|
1946
|
-
* @param {string} browserId Unique browser identifier
|
|
1947
|
-
* @param {ClickRequest} payload
|
|
1948
|
-
* @param {*} [options] Override http request option.
|
|
1949
|
-
* @throws {RequiredError}
|
|
1950
|
-
*/
|
|
1951
|
-
click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ActionResult, any, {}>>;
|
|
1547
|
+
browsers(payload: BrowsersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
1952
1548
|
/**
|
|
1953
1549
|
*
|
|
1954
|
-
* @summary
|
|
1550
|
+
* @summary Check if element exists or is visible
|
|
1551
|
+
* @param {string} browserId
|
|
1552
|
+
* @param {string} selector selector
|
|
1553
|
+
* @param {string} check check
|
|
1554
|
+
* @param {string} [by] by
|
|
1955
1555
|
* @param {*} [options] Override http request option.
|
|
1956
1556
|
* @throws {RequiredError}
|
|
1957
1557
|
*/
|
|
1958
|
-
|
|
1558
|
+
checkElement(browserId: string, selector: string, check: string, by?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
1959
1559
|
/**
|
|
1960
|
-
*
|
|
1961
|
-
* @summary
|
|
1962
|
-
* @param {string} browserId
|
|
1560
|
+
* Use if_visible=True to only click if visible.
|
|
1561
|
+
* @summary Click element
|
|
1562
|
+
* @param {string} browserId
|
|
1563
|
+
* @param {ClickRequest} payload
|
|
1963
1564
|
* @param {*} [options] Override http request option.
|
|
1964
1565
|
* @throws {RequiredError}
|
|
1965
1566
|
*/
|
|
1966
|
-
|
|
1567
|
+
click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
1967
1568
|
/**
|
|
1968
1569
|
*
|
|
1969
|
-
* @summary
|
|
1970
|
-
* @param {string} browserId
|
|
1971
|
-
* @param {ConsoleLogsRequest} payload
|
|
1570
|
+
* @summary Close browser instance
|
|
1571
|
+
* @param {string} browserId
|
|
1972
1572
|
* @param {*} [options] Override http request option.
|
|
1973
1573
|
* @throws {RequiredError}
|
|
1974
1574
|
*/
|
|
1975
|
-
|
|
1575
|
+
closeBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
1976
1576
|
/**
|
|
1977
1577
|
*
|
|
1978
|
-
* @summary
|
|
1979
|
-
* @param {
|
|
1578
|
+
* @summary Console logs: get or clear
|
|
1579
|
+
* @param {string} browserId
|
|
1580
|
+
* @param {ConsoleLogsRequest} payload
|
|
1980
1581
|
* @param {*} [options] Override http request option.
|
|
1981
1582
|
* @throws {RequiredError}
|
|
1982
1583
|
*/
|
|
1983
|
-
|
|
1584
|
+
consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
1984
1585
|
/**
|
|
1985
1586
|
*
|
|
1986
|
-
* @summary
|
|
1987
|
-
* @param {
|
|
1587
|
+
* @summary Create browser instance with optional persistent profile
|
|
1588
|
+
* @param {CreateBrowserRequest} payload
|
|
1988
1589
|
* @param {*} [options] Override http request option.
|
|
1989
1590
|
* @throws {RequiredError}
|
|
1990
1591
|
*/
|
|
1991
|
-
|
|
1592
|
+
createBrowser(payload: CreateBrowserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
1992
1593
|
/**
|
|
1993
|
-
*
|
|
1994
|
-
* @summary Detect element coordinates using
|
|
1995
|
-
* @param {string} browserId
|
|
1594
|
+
* Args: browser_id: Browser instance identifier prompt: Natural language description of element to find fx: Fractional x offset for click point (0.0=left, 0.5=center, 1.0=right). If None, auto-bias is applied for wide elements (0.25 for aspect ratio > 10). fy: Fractional y offset for click point (0.0=top, 0.5=center, 1.0=bottom).
|
|
1595
|
+
* @summary Detect element coordinates using vision
|
|
1596
|
+
* @param {string} browserId
|
|
1996
1597
|
* @param {DetectCoordinatesRequest} payload
|
|
1997
1598
|
* @param {*} [options] Override http request option.
|
|
1998
1599
|
* @throws {RequiredError}
|
|
1999
1600
|
*/
|
|
2000
|
-
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1601
|
+
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2001
1602
|
/**
|
|
2002
1603
|
*
|
|
2003
|
-
* @summary
|
|
2004
|
-
* @param {string} browserId
|
|
2005
|
-
* @param {
|
|
1604
|
+
* @summary Dialogs: get, accept, dismiss
|
|
1605
|
+
* @param {string} browserId
|
|
1606
|
+
* @param {DialogRequest} payload
|
|
2006
1607
|
* @param {*} [options] Override http request option.
|
|
2007
1608
|
* @throws {RequiredError}
|
|
2008
1609
|
*/
|
|
2009
|
-
dialog(browserId: string, payload:
|
|
1610
|
+
dialog(browserId: string, payload: DialogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2010
1611
|
/**
|
|
2011
1612
|
*
|
|
2012
|
-
* @summary
|
|
2013
|
-
* @param {string} browserId
|
|
2014
|
-
* @param {
|
|
1613
|
+
* @summary Emulation: set, clear, list_devices
|
|
1614
|
+
* @param {string} browserId
|
|
1615
|
+
* @param {EmulateRequest} payload
|
|
2015
1616
|
* @param {*} [options] Override http request option.
|
|
2016
1617
|
* @throws {RequiredError}
|
|
2017
1618
|
*/
|
|
2018
|
-
emulate(browserId: string, payload:
|
|
1619
|
+
emulate(browserId: string, payload: EmulateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2019
1620
|
/**
|
|
2020
1621
|
*
|
|
2021
1622
|
* @summary Execute JavaScript
|
|
2022
|
-
* @param {string} browserId
|
|
2023
|
-
* @param {
|
|
1623
|
+
* @param {string} browserId
|
|
1624
|
+
* @param {ExecuteScriptRequest} payload
|
|
2024
1625
|
* @param {*} [options] Override http request option.
|
|
2025
1626
|
* @throws {RequiredError}
|
|
2026
1627
|
*/
|
|
2027
|
-
executeScript(browserId: string, payload:
|
|
1628
|
+
executeScript(browserId: string, payload: ExecuteScriptRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2028
1629
|
/**
|
|
2029
1630
|
*
|
|
2030
1631
|
* @summary Fill multiple form fields
|
|
2031
|
-
* @param {string} browserId
|
|
1632
|
+
* @param {string} browserId
|
|
2032
1633
|
* @param {FillFormRequest} payload
|
|
2033
1634
|
* @param {*} [options] Override http request option.
|
|
2034
1635
|
* @throws {RequiredError}
|
|
2035
1636
|
*/
|
|
2036
|
-
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1637
|
+
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2037
1638
|
/**
|
|
2038
1639
|
*
|
|
2039
|
-
* @summary Get
|
|
2040
|
-
* @param {string} browserId
|
|
1640
|
+
* @summary Get page HTML
|
|
1641
|
+
* @param {string} browserId
|
|
2041
1642
|
* @param {*} [options] Override http request option.
|
|
2042
1643
|
* @throws {RequiredError}
|
|
2043
1644
|
*/
|
|
2044
|
-
|
|
1645
|
+
getContent(browserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2045
1646
|
/**
|
|
2046
1647
|
*
|
|
2047
|
-
* @summary Get
|
|
2048
|
-
* @param {string} browserId
|
|
1648
|
+
* @summary Get element text, attribute, or property
|
|
1649
|
+
* @param {string} browserId
|
|
1650
|
+
* @param {string} selector selector
|
|
1651
|
+
* @param {string} dataType data_type
|
|
1652
|
+
* @param {string} [name] name
|
|
1653
|
+
* @param {string} [by] by
|
|
2049
1654
|
* @param {*} [options] Override http request option.
|
|
2050
1655
|
* @throws {RequiredError}
|
|
2051
1656
|
*/
|
|
2052
|
-
|
|
1657
|
+
getElementData(browserId: string, selector: string, dataType: string, name?: string, by?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2053
1658
|
/**
|
|
2054
1659
|
*
|
|
2055
|
-
* @summary Get
|
|
2056
|
-
* @param {string} browserId
|
|
1660
|
+
* @summary Get current URL
|
|
1661
|
+
* @param {string} browserId
|
|
2057
1662
|
* @param {*} [options] Override http request option.
|
|
2058
1663
|
* @throws {RequiredError}
|
|
2059
1664
|
*/
|
|
2060
|
-
|
|
1665
|
+
getUrl(browserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2061
1666
|
/**
|
|
2062
1667
|
*
|
|
2063
|
-
* @summary
|
|
2064
|
-
* @param {string} browserId
|
|
2065
|
-
* @param {
|
|
1668
|
+
* @summary GUI click by selector or coordinates
|
|
1669
|
+
* @param {string} browserId
|
|
1670
|
+
* @param {GuiClickRequest} payload
|
|
2066
1671
|
* @param {*} [options] Override http request option.
|
|
2067
1672
|
* @throws {RequiredError}
|
|
2068
1673
|
*/
|
|
2069
|
-
|
|
1674
|
+
guiClick(browserId: string, payload: GuiClickRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2070
1675
|
/**
|
|
2071
1676
|
*
|
|
2072
|
-
* @summary
|
|
1677
|
+
* @summary GUI hover at coordinates
|
|
1678
|
+
* @param {string} browserId
|
|
1679
|
+
* @param {GuiHoverXyRequest} payload
|
|
2073
1680
|
* @param {*} [options] Override http request option.
|
|
2074
1681
|
* @throws {RequiredError}
|
|
2075
1682
|
*/
|
|
2076
|
-
|
|
1683
|
+
guiHoverXy(browserId: string, payload: GuiHoverXyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2077
1684
|
/**
|
|
2078
1685
|
*
|
|
2079
|
-
* @summary
|
|
2080
|
-
* @param {string} browserId
|
|
1686
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
1687
|
+
* @param {string} browserId
|
|
1688
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
2081
1689
|
* @param {*} [options] Override http request option.
|
|
2082
1690
|
* @throws {RequiredError}
|
|
2083
1691
|
*/
|
|
2084
|
-
|
|
1692
|
+
guiPressKeysXy(browserId: string, payload: GuiPressKeysXyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2085
1693
|
/**
|
|
2086
1694
|
*
|
|
2087
|
-
* @summary
|
|
2088
|
-
* @param {string} browserId
|
|
2089
|
-
* @param {
|
|
1695
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
1696
|
+
* @param {string} browserId
|
|
1697
|
+
* @param {GuiTypeXyRequest} payload
|
|
2090
1698
|
* @param {*} [options] Override http request option.
|
|
2091
1699
|
* @throws {RequiredError}
|
|
2092
1700
|
*/
|
|
2093
|
-
|
|
1701
|
+
guiTypeXy(browserId: string, payload: GuiTypeXyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2094
1702
|
/**
|
|
2095
1703
|
*
|
|
2096
|
-
* @summary
|
|
2097
|
-
* @param {string} browserId
|
|
1704
|
+
* @summary History: back, forward, or refresh
|
|
1705
|
+
* @param {string} browserId
|
|
2098
1706
|
* @param {HistoryRequest} payload
|
|
2099
1707
|
* @param {*} [options] Override http request option.
|
|
2100
1708
|
* @throws {RequiredError}
|
|
2101
1709
|
*/
|
|
2102
|
-
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1710
|
+
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2103
1711
|
/**
|
|
2104
1712
|
*
|
|
2105
|
-
* @summary
|
|
2106
|
-
* @param {
|
|
2107
|
-
* @throws {RequiredError}
|
|
2108
|
-
*/
|
|
2109
|
-
listBrowsers(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BrowserList, any, {}>>;
|
|
2110
|
-
/**
|
|
2111
|
-
*
|
|
2112
|
-
* @summary Mouse action: hover or drag
|
|
2113
|
-
* @param {string} browserId Unique browser identifier
|
|
1713
|
+
* @summary Mouse: hover or drag
|
|
1714
|
+
* @param {string} browserId
|
|
2114
1715
|
* @param {MouseRequest} payload
|
|
2115
1716
|
* @param {*} [options] Override http request option.
|
|
2116
1717
|
* @throws {RequiredError}
|
|
2117
1718
|
*/
|
|
2118
|
-
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1719
|
+
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2119
1720
|
/**
|
|
2120
1721
|
*
|
|
2121
|
-
* @summary Navigate to
|
|
2122
|
-
* @param {string} browserId
|
|
2123
|
-
* @param {
|
|
1722
|
+
* @summary Navigate to URL
|
|
1723
|
+
* @param {string} browserId
|
|
1724
|
+
* @param {NavigateBrowserRequest} payload
|
|
2124
1725
|
* @param {*} [options] Override http request option.
|
|
2125
1726
|
* @throws {RequiredError}
|
|
2126
1727
|
*/
|
|
2127
|
-
navigateBrowser(browserId: string, payload:
|
|
1728
|
+
navigateBrowser(browserId: string, payload: NavigateBrowserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2128
1729
|
/**
|
|
2129
1730
|
*
|
|
2130
|
-
* @summary
|
|
2131
|
-
* @param {string} browserId
|
|
1731
|
+
* @summary Network logs: get or clear
|
|
1732
|
+
* @param {string} browserId
|
|
2132
1733
|
* @param {NetworkLogsRequest} payload
|
|
2133
1734
|
* @param {*} [options] Override http request option.
|
|
2134
1735
|
* @throws {RequiredError}
|
|
2135
1736
|
*/
|
|
2136
|
-
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1737
|
+
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2137
1738
|
/**
|
|
2138
1739
|
*
|
|
2139
|
-
* @summary
|
|
2140
|
-
* @param {string} browserId
|
|
1740
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
1741
|
+
* @param {string} browserId
|
|
2141
1742
|
* @param {PerformanceRequest} payload
|
|
2142
1743
|
* @param {*} [options] Override http request option.
|
|
2143
1744
|
* @throws {RequiredError}
|
|
2144
1745
|
*/
|
|
2145
|
-
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1746
|
+
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2146
1747
|
/**
|
|
2147
1748
|
*
|
|
2148
|
-
* @summary Press keys
|
|
2149
|
-
* @param {string} browserId
|
|
1749
|
+
* @summary Press keyboard keys
|
|
1750
|
+
* @param {string} browserId
|
|
2150
1751
|
* @param {PressKeysRequest} payload
|
|
2151
1752
|
* @param {*} [options] Override http request option.
|
|
2152
1753
|
* @throws {RequiredError}
|
|
2153
1754
|
*/
|
|
2154
|
-
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1755
|
+
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2155
1756
|
/**
|
|
2156
1757
|
*
|
|
2157
1758
|
* @summary Resize viewport
|
|
2158
|
-
* @param {string} browserId
|
|
1759
|
+
* @param {string} browserId
|
|
2159
1760
|
* @param {ResizeRequest} payload
|
|
2160
1761
|
* @param {*} [options] Override http request option.
|
|
2161
1762
|
* @throws {RequiredError}
|
|
2162
1763
|
*/
|
|
2163
|
-
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1764
|
+
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2164
1765
|
/**
|
|
2165
1766
|
*
|
|
2166
|
-
* @summary Scroll to element/
|
|
2167
|
-
* @param {string} browserId
|
|
2168
|
-
* @param {
|
|
1767
|
+
* @summary Scroll to element/coords or by delta
|
|
1768
|
+
* @param {string} browserId
|
|
1769
|
+
* @param {ScrollRequest} payload
|
|
2169
1770
|
* @param {*} [options] Override http request option.
|
|
2170
1771
|
* @throws {RequiredError}
|
|
2171
1772
|
*/
|
|
2172
|
-
scroll(browserId: string, payload:
|
|
1773
|
+
scroll(browserId: string, payload: ScrollRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2173
1774
|
/**
|
|
2174
1775
|
*
|
|
2175
1776
|
* @summary Select dropdown: select option or get options
|
|
2176
|
-
* @param {string} browserId
|
|
1777
|
+
* @param {string} browserId
|
|
2177
1778
|
* @param {SelectRequest} payload
|
|
2178
1779
|
* @param {*} [options] Override http request option.
|
|
2179
1780
|
* @throws {RequiredError}
|
|
2180
1781
|
*/
|
|
2181
|
-
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1782
|
+
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2182
1783
|
/**
|
|
2183
1784
|
*
|
|
2184
|
-
* @summary
|
|
2185
|
-
* @param {string} browserId
|
|
2186
|
-
* @param {
|
|
1785
|
+
* @summary DOM or accessibility snapshot
|
|
1786
|
+
* @param {string} browserId
|
|
1787
|
+
* @param {SnapshotRequest} payload
|
|
2187
1788
|
* @param {*} [options] Override http request option.
|
|
2188
1789
|
* @throws {RequiredError}
|
|
2189
1790
|
*/
|
|
2190
|
-
|
|
1791
|
+
snapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2191
1792
|
/**
|
|
2192
1793
|
*
|
|
2193
|
-
* @summary
|
|
2194
|
-
* @param {string} browserId
|
|
1794
|
+
* @summary Tabs: list, new, switch, close, current
|
|
1795
|
+
* @param {string} browserId
|
|
1796
|
+
* @param {TabsRequest} payload
|
|
2195
1797
|
* @param {*} [options] Override http request option.
|
|
2196
1798
|
* @throws {RequiredError}
|
|
2197
1799
|
*/
|
|
2198
|
-
|
|
1800
|
+
tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2199
1801
|
/**
|
|
2200
1802
|
*
|
|
2201
|
-
* @summary Take
|
|
2202
|
-
* @param {string} browserId
|
|
2203
|
-
* @param {
|
|
1803
|
+
* @summary Take screenshot
|
|
1804
|
+
* @param {string} browserId
|
|
1805
|
+
* @param {TakeScreenshotRequest} payload
|
|
2204
1806
|
* @param {*} [options] Override http request option.
|
|
2205
1807
|
* @throws {RequiredError}
|
|
2206
1808
|
*/
|
|
2207
|
-
|
|
1809
|
+
takeScreenshot(browserId: string, payload: TakeScreenshotRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2208
1810
|
/**
|
|
2209
1811
|
*
|
|
2210
|
-
* @summary Type text into
|
|
2211
|
-
* @param {string} browserId
|
|
2212
|
-
* @param {
|
|
1812
|
+
* @summary Type text into element
|
|
1813
|
+
* @param {string} browserId
|
|
1814
|
+
* @param {TypeTextRequest} payload
|
|
2213
1815
|
* @param {*} [options] Override http request option.
|
|
2214
1816
|
* @throws {RequiredError}
|
|
2215
1817
|
*/
|
|
2216
|
-
typeText(browserId: string, payload:
|
|
1818
|
+
typeText(browserId: string, payload: TypeTextRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2217
1819
|
/**
|
|
2218
1820
|
*
|
|
2219
|
-
* @summary Upload
|
|
2220
|
-
* @param {string} browserId
|
|
1821
|
+
* @summary Upload file to input
|
|
1822
|
+
* @param {string} browserId
|
|
2221
1823
|
* @param {UploadFileRequest} payload
|
|
2222
1824
|
* @param {*} [options] Override http request option.
|
|
2223
1825
|
* @throws {RequiredError}
|
|
2224
1826
|
*/
|
|
2225
|
-
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1827
|
+
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2226
1828
|
/**
|
|
2227
1829
|
*
|
|
2228
|
-
* @summary Wait for element to
|
|
2229
|
-
* @param {string} browserId
|
|
1830
|
+
* @summary Wait for element to be visible or hidden
|
|
1831
|
+
* @param {string} browserId
|
|
2230
1832
|
* @param {WaitElementRequest} payload
|
|
2231
1833
|
* @param {*} [options] Override http request option.
|
|
2232
1834
|
* @throws {RequiredError}
|
|
2233
1835
|
*/
|
|
2234
|
-
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1836
|
+
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2235
1837
|
/**
|
|
2236
1838
|
*
|
|
2237
|
-
* @summary
|
|
2238
|
-
* @param {string} browserId
|
|
1839
|
+
* @summary AI page analysis - what\'s visible
|
|
1840
|
+
* @param {string} browserId
|
|
2239
1841
|
* @param {*} [options] Override http request option.
|
|
2240
1842
|
* @throws {RequiredError}
|
|
2241
1843
|
*/
|
|
2242
|
-
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1844
|
+
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenericResponse, any, {}>>;
|
|
2243
1845
|
}
|
|
2244
1846
|
/**
|
|
2245
1847
|
* HealthApi - axios parameter creator
|