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/api.ts
CHANGED
|
@@ -23,7 +23,7 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
-
export interface
|
|
26
|
+
export interface BaseResponse {
|
|
27
27
|
/**
|
|
28
28
|
* Operation success
|
|
29
29
|
*/
|
|
@@ -36,519 +36,262 @@ export interface ActionResult {
|
|
|
36
36
|
* Unix timestamp
|
|
37
37
|
*/
|
|
38
38
|
'timestamp': number;
|
|
39
|
+
}
|
|
40
|
+
export interface BrowsersRequest {
|
|
39
41
|
/**
|
|
40
|
-
*
|
|
42
|
+
* action
|
|
41
43
|
*/
|
|
42
|
-
'
|
|
44
|
+
'action': string;
|
|
43
45
|
}
|
|
44
|
-
export interface
|
|
46
|
+
export interface ClickRequest {
|
|
45
47
|
/**
|
|
46
|
-
*
|
|
48
|
+
* selector
|
|
47
49
|
*/
|
|
48
|
-
'
|
|
50
|
+
'selector': string;
|
|
49
51
|
/**
|
|
50
|
-
*
|
|
52
|
+
* timeout
|
|
51
53
|
*/
|
|
52
|
-
'
|
|
54
|
+
'timeout'?: number;
|
|
53
55
|
/**
|
|
54
|
-
*
|
|
56
|
+
* by
|
|
55
57
|
*/
|
|
56
|
-
'
|
|
58
|
+
'by'?: string;
|
|
57
59
|
/**
|
|
58
|
-
*
|
|
60
|
+
* if_visible
|
|
59
61
|
*/
|
|
60
|
-
'
|
|
62
|
+
'if_visible'?: boolean;
|
|
61
63
|
}
|
|
62
|
-
export interface
|
|
63
|
-
/**
|
|
64
|
-
* Operation success
|
|
65
|
-
*/
|
|
66
|
-
'success': boolean;
|
|
64
|
+
export interface ConsoleLogsRequest {
|
|
67
65
|
/**
|
|
68
|
-
*
|
|
66
|
+
* action
|
|
69
67
|
*/
|
|
70
|
-
'
|
|
68
|
+
'action': string;
|
|
71
69
|
/**
|
|
72
|
-
*
|
|
70
|
+
* limit
|
|
73
71
|
*/
|
|
74
|
-
'
|
|
72
|
+
'limit'?: number;
|
|
75
73
|
}
|
|
76
|
-
export interface
|
|
74
|
+
export interface CreateBrowserRequest {
|
|
77
75
|
/**
|
|
78
|
-
*
|
|
76
|
+
* uc
|
|
79
77
|
*/
|
|
80
|
-
'
|
|
78
|
+
'uc'?: boolean;
|
|
81
79
|
/**
|
|
82
|
-
*
|
|
80
|
+
* proxy
|
|
83
81
|
*/
|
|
84
82
|
'proxy'?: string;
|
|
85
83
|
/**
|
|
86
|
-
*
|
|
84
|
+
* window_size
|
|
87
85
|
*/
|
|
88
|
-
'
|
|
86
|
+
'window_size'?: Array<number>;
|
|
89
87
|
/**
|
|
90
|
-
*
|
|
88
|
+
* user_agent
|
|
91
89
|
*/
|
|
92
|
-
'
|
|
90
|
+
'user_agent'?: string;
|
|
93
91
|
/**
|
|
94
|
-
*
|
|
92
|
+
* disable_gpu
|
|
95
93
|
*/
|
|
96
94
|
'disable_gpu'?: boolean;
|
|
97
95
|
/**
|
|
98
|
-
*
|
|
96
|
+
* disable_images
|
|
99
97
|
*/
|
|
100
98
|
'disable_images'?: boolean;
|
|
101
99
|
/**
|
|
102
|
-
*
|
|
100
|
+
* disable_javascript
|
|
103
101
|
*/
|
|
104
102
|
'disable_javascript'?: boolean;
|
|
105
103
|
/**
|
|
106
|
-
*
|
|
104
|
+
* extensions
|
|
107
105
|
*/
|
|
108
106
|
'extensions'?: Array<string>;
|
|
109
107
|
/**
|
|
110
|
-
*
|
|
108
|
+
* custom_args
|
|
111
109
|
*/
|
|
112
110
|
'custom_args'?: Array<string>;
|
|
113
|
-
}
|
|
114
|
-
export interface BrowserCreated {
|
|
115
|
-
/**
|
|
116
|
-
* Operation success
|
|
117
|
-
*/
|
|
118
|
-
'success': boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Status message
|
|
121
|
-
*/
|
|
122
|
-
'message': string;
|
|
123
|
-
/**
|
|
124
|
-
* Unix timestamp
|
|
125
|
-
*/
|
|
126
|
-
'timestamp': number;
|
|
127
|
-
/**
|
|
128
|
-
* Browser creation data
|
|
129
|
-
*/
|
|
130
|
-
'data'?: BrowserCreationData;
|
|
131
|
-
}
|
|
132
|
-
export interface BrowserCreationData {
|
|
133
|
-
/**
|
|
134
|
-
* Unique browser identifier
|
|
135
|
-
*/
|
|
136
|
-
'browser_id': string;
|
|
137
|
-
/**
|
|
138
|
-
* Browser configuration used
|
|
139
|
-
*/
|
|
140
|
-
'config'?: object;
|
|
141
|
-
}
|
|
142
|
-
export interface BrowserInfoResponse {
|
|
143
|
-
/**
|
|
144
|
-
* Operation success
|
|
145
|
-
*/
|
|
146
|
-
'success': boolean;
|
|
147
111
|
/**
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
'message': string;
|
|
151
|
-
/**
|
|
152
|
-
* Unix timestamp
|
|
153
|
-
*/
|
|
154
|
-
'timestamp': number;
|
|
155
|
-
/**
|
|
156
|
-
* Browser information
|
|
157
|
-
*/
|
|
158
|
-
'data'?: object;
|
|
159
|
-
}
|
|
160
|
-
export interface BrowserList {
|
|
161
|
-
/**
|
|
162
|
-
* Operation success
|
|
163
|
-
*/
|
|
164
|
-
'success': boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Status message
|
|
167
|
-
*/
|
|
168
|
-
'message': string;
|
|
169
|
-
/**
|
|
170
|
-
* Unix timestamp
|
|
171
|
-
*/
|
|
172
|
-
'timestamp': number;
|
|
173
|
-
/**
|
|
174
|
-
* Browser list data
|
|
175
|
-
*/
|
|
176
|
-
'data'?: BrowserListData;
|
|
177
|
-
}
|
|
178
|
-
export interface BrowserListData {
|
|
179
|
-
/**
|
|
180
|
-
* List of active browsers
|
|
181
|
-
*/
|
|
182
|
-
'browsers'?: Array<object>;
|
|
183
|
-
/**
|
|
184
|
-
* Total browser count
|
|
112
|
+
* profile_name
|
|
185
113
|
*/
|
|
186
|
-
'
|
|
114
|
+
'profile_name'?: string;
|
|
187
115
|
}
|
|
188
|
-
export interface
|
|
189
|
-
/**
|
|
190
|
-
* Element selector
|
|
191
|
-
*/
|
|
192
|
-
'selector': string;
|
|
193
|
-
/**
|
|
194
|
-
* Selector type (css, id, name, xpath)
|
|
195
|
-
*/
|
|
196
|
-
'by'?: string;
|
|
116
|
+
export interface CreateProfileRequest {
|
|
197
117
|
/**
|
|
198
|
-
*
|
|
118
|
+
* Profile name
|
|
199
119
|
*/
|
|
200
|
-
'
|
|
120
|
+
'name': string;
|
|
201
121
|
}
|
|
202
|
-
|
|
203
|
-
export const CheckElementRequestCheckEnum = {
|
|
204
|
-
Exists: 'exists',
|
|
205
|
-
Visible: 'visible'
|
|
206
|
-
} as const;
|
|
207
|
-
|
|
208
|
-
export type CheckElementRequestCheckEnum = typeof CheckElementRequestCheckEnum[keyof typeof CheckElementRequestCheckEnum];
|
|
209
|
-
|
|
210
|
-
export interface ClickRequest {
|
|
211
|
-
/**
|
|
212
|
-
* Element selector
|
|
213
|
-
*/
|
|
214
|
-
'selector': string;
|
|
122
|
+
export interface DetectCoordinatesRequest {
|
|
215
123
|
/**
|
|
216
|
-
*
|
|
124
|
+
* prompt
|
|
217
125
|
*/
|
|
218
|
-
'
|
|
126
|
+
'prompt': string;
|
|
219
127
|
/**
|
|
220
|
-
*
|
|
128
|
+
* fx
|
|
221
129
|
*/
|
|
222
|
-
'
|
|
130
|
+
'fx'?: number;
|
|
223
131
|
/**
|
|
224
|
-
*
|
|
132
|
+
* fy
|
|
225
133
|
*/
|
|
226
|
-
'
|
|
134
|
+
'fy'?: number;
|
|
227
135
|
}
|
|
228
|
-
export interface
|
|
136
|
+
export interface DialogRequest {
|
|
229
137
|
/**
|
|
230
|
-
*
|
|
138
|
+
* action
|
|
231
139
|
*/
|
|
232
|
-
'action':
|
|
140
|
+
'action': string;
|
|
233
141
|
/**
|
|
234
|
-
*
|
|
142
|
+
* text
|
|
235
143
|
*/
|
|
236
144
|
'text'?: string;
|
|
237
145
|
}
|
|
238
|
-
|
|
239
|
-
export const CombinedDialogRequestActionEnum = {
|
|
240
|
-
Get: 'get',
|
|
241
|
-
Accept: 'accept',
|
|
242
|
-
Dismiss: 'dismiss'
|
|
243
|
-
} as const;
|
|
244
|
-
|
|
245
|
-
export type CombinedDialogRequestActionEnum = typeof CombinedDialogRequestActionEnum[keyof typeof CombinedDialogRequestActionEnum];
|
|
246
|
-
|
|
247
|
-
export interface CombinedEmulateRequest {
|
|
146
|
+
export interface EmulateRequest {
|
|
248
147
|
/**
|
|
249
|
-
*
|
|
148
|
+
* action
|
|
250
149
|
*/
|
|
251
|
-
'action'?:
|
|
150
|
+
'action'?: string;
|
|
252
151
|
/**
|
|
253
|
-
*
|
|
152
|
+
* device
|
|
254
153
|
*/
|
|
255
154
|
'device'?: string;
|
|
256
155
|
/**
|
|
257
|
-
*
|
|
156
|
+
* width
|
|
258
157
|
*/
|
|
259
158
|
'width'?: number;
|
|
260
159
|
/**
|
|
261
|
-
*
|
|
160
|
+
* height
|
|
262
161
|
*/
|
|
263
162
|
'height'?: number;
|
|
264
163
|
/**
|
|
265
|
-
*
|
|
164
|
+
* device_scale_factor
|
|
266
165
|
*/
|
|
267
166
|
'device_scale_factor'?: number;
|
|
268
167
|
/**
|
|
269
|
-
*
|
|
168
|
+
* mobile
|
|
270
169
|
*/
|
|
271
170
|
'mobile'?: boolean;
|
|
272
171
|
/**
|
|
273
|
-
*
|
|
172
|
+
* user_agent
|
|
274
173
|
*/
|
|
275
174
|
'user_agent'?: string;
|
|
276
175
|
}
|
|
277
|
-
|
|
278
|
-
export const CombinedEmulateRequestActionEnum = {
|
|
279
|
-
Set: 'set',
|
|
280
|
-
Clear: 'clear',
|
|
281
|
-
ListDevices: 'list_devices'
|
|
282
|
-
} as const;
|
|
283
|
-
|
|
284
|
-
export type CombinedEmulateRequestActionEnum = typeof CombinedEmulateRequestActionEnum[keyof typeof CombinedEmulateRequestActionEnum];
|
|
285
|
-
|
|
286
|
-
export interface CombinedGuiClickRequest {
|
|
287
|
-
/**
|
|
288
|
-
* Element selector (for selector mode)
|
|
289
|
-
*/
|
|
290
|
-
'selector'?: string;
|
|
291
|
-
/**
|
|
292
|
-
* Screen X coordinate (for coordinate mode)
|
|
293
|
-
*/
|
|
294
|
-
'x'?: number;
|
|
295
|
-
/**
|
|
296
|
-
* Screen Y coordinate (for coordinate mode)
|
|
297
|
-
*/
|
|
298
|
-
'y'?: number;
|
|
299
|
-
/**
|
|
300
|
-
* Mouse move duration (seconds)
|
|
301
|
-
*/
|
|
302
|
-
'timeframe'?: number;
|
|
303
|
-
/**
|
|
304
|
-
* Relative X (0..1) within element to click
|
|
305
|
-
*/
|
|
306
|
-
'fx'?: number;
|
|
307
|
-
/**
|
|
308
|
-
* Relative Y (0..1) within element to click
|
|
309
|
-
*/
|
|
310
|
-
'fy'?: number;
|
|
311
|
-
}
|
|
312
|
-
export interface CombinedScrollRequest {
|
|
313
|
-
/**
|
|
314
|
-
* Element selector to scroll to
|
|
315
|
-
*/
|
|
316
|
-
'selector'?: string;
|
|
317
|
-
/**
|
|
318
|
-
* Selector type (css, id, name, xpath)
|
|
319
|
-
*/
|
|
320
|
-
'by'?: string;
|
|
321
|
-
/**
|
|
322
|
-
* X coordinate to scroll to (absolute)
|
|
323
|
-
*/
|
|
324
|
-
'x'?: number;
|
|
325
|
-
/**
|
|
326
|
-
* Y coordinate to scroll to (absolute)
|
|
327
|
-
*/
|
|
328
|
-
'y'?: number;
|
|
329
|
-
/**
|
|
330
|
-
* Horizontal scroll amount (relative)
|
|
331
|
-
*/
|
|
332
|
-
'delta_x'?: number;
|
|
333
|
-
/**
|
|
334
|
-
* Vertical scroll amount (relative)
|
|
335
|
-
*/
|
|
336
|
-
'delta_y'?: number;
|
|
337
|
-
/**
|
|
338
|
-
* Scroll behavior: smooth or instant
|
|
339
|
-
*/
|
|
340
|
-
'behavior'?: string;
|
|
341
|
-
}
|
|
342
|
-
export interface ConsoleLogsRequest {
|
|
343
|
-
/**
|
|
344
|
-
* Action: get or clear
|
|
345
|
-
*/
|
|
346
|
-
'action': ConsoleLogsRequestActionEnum;
|
|
347
|
-
/**
|
|
348
|
-
* Max number of logs to return (for get)
|
|
349
|
-
*/
|
|
350
|
-
'limit'?: number;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export const ConsoleLogsRequestActionEnum = {
|
|
354
|
-
Get: 'get',
|
|
355
|
-
Clear: 'clear'
|
|
356
|
-
} as const;
|
|
357
|
-
|
|
358
|
-
export type ConsoleLogsRequestActionEnum = typeof ConsoleLogsRequestActionEnum[keyof typeof ConsoleLogsRequestActionEnum];
|
|
359
|
-
|
|
360
|
-
export interface ContentData {
|
|
361
|
-
/**
|
|
362
|
-
* Page HTML content
|
|
363
|
-
*/
|
|
364
|
-
'html'?: string;
|
|
365
|
-
/**
|
|
366
|
-
* Page title
|
|
367
|
-
*/
|
|
368
|
-
'title'?: string;
|
|
369
|
-
/**
|
|
370
|
-
* Current URL
|
|
371
|
-
*/
|
|
372
|
-
'url'?: string;
|
|
373
|
-
}
|
|
374
|
-
export interface ContentResponse {
|
|
176
|
+
export interface ErrorResponse {
|
|
375
177
|
/**
|
|
376
|
-
* Operation success
|
|
178
|
+
* Operation success (false)
|
|
377
179
|
*/
|
|
378
|
-
'success'
|
|
180
|
+
'success'?: boolean;
|
|
379
181
|
/**
|
|
380
|
-
*
|
|
182
|
+
* Error message
|
|
381
183
|
*/
|
|
382
|
-
'message'
|
|
184
|
+
'message'?: string;
|
|
383
185
|
/**
|
|
384
186
|
* Unix timestamp
|
|
385
187
|
*/
|
|
386
|
-
'timestamp'
|
|
188
|
+
'timestamp'?: number;
|
|
189
|
+
}
|
|
190
|
+
export interface ExecuteScriptRequest {
|
|
387
191
|
/**
|
|
388
|
-
*
|
|
192
|
+
* script
|
|
389
193
|
*/
|
|
390
|
-
'
|
|
194
|
+
'script': string;
|
|
391
195
|
}
|
|
392
|
-
export interface
|
|
196
|
+
export interface FillFormRequest {
|
|
393
197
|
/**
|
|
394
|
-
*
|
|
198
|
+
* fields
|
|
395
199
|
*/
|
|
396
|
-
'
|
|
397
|
-
}
|
|
398
|
-
export interface DetectCoordinatesRequest {
|
|
200
|
+
'fields': Array<object>;
|
|
399
201
|
/**
|
|
400
|
-
*
|
|
202
|
+
* by
|
|
401
203
|
*/
|
|
402
|
-
'
|
|
204
|
+
'by'?: string;
|
|
403
205
|
}
|
|
404
|
-
export interface
|
|
206
|
+
export interface GenericResponse {
|
|
405
207
|
/**
|
|
406
|
-
*
|
|
208
|
+
* Whether the operation succeeded
|
|
407
209
|
*/
|
|
408
210
|
'success'?: boolean;
|
|
409
211
|
/**
|
|
410
|
-
*
|
|
212
|
+
* Response message
|
|
411
213
|
*/
|
|
412
214
|
'message'?: string;
|
|
413
215
|
/**
|
|
414
|
-
*
|
|
415
|
-
*/
|
|
416
|
-
'timestamp'?: number;
|
|
417
|
-
/**
|
|
418
|
-
* Element description used
|
|
419
|
-
*/
|
|
420
|
-
'prompt'?: string;
|
|
421
|
-
/**
|
|
422
|
-
* Full coordinate information
|
|
423
|
-
*/
|
|
424
|
-
'coordinates'?: object;
|
|
425
|
-
/**
|
|
426
|
-
* Element bounding box {x, y, width, height}
|
|
427
|
-
*/
|
|
428
|
-
'bounding_box'?: object;
|
|
429
|
-
/**
|
|
430
|
-
* Recommended click point {x, y}
|
|
431
|
-
*/
|
|
432
|
-
'click_point'?: object;
|
|
433
|
-
/**
|
|
434
|
-
* Path to screenshot analyzed
|
|
435
|
-
*/
|
|
436
|
-
'screenshot_path'?: string;
|
|
437
|
-
/**
|
|
438
|
-
* Vision model used for detection
|
|
439
|
-
*/
|
|
440
|
-
'model_used'?: string;
|
|
441
|
-
/**
|
|
442
|
-
* Detection confidence (0.0-1.0)
|
|
443
|
-
*/
|
|
444
|
-
'confidence'?: number;
|
|
445
|
-
/**
|
|
446
|
-
* Models attempted if detection failed
|
|
447
|
-
*/
|
|
448
|
-
'models_tried'?: Array<string>;
|
|
449
|
-
/**
|
|
450
|
-
* Additional result data
|
|
216
|
+
* Response data
|
|
451
217
|
*/
|
|
452
218
|
'data'?: object;
|
|
453
|
-
/**
|
|
454
|
-
* Error message if failed
|
|
455
|
-
*/
|
|
456
|
-
'error'?: string;
|
|
457
219
|
}
|
|
458
|
-
export interface
|
|
459
|
-
/**
|
|
460
|
-
* Element selector
|
|
461
|
-
*/
|
|
462
|
-
'selector': string;
|
|
220
|
+
export interface GuiClickRequest {
|
|
463
221
|
/**
|
|
464
|
-
*
|
|
222
|
+
* selector
|
|
465
223
|
*/
|
|
466
|
-
'
|
|
224
|
+
'selector'?: string;
|
|
467
225
|
/**
|
|
468
|
-
*
|
|
226
|
+
* x
|
|
469
227
|
*/
|
|
470
|
-
'
|
|
228
|
+
'x'?: number;
|
|
471
229
|
/**
|
|
472
|
-
*
|
|
230
|
+
* y
|
|
473
231
|
*/
|
|
474
|
-
'
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
export const ElementDataRequestTypeEnum = {
|
|
478
|
-
Text: 'text',
|
|
479
|
-
Attribute: 'attribute',
|
|
480
|
-
Property: 'property'
|
|
481
|
-
} as const;
|
|
482
|
-
|
|
483
|
-
export type ElementDataRequestTypeEnum = typeof ElementDataRequestTypeEnum[keyof typeof ElementDataRequestTypeEnum];
|
|
484
|
-
|
|
485
|
-
export interface ErrorResponse {
|
|
232
|
+
'y'?: number;
|
|
486
233
|
/**
|
|
487
|
-
*
|
|
234
|
+
* timeframe
|
|
488
235
|
*/
|
|
489
|
-
'
|
|
236
|
+
'timeframe'?: number;
|
|
490
237
|
/**
|
|
491
|
-
*
|
|
238
|
+
* fx
|
|
492
239
|
*/
|
|
493
|
-
'
|
|
240
|
+
'fx'?: number;
|
|
494
241
|
/**
|
|
495
|
-
*
|
|
242
|
+
* fy
|
|
496
243
|
*/
|
|
497
|
-
'
|
|
244
|
+
'fy'?: number;
|
|
498
245
|
}
|
|
499
|
-
export interface
|
|
246
|
+
export interface GuiHoverXyRequest {
|
|
500
247
|
/**
|
|
501
|
-
*
|
|
248
|
+
* x
|
|
502
249
|
*/
|
|
503
|
-
'
|
|
504
|
-
}
|
|
505
|
-
export interface ExecuteRequest {
|
|
250
|
+
'x': number;
|
|
506
251
|
/**
|
|
507
|
-
*
|
|
252
|
+
* y
|
|
508
253
|
*/
|
|
509
|
-
'
|
|
254
|
+
'y': number;
|
|
510
255
|
/**
|
|
511
|
-
*
|
|
256
|
+
* timeframe
|
|
512
257
|
*/
|
|
513
|
-
'
|
|
258
|
+
'timeframe'?: number;
|
|
514
259
|
}
|
|
515
|
-
export interface
|
|
260
|
+
export interface GuiPressKeysXyRequest {
|
|
516
261
|
/**
|
|
517
|
-
*
|
|
262
|
+
* x
|
|
518
263
|
*/
|
|
519
|
-
'
|
|
264
|
+
'x': number;
|
|
520
265
|
/**
|
|
521
|
-
*
|
|
266
|
+
* y
|
|
522
267
|
*/
|
|
523
|
-
'
|
|
268
|
+
'y': number;
|
|
524
269
|
/**
|
|
525
|
-
*
|
|
270
|
+
* keys
|
|
526
271
|
*/
|
|
527
|
-
'
|
|
272
|
+
'keys': string;
|
|
528
273
|
/**
|
|
529
|
-
*
|
|
274
|
+
* timeframe
|
|
530
275
|
*/
|
|
531
|
-
'
|
|
276
|
+
'timeframe'?: number;
|
|
532
277
|
}
|
|
533
|
-
export interface
|
|
278
|
+
export interface GuiTypeXyRequest {
|
|
534
279
|
/**
|
|
535
|
-
*
|
|
280
|
+
* x
|
|
536
281
|
*/
|
|
537
|
-
'
|
|
282
|
+
'x': number;
|
|
538
283
|
/**
|
|
539
|
-
*
|
|
284
|
+
* y
|
|
540
285
|
*/
|
|
541
|
-
'
|
|
542
|
-
}
|
|
543
|
-
export interface FormField {
|
|
286
|
+
'y': number;
|
|
544
287
|
/**
|
|
545
|
-
*
|
|
288
|
+
* text
|
|
546
289
|
*/
|
|
547
|
-
'
|
|
290
|
+
'text': string;
|
|
548
291
|
/**
|
|
549
|
-
*
|
|
292
|
+
* timeframe
|
|
550
293
|
*/
|
|
551
|
-
'
|
|
294
|
+
'timeframe'?: number;
|
|
552
295
|
}
|
|
553
296
|
export interface HealthStatus {
|
|
554
297
|
/**
|
|
@@ -566,107 +309,62 @@ export interface HealthStatus {
|
|
|
566
309
|
}
|
|
567
310
|
export interface HistoryRequest {
|
|
568
311
|
/**
|
|
569
|
-
*
|
|
570
|
-
*/
|
|
571
|
-
'action': HistoryRequestActionEnum;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
export const HistoryRequestActionEnum = {
|
|
575
|
-
Back: 'back',
|
|
576
|
-
Forward: 'forward',
|
|
577
|
-
Refresh: 'refresh'
|
|
578
|
-
} as const;
|
|
579
|
-
|
|
580
|
-
export type HistoryRequestActionEnum = typeof HistoryRequestActionEnum[keyof typeof HistoryRequestActionEnum];
|
|
581
|
-
|
|
582
|
-
export interface LogsResponse {
|
|
583
|
-
/**
|
|
584
|
-
* Operation success
|
|
312
|
+
* action
|
|
585
313
|
*/
|
|
586
|
-
'
|
|
587
|
-
/**
|
|
588
|
-
* Status message
|
|
589
|
-
*/
|
|
590
|
-
'message': string;
|
|
591
|
-
/**
|
|
592
|
-
* Unix timestamp
|
|
593
|
-
*/
|
|
594
|
-
'timestamp': number;
|
|
595
|
-
/**
|
|
596
|
-
* Log entries
|
|
597
|
-
*/
|
|
598
|
-
'data'?: object;
|
|
314
|
+
'action': string;
|
|
599
315
|
}
|
|
600
316
|
export interface MouseRequest {
|
|
601
317
|
/**
|
|
602
|
-
*
|
|
318
|
+
* action
|
|
603
319
|
*/
|
|
604
320
|
'action': string;
|
|
605
321
|
/**
|
|
606
|
-
*
|
|
322
|
+
* selector
|
|
607
323
|
*/
|
|
608
324
|
'selector'?: string;
|
|
609
325
|
/**
|
|
610
|
-
*
|
|
326
|
+
* source
|
|
611
327
|
*/
|
|
612
328
|
'source'?: string;
|
|
613
329
|
/**
|
|
614
|
-
*
|
|
330
|
+
* target
|
|
615
331
|
*/
|
|
616
332
|
'target'?: string;
|
|
617
333
|
/**
|
|
618
|
-
*
|
|
334
|
+
* by
|
|
619
335
|
*/
|
|
620
336
|
'by'?: string;
|
|
621
337
|
}
|
|
622
|
-
export interface
|
|
338
|
+
export interface NavigateBrowserRequest {
|
|
623
339
|
/**
|
|
624
|
-
*
|
|
340
|
+
* url
|
|
625
341
|
*/
|
|
626
342
|
'url': string;
|
|
627
343
|
/**
|
|
628
|
-
*
|
|
344
|
+
* timeout
|
|
629
345
|
*/
|
|
630
346
|
'timeout'?: number;
|
|
631
347
|
}
|
|
632
348
|
export interface NetworkLogsRequest {
|
|
633
349
|
/**
|
|
634
|
-
*
|
|
350
|
+
* action
|
|
635
351
|
*/
|
|
636
|
-
'action':
|
|
352
|
+
'action': string;
|
|
637
353
|
/**
|
|
638
|
-
*
|
|
354
|
+
* limit
|
|
639
355
|
*/
|
|
640
356
|
'limit'?: number;
|
|
641
357
|
}
|
|
642
|
-
|
|
643
|
-
export const NetworkLogsRequestActionEnum = {
|
|
644
|
-
Get: 'get',
|
|
645
|
-
Clear: 'clear'
|
|
646
|
-
} as const;
|
|
647
|
-
|
|
648
|
-
export type NetworkLogsRequestActionEnum = typeof NetworkLogsRequestActionEnum[keyof typeof NetworkLogsRequestActionEnum];
|
|
649
|
-
|
|
650
358
|
export interface PerformanceRequest {
|
|
651
359
|
/**
|
|
652
|
-
*
|
|
360
|
+
* action
|
|
653
361
|
*/
|
|
654
|
-
'action':
|
|
362
|
+
'action': string;
|
|
655
363
|
/**
|
|
656
|
-
*
|
|
364
|
+
* categories
|
|
657
365
|
*/
|
|
658
366
|
'categories'?: string;
|
|
659
367
|
}
|
|
660
|
-
|
|
661
|
-
export const PerformanceRequestActionEnum = {
|
|
662
|
-
StartTrace: 'start_trace',
|
|
663
|
-
StopTrace: 'stop_trace',
|
|
664
|
-
Metrics: 'metrics',
|
|
665
|
-
Analyze: 'analyze'
|
|
666
|
-
} as const;
|
|
667
|
-
|
|
668
|
-
export type PerformanceRequestActionEnum = typeof PerformanceRequestActionEnum[keyof typeof PerformanceRequestActionEnum];
|
|
669
|
-
|
|
670
368
|
export interface PoolScaled {
|
|
671
369
|
/**
|
|
672
370
|
* Operation success
|
|
@@ -685,37 +383,19 @@ export interface PoolScaled {
|
|
|
685
383
|
*/
|
|
686
384
|
'data'?: ScaleData;
|
|
687
385
|
}
|
|
688
|
-
export interface PoolStatusResponse {
|
|
689
|
-
/**
|
|
690
|
-
* Operation success
|
|
691
|
-
*/
|
|
692
|
-
'success': boolean;
|
|
693
|
-
/**
|
|
694
|
-
* Status message
|
|
695
|
-
*/
|
|
696
|
-
'message': string;
|
|
697
|
-
/**
|
|
698
|
-
* Unix timestamp
|
|
699
|
-
*/
|
|
700
|
-
'timestamp': number;
|
|
701
|
-
/**
|
|
702
|
-
* Pool status information
|
|
703
|
-
*/
|
|
704
|
-
'data'?: object;
|
|
705
|
-
}
|
|
706
386
|
export interface PressKeysRequest {
|
|
707
387
|
/**
|
|
708
|
-
*
|
|
388
|
+
* selector
|
|
709
389
|
*/
|
|
710
390
|
'selector': string;
|
|
711
391
|
/**
|
|
712
|
-
*
|
|
392
|
+
* keys
|
|
713
393
|
*/
|
|
714
|
-
'
|
|
394
|
+
'keys': string;
|
|
715
395
|
/**
|
|
716
|
-
*
|
|
396
|
+
* by
|
|
717
397
|
*/
|
|
718
|
-
'
|
|
398
|
+
'by'?: string;
|
|
719
399
|
}
|
|
720
400
|
export interface ProfileInfo {
|
|
721
401
|
/**
|
|
@@ -777,11 +457,11 @@ export interface ProfileResponse {
|
|
|
777
457
|
}
|
|
778
458
|
export interface ResizeRequest {
|
|
779
459
|
/**
|
|
780
|
-
*
|
|
460
|
+
* width
|
|
781
461
|
*/
|
|
782
462
|
'width': number;
|
|
783
463
|
/**
|
|
784
|
-
*
|
|
464
|
+
* height
|
|
785
465
|
*/
|
|
786
466
|
'height': number;
|
|
787
467
|
}
|
|
@@ -797,236 +477,141 @@ export interface ScalePool {
|
|
|
797
477
|
*/
|
|
798
478
|
'target_size': number;
|
|
799
479
|
}
|
|
800
|
-
export interface
|
|
480
|
+
export interface ScrollRequest {
|
|
801
481
|
/**
|
|
802
|
-
*
|
|
482
|
+
* selector
|
|
803
483
|
*/
|
|
804
|
-
'
|
|
484
|
+
'selector'?: string;
|
|
805
485
|
/**
|
|
806
|
-
*
|
|
486
|
+
* x
|
|
807
487
|
*/
|
|
808
|
-
'
|
|
809
|
-
}
|
|
810
|
-
export interface ScreenshotResponse {
|
|
488
|
+
'x'?: number;
|
|
811
489
|
/**
|
|
812
|
-
*
|
|
490
|
+
* y
|
|
813
491
|
*/
|
|
814
|
-
'
|
|
492
|
+
'y'?: number;
|
|
815
493
|
/**
|
|
816
|
-
*
|
|
494
|
+
* delta_x
|
|
817
495
|
*/
|
|
818
|
-
'
|
|
496
|
+
'delta_x'?: number;
|
|
819
497
|
/**
|
|
820
|
-
*
|
|
498
|
+
* delta_y
|
|
821
499
|
*/
|
|
822
|
-
'
|
|
500
|
+
'delta_y'?: number;
|
|
823
501
|
/**
|
|
824
|
-
*
|
|
502
|
+
* behavior
|
|
825
503
|
*/
|
|
826
|
-
'
|
|
504
|
+
'behavior'?: string;
|
|
505
|
+
/**
|
|
506
|
+
* by
|
|
507
|
+
*/
|
|
508
|
+
'by'?: string;
|
|
827
509
|
}
|
|
828
510
|
export interface SelectRequest {
|
|
829
511
|
/**
|
|
830
|
-
*
|
|
512
|
+
* selector
|
|
831
513
|
*/
|
|
832
514
|
'selector': string;
|
|
833
515
|
/**
|
|
834
|
-
*
|
|
516
|
+
* action
|
|
835
517
|
*/
|
|
836
|
-
'
|
|
837
|
-
/**
|
|
838
|
-
* Action: select or options
|
|
839
|
-
*/
|
|
840
|
-
'action'?: SelectRequestActionEnum;
|
|
518
|
+
'action'?: string;
|
|
841
519
|
/**
|
|
842
|
-
*
|
|
520
|
+
* value
|
|
843
521
|
*/
|
|
844
522
|
'value'?: string;
|
|
845
523
|
/**
|
|
846
|
-
*
|
|
524
|
+
* text
|
|
847
525
|
*/
|
|
848
526
|
'text'?: string;
|
|
849
527
|
/**
|
|
850
|
-
*
|
|
528
|
+
* index
|
|
851
529
|
*/
|
|
852
530
|
'index'?: number;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export const SelectRequestActionEnum = {
|
|
856
|
-
Select: 'select',
|
|
857
|
-
Options: 'options'
|
|
858
|
-
} as const;
|
|
859
|
-
|
|
860
|
-
export type SelectRequestActionEnum = typeof SelectRequestActionEnum[keyof typeof SelectRequestActionEnum];
|
|
861
|
-
|
|
862
|
-
export interface SnapshotRequest {
|
|
863
531
|
/**
|
|
864
|
-
*
|
|
532
|
+
* by
|
|
865
533
|
*/
|
|
866
|
-
'
|
|
534
|
+
'by'?: string;
|
|
867
535
|
}
|
|
868
|
-
export interface
|
|
869
|
-
/**
|
|
870
|
-
* Operation success
|
|
871
|
-
*/
|
|
872
|
-
'success'?: boolean;
|
|
873
|
-
/**
|
|
874
|
-
* Success message
|
|
875
|
-
*/
|
|
876
|
-
'message'?: string;
|
|
877
|
-
/**
|
|
878
|
-
* Unix timestamp
|
|
879
|
-
*/
|
|
880
|
-
'timestamp'?: number;
|
|
536
|
+
export interface SnapshotRequest {
|
|
881
537
|
/**
|
|
882
|
-
*
|
|
538
|
+
* snapshot_type
|
|
883
539
|
*/
|
|
884
|
-
'
|
|
540
|
+
'snapshot_type'?: string;
|
|
885
541
|
}
|
|
886
542
|
export interface TabsRequest {
|
|
887
543
|
/**
|
|
888
|
-
*
|
|
544
|
+
* action
|
|
889
545
|
*/
|
|
890
|
-
'action':
|
|
546
|
+
'action': string;
|
|
891
547
|
/**
|
|
892
|
-
*
|
|
548
|
+
* url
|
|
893
549
|
*/
|
|
894
550
|
'url'?: string;
|
|
895
551
|
/**
|
|
896
|
-
*
|
|
552
|
+
* index
|
|
897
553
|
*/
|
|
898
554
|
'index'?: number;
|
|
899
555
|
/**
|
|
900
|
-
*
|
|
556
|
+
* handle
|
|
901
557
|
*/
|
|
902
558
|
'handle'?: string;
|
|
903
559
|
}
|
|
904
|
-
|
|
905
|
-
export const TabsRequestActionEnum = {
|
|
906
|
-
List: 'list',
|
|
907
|
-
New: 'new',
|
|
908
|
-
Switch: 'switch',
|
|
909
|
-
Close: 'close',
|
|
910
|
-
Current: 'current'
|
|
911
|
-
} as const;
|
|
912
|
-
|
|
913
|
-
export type TabsRequestActionEnum = typeof TabsRequestActionEnum[keyof typeof TabsRequestActionEnum];
|
|
914
|
-
|
|
915
|
-
export interface TypeRequest {
|
|
560
|
+
export interface TakeScreenshotRequest {
|
|
916
561
|
/**
|
|
917
|
-
*
|
|
562
|
+
* full_page
|
|
918
563
|
*/
|
|
919
|
-
'
|
|
564
|
+
'full_page'?: boolean;
|
|
565
|
+
}
|
|
566
|
+
export interface TypeTextRequest {
|
|
920
567
|
/**
|
|
921
|
-
*
|
|
568
|
+
* selector
|
|
922
569
|
*/
|
|
923
|
-
'
|
|
570
|
+
'selector': string;
|
|
924
571
|
/**
|
|
925
|
-
*
|
|
572
|
+
* text
|
|
926
573
|
*/
|
|
927
574
|
'text': string;
|
|
928
575
|
/**
|
|
929
|
-
*
|
|
576
|
+
* timeout
|
|
930
577
|
*/
|
|
931
578
|
'timeout'?: number;
|
|
579
|
+
/**
|
|
580
|
+
* by
|
|
581
|
+
*/
|
|
582
|
+
'by'?: string;
|
|
932
583
|
}
|
|
933
584
|
export interface UploadFileRequest {
|
|
934
585
|
/**
|
|
935
|
-
*
|
|
586
|
+
* selector
|
|
936
587
|
*/
|
|
937
588
|
'selector': string;
|
|
938
589
|
/**
|
|
939
|
-
*
|
|
590
|
+
* file_path
|
|
940
591
|
*/
|
|
941
592
|
'file_path': string;
|
|
942
593
|
/**
|
|
943
|
-
*
|
|
594
|
+
* by
|
|
944
595
|
*/
|
|
945
596
|
'by'?: string;
|
|
946
597
|
}
|
|
947
|
-
export interface UrlData {
|
|
948
|
-
/**
|
|
949
|
-
* Current URL
|
|
950
|
-
*/
|
|
951
|
-
'url'?: string;
|
|
952
|
-
}
|
|
953
|
-
export interface UrlResponse {
|
|
954
|
-
/**
|
|
955
|
-
* Operation success
|
|
956
|
-
*/
|
|
957
|
-
'success': boolean;
|
|
958
|
-
/**
|
|
959
|
-
* Status message
|
|
960
|
-
*/
|
|
961
|
-
'message': string;
|
|
962
|
-
/**
|
|
963
|
-
* Unix timestamp
|
|
964
|
-
*/
|
|
965
|
-
'timestamp': number;
|
|
966
|
-
/**
|
|
967
|
-
* URL data
|
|
968
|
-
*/
|
|
969
|
-
'data'?: UrlData;
|
|
970
|
-
}
|
|
971
598
|
export interface WaitElementRequest {
|
|
972
599
|
/**
|
|
973
|
-
*
|
|
600
|
+
* selector
|
|
974
601
|
*/
|
|
975
602
|
'selector': string;
|
|
976
603
|
/**
|
|
977
|
-
*
|
|
978
|
-
*/
|
|
979
|
-
'by'?: string;
|
|
980
|
-
/**
|
|
981
|
-
* Wait until: visible or hidden
|
|
604
|
+
* until
|
|
982
605
|
*/
|
|
983
|
-
'until':
|
|
606
|
+
'until': string;
|
|
984
607
|
/**
|
|
985
|
-
*
|
|
608
|
+
* timeout
|
|
986
609
|
*/
|
|
987
610
|
'timeout'?: number;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
export const WaitElementRequestUntilEnum = {
|
|
991
|
-
Visible: 'visible',
|
|
992
|
-
Hidden: 'hidden'
|
|
993
|
-
} as const;
|
|
994
|
-
|
|
995
|
-
export type WaitElementRequestUntilEnum = typeof WaitElementRequestUntilEnum[keyof typeof WaitElementRequestUntilEnum];
|
|
996
|
-
|
|
997
|
-
export interface WhatIsVisibleResult {
|
|
998
611
|
/**
|
|
999
|
-
*
|
|
612
|
+
* by
|
|
1000
613
|
*/
|
|
1001
|
-
'
|
|
1002
|
-
/**
|
|
1003
|
-
* Success message
|
|
1004
|
-
*/
|
|
1005
|
-
'message'?: string;
|
|
1006
|
-
/**
|
|
1007
|
-
* Unix timestamp
|
|
1008
|
-
*/
|
|
1009
|
-
'timestamp'?: number;
|
|
1010
|
-
/**
|
|
1011
|
-
* Comprehensive page state analysis
|
|
1012
|
-
*/
|
|
1013
|
-
'analysis'?: string;
|
|
1014
|
-
/**
|
|
1015
|
-
* AI model used for analysis
|
|
1016
|
-
*/
|
|
1017
|
-
'model'?: string;
|
|
1018
|
-
/**
|
|
1019
|
-
* URL to the screenshot
|
|
1020
|
-
*/
|
|
1021
|
-
'screenshot_url'?: string;
|
|
1022
|
-
/**
|
|
1023
|
-
* Path to the screenshot file
|
|
1024
|
-
*/
|
|
1025
|
-
'screenshot_path'?: string;
|
|
1026
|
-
/**
|
|
1027
|
-
* Error message if failed
|
|
1028
|
-
*/
|
|
1029
|
-
'error'?: string;
|
|
614
|
+
'by'?: string;
|
|
1030
615
|
}
|
|
1031
616
|
|
|
1032
617
|
/**
|
|
@@ -1036,19 +621,15 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1036
621
|
return {
|
|
1037
622
|
/**
|
|
1038
623
|
*
|
|
1039
|
-
* @summary
|
|
1040
|
-
* @param {
|
|
1041
|
-
* @param {CheckElementRequest} payload
|
|
624
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
625
|
+
* @param {BrowsersRequest} payload
|
|
1042
626
|
* @param {*} [options] Override http request option.
|
|
1043
627
|
* @throws {RequiredError}
|
|
1044
628
|
*/
|
|
1045
|
-
|
|
1046
|
-
// verify required parameter 'browserId' is not null or undefined
|
|
1047
|
-
assertParamExists('checkElement', 'browserId', browserId)
|
|
629
|
+
browsers: async (payload: BrowsersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1048
630
|
// verify required parameter 'payload' is not null or undefined
|
|
1049
|
-
assertParamExists('
|
|
1050
|
-
const localVarPath = `/browser/
|
|
1051
|
-
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
631
|
+
assertParamExists('browsers', 'payload', payload)
|
|
632
|
+
const localVarPath = `/browser/browsers`;
|
|
1052
633
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1053
634
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1054
635
|
let baseOptions;
|
|
@@ -1074,19 +655,23 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1074
655
|
};
|
|
1075
656
|
},
|
|
1076
657
|
/**
|
|
1077
|
-
*
|
|
1078
|
-
* @summary
|
|
1079
|
-
* @param {string} browserId
|
|
1080
|
-
* @param {
|
|
658
|
+
*
|
|
659
|
+
* @summary Check if element exists or is visible
|
|
660
|
+
* @param {string} browserId
|
|
661
|
+
* @param {string} selector selector
|
|
662
|
+
* @param {string} check check
|
|
663
|
+
* @param {string} [by] by
|
|
1081
664
|
* @param {*} [options] Override http request option.
|
|
1082
665
|
* @throws {RequiredError}
|
|
1083
666
|
*/
|
|
1084
|
-
|
|
667
|
+
checkElement: async (browserId: string, selector: string, check: string, by?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1085
668
|
// verify required parameter 'browserId' is not null or undefined
|
|
1086
|
-
assertParamExists('
|
|
1087
|
-
// verify required parameter '
|
|
1088
|
-
assertParamExists('
|
|
1089
|
-
|
|
669
|
+
assertParamExists('checkElement', 'browserId', browserId)
|
|
670
|
+
// verify required parameter 'selector' is not null or undefined
|
|
671
|
+
assertParamExists('checkElement', 'selector', selector)
|
|
672
|
+
// verify required parameter 'check' is not null or undefined
|
|
673
|
+
assertParamExists('checkElement', 'check', check)
|
|
674
|
+
const localVarPath = `/browser/{browser_id}/check_element`
|
|
1090
675
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1091
676
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1092
677
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1095,41 +680,21 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1095
680
|
baseOptions = configuration.baseOptions;
|
|
1096
681
|
}
|
|
1097
682
|
|
|
1098
|
-
const localVarRequestOptions = { method: '
|
|
683
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1099
684
|
const localVarHeaderParameter = {} as any;
|
|
1100
685
|
const localVarQueryParameter = {} as any;
|
|
1101
686
|
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1106
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1107
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1108
|
-
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
687
|
+
if (selector !== undefined) {
|
|
688
|
+
localVarQueryParameter['selector'] = selector;
|
|
689
|
+
}
|
|
1109
690
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
options: localVarRequestOptions,
|
|
1113
|
-
};
|
|
1114
|
-
},
|
|
1115
|
-
/**
|
|
1116
|
-
*
|
|
1117
|
-
* @summary Close all active browser instances
|
|
1118
|
-
* @param {*} [options] Override http request option.
|
|
1119
|
-
* @throws {RequiredError}
|
|
1120
|
-
*/
|
|
1121
|
-
closeAllBrowsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1122
|
-
const localVarPath = `/browser/close_all`;
|
|
1123
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1124
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1125
|
-
let baseOptions;
|
|
1126
|
-
if (configuration) {
|
|
1127
|
-
baseOptions = configuration.baseOptions;
|
|
691
|
+
if (check !== undefined) {
|
|
692
|
+
localVarQueryParameter['check'] = check;
|
|
1128
693
|
}
|
|
1129
694
|
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
695
|
+
if (by !== undefined) {
|
|
696
|
+
localVarQueryParameter['by'] = by;
|
|
697
|
+
}
|
|
1133
698
|
|
|
1134
699
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1135
700
|
|
|
@@ -1143,16 +708,19 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1143
708
|
};
|
|
1144
709
|
},
|
|
1145
710
|
/**
|
|
1146
|
-
*
|
|
1147
|
-
* @summary
|
|
1148
|
-
* @param {string} browserId
|
|
711
|
+
* Use if_visible=True to only click if visible.
|
|
712
|
+
* @summary Click element
|
|
713
|
+
* @param {string} browserId
|
|
714
|
+
* @param {ClickRequest} payload
|
|
1149
715
|
* @param {*} [options] Override http request option.
|
|
1150
716
|
* @throws {RequiredError}
|
|
1151
717
|
*/
|
|
1152
|
-
|
|
718
|
+
click: async (browserId: string, payload: ClickRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1153
719
|
// verify required parameter 'browserId' is not null or undefined
|
|
1154
|
-
assertParamExists('
|
|
1155
|
-
|
|
720
|
+
assertParamExists('click', 'browserId', browserId)
|
|
721
|
+
// verify required parameter 'payload' is not null or undefined
|
|
722
|
+
assertParamExists('click', 'payload', payload)
|
|
723
|
+
const localVarPath = `/browser/{browser_id}/click`
|
|
1156
724
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1157
725
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1158
726
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1165,11 +733,13 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1165
733
|
const localVarHeaderParameter = {} as any;
|
|
1166
734
|
const localVarQueryParameter = {} as any;
|
|
1167
735
|
|
|
736
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1168
737
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1169
738
|
|
|
1170
739
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1171
740
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1172
741
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
742
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1173
743
|
|
|
1174
744
|
return {
|
|
1175
745
|
url: toPathString(localVarUrlObj),
|
|
@@ -1178,18 +748,15 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1178
748
|
},
|
|
1179
749
|
/**
|
|
1180
750
|
*
|
|
1181
|
-
* @summary
|
|
1182
|
-
* @param {string} browserId
|
|
1183
|
-
* @param {ConsoleLogsRequest} payload
|
|
751
|
+
* @summary Close browser instance
|
|
752
|
+
* @param {string} browserId
|
|
1184
753
|
* @param {*} [options] Override http request option.
|
|
1185
754
|
* @throws {RequiredError}
|
|
1186
755
|
*/
|
|
1187
|
-
|
|
756
|
+
closeBrowser: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1188
757
|
// verify required parameter 'browserId' is not null or undefined
|
|
1189
|
-
assertParamExists('
|
|
1190
|
-
|
|
1191
|
-
assertParamExists('consoleLogs', 'payload', payload)
|
|
1192
|
-
const localVarPath = `/browser/{browser_id}/console`
|
|
758
|
+
assertParamExists('closeBrowser', 'browserId', browserId)
|
|
759
|
+
const localVarPath = `/browser/{browser_id}/close_browser`
|
|
1193
760
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1194
761
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1195
762
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1198,17 +765,15 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1198
765
|
baseOptions = configuration.baseOptions;
|
|
1199
766
|
}
|
|
1200
767
|
|
|
1201
|
-
const localVarRequestOptions = { method: '
|
|
768
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1202
769
|
const localVarHeaderParameter = {} as any;
|
|
1203
770
|
const localVarQueryParameter = {} as any;
|
|
1204
771
|
|
|
1205
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1206
772
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1207
773
|
|
|
1208
774
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1209
775
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1210
776
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1211
|
-
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1212
777
|
|
|
1213
778
|
return {
|
|
1214
779
|
url: toPathString(localVarUrlObj),
|
|
@@ -1217,15 +782,19 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1217
782
|
},
|
|
1218
783
|
/**
|
|
1219
784
|
*
|
|
1220
|
-
* @summary
|
|
1221
|
-
* @param {
|
|
785
|
+
* @summary Console logs: get or clear
|
|
786
|
+
* @param {string} browserId
|
|
787
|
+
* @param {ConsoleLogsRequest} payload
|
|
1222
788
|
* @param {*} [options] Override http request option.
|
|
1223
789
|
* @throws {RequiredError}
|
|
1224
790
|
*/
|
|
1225
|
-
|
|
791
|
+
consoleLogs: async (browserId: string, payload: ConsoleLogsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
792
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
793
|
+
assertParamExists('consoleLogs', 'browserId', browserId)
|
|
1226
794
|
// verify required parameter 'payload' is not null or undefined
|
|
1227
|
-
assertParamExists('
|
|
1228
|
-
const localVarPath = `/browser/
|
|
795
|
+
assertParamExists('consoleLogs', 'payload', payload)
|
|
796
|
+
const localVarPath = `/browser/{browser_id}/console_logs`
|
|
797
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1229
798
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1230
799
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1231
800
|
let baseOptions;
|
|
@@ -1252,16 +821,15 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1252
821
|
},
|
|
1253
822
|
/**
|
|
1254
823
|
*
|
|
1255
|
-
* @summary
|
|
1256
|
-
* @param {
|
|
824
|
+
* @summary Create browser instance with optional persistent profile
|
|
825
|
+
* @param {CreateBrowserRequest} payload
|
|
1257
826
|
* @param {*} [options] Override http request option.
|
|
1258
827
|
* @throws {RequiredError}
|
|
1259
828
|
*/
|
|
1260
|
-
|
|
1261
|
-
// verify required parameter '
|
|
1262
|
-
assertParamExists('
|
|
1263
|
-
const localVarPath = `/browser/
|
|
1264
|
-
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
829
|
+
createBrowser: async (payload: CreateBrowserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
830
|
+
// verify required parameter 'payload' is not null or undefined
|
|
831
|
+
assertParamExists('createBrowser', 'payload', payload)
|
|
832
|
+
const localVarPath = `/browser/create_browser`;
|
|
1265
833
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1266
834
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1267
835
|
let baseOptions;
|
|
@@ -1269,15 +837,17 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1269
837
|
baseOptions = configuration.baseOptions;
|
|
1270
838
|
}
|
|
1271
839
|
|
|
1272
|
-
const localVarRequestOptions = { method: '
|
|
840
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1273
841
|
const localVarHeaderParameter = {} as any;
|
|
1274
842
|
const localVarQueryParameter = {} as any;
|
|
1275
843
|
|
|
844
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1276
845
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1277
846
|
|
|
1278
847
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1279
848
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1280
849
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
850
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1281
851
|
|
|
1282
852
|
return {
|
|
1283
853
|
url: toPathString(localVarUrlObj),
|
|
@@ -1285,9 +855,9 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1285
855
|
};
|
|
1286
856
|
},
|
|
1287
857
|
/**
|
|
1288
|
-
*
|
|
1289
|
-
* @summary Detect element coordinates using
|
|
1290
|
-
* @param {string} browserId
|
|
858
|
+
* 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).
|
|
859
|
+
* @summary Detect element coordinates using vision
|
|
860
|
+
* @param {string} browserId
|
|
1291
861
|
* @param {DetectCoordinatesRequest} payload
|
|
1292
862
|
* @param {*} [options] Override http request option.
|
|
1293
863
|
* @throws {RequiredError}
|
|
@@ -1325,13 +895,13 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1325
895
|
},
|
|
1326
896
|
/**
|
|
1327
897
|
*
|
|
1328
|
-
* @summary
|
|
1329
|
-
* @param {string} browserId
|
|
1330
|
-
* @param {
|
|
898
|
+
* @summary Dialogs: get, accept, dismiss
|
|
899
|
+
* @param {string} browserId
|
|
900
|
+
* @param {DialogRequest} payload
|
|
1331
901
|
* @param {*} [options] Override http request option.
|
|
1332
902
|
* @throws {RequiredError}
|
|
1333
903
|
*/
|
|
1334
|
-
dialog: async (browserId: string, payload:
|
|
904
|
+
dialog: async (browserId: string, payload: DialogRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1335
905
|
// verify required parameter 'browserId' is not null or undefined
|
|
1336
906
|
assertParamExists('dialog', 'browserId', browserId)
|
|
1337
907
|
// verify required parameter 'payload' is not null or undefined
|
|
@@ -1364,13 +934,13 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1364
934
|
},
|
|
1365
935
|
/**
|
|
1366
936
|
*
|
|
1367
|
-
* @summary
|
|
1368
|
-
* @param {string} browserId
|
|
1369
|
-
* @param {
|
|
937
|
+
* @summary Emulation: set, clear, list_devices
|
|
938
|
+
* @param {string} browserId
|
|
939
|
+
* @param {EmulateRequest} payload
|
|
1370
940
|
* @param {*} [options] Override http request option.
|
|
1371
941
|
* @throws {RequiredError}
|
|
1372
942
|
*/
|
|
1373
|
-
emulate: async (browserId: string, payload:
|
|
943
|
+
emulate: async (browserId: string, payload: EmulateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1374
944
|
// verify required parameter 'browserId' is not null or undefined
|
|
1375
945
|
assertParamExists('emulate', 'browserId', browserId)
|
|
1376
946
|
// verify required parameter 'payload' is not null or undefined
|
|
@@ -1404,17 +974,17 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1404
974
|
/**
|
|
1405
975
|
*
|
|
1406
976
|
* @summary Execute JavaScript
|
|
1407
|
-
* @param {string} browserId
|
|
1408
|
-
* @param {
|
|
977
|
+
* @param {string} browserId
|
|
978
|
+
* @param {ExecuteScriptRequest} payload
|
|
1409
979
|
* @param {*} [options] Override http request option.
|
|
1410
980
|
* @throws {RequiredError}
|
|
1411
981
|
*/
|
|
1412
|
-
executeScript: async (browserId: string, payload:
|
|
982
|
+
executeScript: async (browserId: string, payload: ExecuteScriptRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1413
983
|
// verify required parameter 'browserId' is not null or undefined
|
|
1414
984
|
assertParamExists('executeScript', 'browserId', browserId)
|
|
1415
985
|
// verify required parameter 'payload' is not null or undefined
|
|
1416
986
|
assertParamExists('executeScript', 'payload', payload)
|
|
1417
|
-
const localVarPath = `/browser/{browser_id}/
|
|
987
|
+
const localVarPath = `/browser/{browser_id}/execute_script`
|
|
1418
988
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1419
989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1420
990
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1443,7 +1013,7 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1443
1013
|
/**
|
|
1444
1014
|
*
|
|
1445
1015
|
* @summary Fill multiple form fields
|
|
1446
|
-
* @param {string} browserId
|
|
1016
|
+
* @param {string} browserId
|
|
1447
1017
|
* @param {FillFormRequest} payload
|
|
1448
1018
|
* @param {*} [options] Override http request option.
|
|
1449
1019
|
* @throws {RequiredError}
|
|
@@ -1481,15 +1051,15 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1481
1051
|
},
|
|
1482
1052
|
/**
|
|
1483
1053
|
*
|
|
1484
|
-
* @summary Get
|
|
1485
|
-
* @param {string} browserId
|
|
1054
|
+
* @summary Get page HTML
|
|
1055
|
+
* @param {string} browserId
|
|
1486
1056
|
* @param {*} [options] Override http request option.
|
|
1487
1057
|
* @throws {RequiredError}
|
|
1488
1058
|
*/
|
|
1489
|
-
|
|
1059
|
+
getContent: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1490
1060
|
// verify required parameter 'browserId' is not null or undefined
|
|
1491
|
-
assertParamExists('
|
|
1492
|
-
const localVarPath = `/browser/{browser_id}`
|
|
1061
|
+
assertParamExists('getContent', 'browserId', browserId)
|
|
1062
|
+
const localVarPath = `/browser/{browser_id}/get_content`
|
|
1493
1063
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1494
1064
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1495
1065
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1515,15 +1085,23 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1515
1085
|
},
|
|
1516
1086
|
/**
|
|
1517
1087
|
*
|
|
1518
|
-
* @summary Get
|
|
1519
|
-
* @param {string} browserId
|
|
1088
|
+
* @summary Get element text, attribute, or property
|
|
1089
|
+
* @param {string} browserId
|
|
1090
|
+
* @param {string} selector selector
|
|
1091
|
+
* @param {string} dataType data_type
|
|
1092
|
+
* @param {string} [name] name
|
|
1093
|
+
* @param {string} [by] by
|
|
1520
1094
|
* @param {*} [options] Override http request option.
|
|
1521
1095
|
* @throws {RequiredError}
|
|
1522
1096
|
*/
|
|
1523
|
-
|
|
1097
|
+
getElementData: async (browserId: string, selector: string, dataType: string, name?: string, by?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1524
1098
|
// verify required parameter 'browserId' is not null or undefined
|
|
1525
|
-
assertParamExists('
|
|
1526
|
-
|
|
1099
|
+
assertParamExists('getElementData', 'browserId', browserId)
|
|
1100
|
+
// verify required parameter 'selector' is not null or undefined
|
|
1101
|
+
assertParamExists('getElementData', 'selector', selector)
|
|
1102
|
+
// verify required parameter 'dataType' is not null or undefined
|
|
1103
|
+
assertParamExists('getElementData', 'dataType', dataType)
|
|
1104
|
+
const localVarPath = `/browser/{browser_id}/get_element_data`
|
|
1527
1105
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1528
1106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1529
1107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1536,6 +1114,22 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1536
1114
|
const localVarHeaderParameter = {} as any;
|
|
1537
1115
|
const localVarQueryParameter = {} as any;
|
|
1538
1116
|
|
|
1117
|
+
if (selector !== undefined) {
|
|
1118
|
+
localVarQueryParameter['selector'] = selector;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
if (dataType !== undefined) {
|
|
1122
|
+
localVarQueryParameter['data_type'] = dataType;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
if (name !== undefined) {
|
|
1126
|
+
localVarQueryParameter['name'] = name;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
if (by !== undefined) {
|
|
1130
|
+
localVarQueryParameter['by'] = by;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1539
1133
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1540
1134
|
|
|
1541
1135
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1549,15 +1143,15 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1549
1143
|
},
|
|
1550
1144
|
/**
|
|
1551
1145
|
*
|
|
1552
|
-
* @summary Get
|
|
1553
|
-
* @param {string} browserId
|
|
1146
|
+
* @summary Get current URL
|
|
1147
|
+
* @param {string} browserId
|
|
1554
1148
|
* @param {*} [options] Override http request option.
|
|
1555
1149
|
* @throws {RequiredError}
|
|
1556
1150
|
*/
|
|
1557
|
-
|
|
1151
|
+
getUrl: async (browserId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1558
1152
|
// verify required parameter 'browserId' is not null or undefined
|
|
1559
|
-
assertParamExists('
|
|
1560
|
-
const localVarPath = `/browser/{browser_id}/
|
|
1153
|
+
assertParamExists('getUrl', 'browserId', browserId)
|
|
1154
|
+
const localVarPath = `/browser/{browser_id}/get_url`
|
|
1561
1155
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1562
1156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1563
1157
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1583,18 +1177,18 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1583
1177
|
},
|
|
1584
1178
|
/**
|
|
1585
1179
|
*
|
|
1586
|
-
* @summary
|
|
1587
|
-
* @param {string} browserId
|
|
1588
|
-
* @param {
|
|
1180
|
+
* @summary GUI click by selector or coordinates
|
|
1181
|
+
* @param {string} browserId
|
|
1182
|
+
* @param {GuiClickRequest} payload
|
|
1589
1183
|
* @param {*} [options] Override http request option.
|
|
1590
1184
|
* @throws {RequiredError}
|
|
1591
1185
|
*/
|
|
1592
|
-
|
|
1186
|
+
guiClick: async (browserId: string, payload: GuiClickRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1593
1187
|
// verify required parameter 'browserId' is not null or undefined
|
|
1594
|
-
assertParamExists('
|
|
1188
|
+
assertParamExists('guiClick', 'browserId', browserId)
|
|
1595
1189
|
// verify required parameter 'payload' is not null or undefined
|
|
1596
|
-
assertParamExists('
|
|
1597
|
-
const localVarPath = `/browser/{browser_id}/
|
|
1190
|
+
assertParamExists('guiClick', 'payload', payload)
|
|
1191
|
+
const localVarPath = `/browser/{browser_id}/gui_click`
|
|
1598
1192
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1599
1193
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1600
1194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1622,12 +1216,19 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1622
1216
|
},
|
|
1623
1217
|
/**
|
|
1624
1218
|
*
|
|
1625
|
-
* @summary
|
|
1219
|
+
* @summary GUI hover at coordinates
|
|
1220
|
+
* @param {string} browserId
|
|
1221
|
+
* @param {GuiHoverXyRequest} payload
|
|
1626
1222
|
* @param {*} [options] Override http request option.
|
|
1627
1223
|
* @throws {RequiredError}
|
|
1628
1224
|
*/
|
|
1629
|
-
|
|
1630
|
-
|
|
1225
|
+
guiHoverXy: async (browserId: string, payload: GuiHoverXyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1226
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
1227
|
+
assertParamExists('guiHoverXy', 'browserId', browserId)
|
|
1228
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1229
|
+
assertParamExists('guiHoverXy', 'payload', payload)
|
|
1230
|
+
const localVarPath = `/browser/{browser_id}/gui_hover_xy`
|
|
1231
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1631
1232
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1632
1233
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1633
1234
|
let baseOptions;
|
|
@@ -1635,15 +1236,17 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1635
1236
|
baseOptions = configuration.baseOptions;
|
|
1636
1237
|
}
|
|
1637
1238
|
|
|
1638
|
-
const localVarRequestOptions = { method: '
|
|
1239
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1639
1240
|
const localVarHeaderParameter = {} as any;
|
|
1640
1241
|
const localVarQueryParameter = {} as any;
|
|
1641
1242
|
|
|
1243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1642
1244
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1643
1245
|
|
|
1644
1246
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1645
1247
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1646
1248
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1249
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1647
1250
|
|
|
1648
1251
|
return {
|
|
1649
1252
|
url: toPathString(localVarUrlObj),
|
|
@@ -1652,15 +1255,18 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1652
1255
|
},
|
|
1653
1256
|
/**
|
|
1654
1257
|
*
|
|
1655
|
-
* @summary
|
|
1656
|
-
* @param {string} browserId
|
|
1258
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
1259
|
+
* @param {string} browserId
|
|
1260
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
1657
1261
|
* @param {*} [options] Override http request option.
|
|
1658
1262
|
* @throws {RequiredError}
|
|
1659
1263
|
*/
|
|
1660
|
-
|
|
1264
|
+
guiPressKeysXy: async (browserId: string, payload: GuiPressKeysXyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1661
1265
|
// verify required parameter 'browserId' is not null or undefined
|
|
1662
|
-
assertParamExists('
|
|
1663
|
-
|
|
1266
|
+
assertParamExists('guiPressKeysXy', 'browserId', browserId)
|
|
1267
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1268
|
+
assertParamExists('guiPressKeysXy', 'payload', payload)
|
|
1269
|
+
const localVarPath = `/browser/{browser_id}/gui_press_keys_xy`
|
|
1664
1270
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1665
1271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1666
1272
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1669,15 +1275,17 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1669
1275
|
baseOptions = configuration.baseOptions;
|
|
1670
1276
|
}
|
|
1671
1277
|
|
|
1672
|
-
const localVarRequestOptions = { method: '
|
|
1278
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1673
1279
|
const localVarHeaderParameter = {} as any;
|
|
1674
1280
|
const localVarQueryParameter = {} as any;
|
|
1675
1281
|
|
|
1282
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1676
1283
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1677
1284
|
|
|
1678
1285
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1679
1286
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1680
1287
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1288
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
1681
1289
|
|
|
1682
1290
|
return {
|
|
1683
1291
|
url: toPathString(localVarUrlObj),
|
|
@@ -1686,18 +1294,18 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1686
1294
|
},
|
|
1687
1295
|
/**
|
|
1688
1296
|
*
|
|
1689
|
-
* @summary
|
|
1690
|
-
* @param {string} browserId
|
|
1691
|
-
* @param {
|
|
1297
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
1298
|
+
* @param {string} browserId
|
|
1299
|
+
* @param {GuiTypeXyRequest} payload
|
|
1692
1300
|
* @param {*} [options] Override http request option.
|
|
1693
1301
|
* @throws {RequiredError}
|
|
1694
1302
|
*/
|
|
1695
|
-
|
|
1303
|
+
guiTypeXy: async (browserId: string, payload: GuiTypeXyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1696
1304
|
// verify required parameter 'browserId' is not null or undefined
|
|
1697
|
-
assertParamExists('
|
|
1305
|
+
assertParamExists('guiTypeXy', 'browserId', browserId)
|
|
1698
1306
|
// verify required parameter 'payload' is not null or undefined
|
|
1699
|
-
assertParamExists('
|
|
1700
|
-
const localVarPath = `/browser/{browser_id}/
|
|
1307
|
+
assertParamExists('guiTypeXy', 'payload', payload)
|
|
1308
|
+
const localVarPath = `/browser/{browser_id}/gui_type_xy`
|
|
1701
1309
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1702
1310
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1703
1311
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1725,8 +1333,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1725
1333
|
},
|
|
1726
1334
|
/**
|
|
1727
1335
|
*
|
|
1728
|
-
* @summary
|
|
1729
|
-
* @param {string} browserId
|
|
1336
|
+
* @summary History: back, forward, or refresh
|
|
1337
|
+
* @param {string} browserId
|
|
1730
1338
|
* @param {HistoryRequest} payload
|
|
1731
1339
|
* @param {*} [options] Override http request option.
|
|
1732
1340
|
* @throws {RequiredError}
|
|
@@ -1764,38 +1372,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1764
1372
|
},
|
|
1765
1373
|
/**
|
|
1766
1374
|
*
|
|
1767
|
-
* @summary
|
|
1768
|
-
* @param {
|
|
1769
|
-
* @throws {RequiredError}
|
|
1770
|
-
*/
|
|
1771
|
-
listBrowsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1772
|
-
const localVarPath = `/browser/list`;
|
|
1773
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1774
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1775
|
-
let baseOptions;
|
|
1776
|
-
if (configuration) {
|
|
1777
|
-
baseOptions = configuration.baseOptions;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1781
|
-
const localVarHeaderParameter = {} as any;
|
|
1782
|
-
const localVarQueryParameter = {} as any;
|
|
1783
|
-
|
|
1784
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1785
|
-
|
|
1786
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1787
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1788
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1789
|
-
|
|
1790
|
-
return {
|
|
1791
|
-
url: toPathString(localVarUrlObj),
|
|
1792
|
-
options: localVarRequestOptions,
|
|
1793
|
-
};
|
|
1794
|
-
},
|
|
1795
|
-
/**
|
|
1796
|
-
*
|
|
1797
|
-
* @summary Mouse action: hover or drag
|
|
1798
|
-
* @param {string} browserId Unique browser identifier
|
|
1375
|
+
* @summary Mouse: hover or drag
|
|
1376
|
+
* @param {string} browserId
|
|
1799
1377
|
* @param {MouseRequest} payload
|
|
1800
1378
|
* @param {*} [options] Override http request option.
|
|
1801
1379
|
* @throws {RequiredError}
|
|
@@ -1833,13 +1411,13 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1833
1411
|
},
|
|
1834
1412
|
/**
|
|
1835
1413
|
*
|
|
1836
|
-
* @summary Navigate to
|
|
1837
|
-
* @param {string} browserId
|
|
1838
|
-
* @param {
|
|
1414
|
+
* @summary Navigate to URL
|
|
1415
|
+
* @param {string} browserId
|
|
1416
|
+
* @param {NavigateBrowserRequest} payload
|
|
1839
1417
|
* @param {*} [options] Override http request option.
|
|
1840
1418
|
* @throws {RequiredError}
|
|
1841
1419
|
*/
|
|
1842
|
-
navigateBrowser: async (browserId: string, payload:
|
|
1420
|
+
navigateBrowser: async (browserId: string, payload: NavigateBrowserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1843
1421
|
// verify required parameter 'browserId' is not null or undefined
|
|
1844
1422
|
assertParamExists('navigateBrowser', 'browserId', browserId)
|
|
1845
1423
|
// verify required parameter 'payload' is not null or undefined
|
|
@@ -1872,8 +1450,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1872
1450
|
},
|
|
1873
1451
|
/**
|
|
1874
1452
|
*
|
|
1875
|
-
* @summary
|
|
1876
|
-
* @param {string} browserId
|
|
1453
|
+
* @summary Network logs: get or clear
|
|
1454
|
+
* @param {string} browserId
|
|
1877
1455
|
* @param {NetworkLogsRequest} payload
|
|
1878
1456
|
* @param {*} [options] Override http request option.
|
|
1879
1457
|
* @throws {RequiredError}
|
|
@@ -1883,7 +1461,7 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1883
1461
|
assertParamExists('networkLogs', 'browserId', browserId)
|
|
1884
1462
|
// verify required parameter 'payload' is not null or undefined
|
|
1885
1463
|
assertParamExists('networkLogs', 'payload', payload)
|
|
1886
|
-
const localVarPath = `/browser/{browser_id}/
|
|
1464
|
+
const localVarPath = `/browser/{browser_id}/network_logs`
|
|
1887
1465
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1888
1466
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1889
1467
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1911,8 +1489,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1911
1489
|
},
|
|
1912
1490
|
/**
|
|
1913
1491
|
*
|
|
1914
|
-
* @summary
|
|
1915
|
-
* @param {string} browserId
|
|
1492
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
1493
|
+
* @param {string} browserId
|
|
1916
1494
|
* @param {PerformanceRequest} payload
|
|
1917
1495
|
* @param {*} [options] Override http request option.
|
|
1918
1496
|
* @throws {RequiredError}
|
|
@@ -1950,8 +1528,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1950
1528
|
},
|
|
1951
1529
|
/**
|
|
1952
1530
|
*
|
|
1953
|
-
* @summary Press keys
|
|
1954
|
-
* @param {string} browserId
|
|
1531
|
+
* @summary Press keyboard keys
|
|
1532
|
+
* @param {string} browserId
|
|
1955
1533
|
* @param {PressKeysRequest} payload
|
|
1956
1534
|
* @param {*} [options] Override http request option.
|
|
1957
1535
|
* @throws {RequiredError}
|
|
@@ -1990,7 +1568,7 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1990
1568
|
/**
|
|
1991
1569
|
*
|
|
1992
1570
|
* @summary Resize viewport
|
|
1993
|
-
* @param {string} browserId
|
|
1571
|
+
* @param {string} browserId
|
|
1994
1572
|
* @param {ResizeRequest} payload
|
|
1995
1573
|
* @param {*} [options] Override http request option.
|
|
1996
1574
|
* @throws {RequiredError}
|
|
@@ -2028,13 +1606,13 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2028
1606
|
},
|
|
2029
1607
|
/**
|
|
2030
1608
|
*
|
|
2031
|
-
* @summary Scroll to element/
|
|
2032
|
-
* @param {string} browserId
|
|
2033
|
-
* @param {
|
|
1609
|
+
* @summary Scroll to element/coords or by delta
|
|
1610
|
+
* @param {string} browserId
|
|
1611
|
+
* @param {ScrollRequest} payload
|
|
2034
1612
|
* @param {*} [options] Override http request option.
|
|
2035
1613
|
* @throws {RequiredError}
|
|
2036
1614
|
*/
|
|
2037
|
-
scroll: async (browserId: string, payload:
|
|
1615
|
+
scroll: async (browserId: string, payload: ScrollRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2038
1616
|
// verify required parameter 'browserId' is not null or undefined
|
|
2039
1617
|
assertParamExists('scroll', 'browserId', browserId)
|
|
2040
1618
|
// verify required parameter 'payload' is not null or undefined
|
|
@@ -2068,7 +1646,7 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2068
1646
|
/**
|
|
2069
1647
|
*
|
|
2070
1648
|
* @summary Select dropdown: select option or get options
|
|
2071
|
-
* @param {string} browserId
|
|
1649
|
+
* @param {string} browserId
|
|
2072
1650
|
* @param {SelectRequest} payload
|
|
2073
1651
|
* @param {*} [options] Override http request option.
|
|
2074
1652
|
* @throws {RequiredError}
|
|
@@ -2106,18 +1684,18 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2106
1684
|
},
|
|
2107
1685
|
/**
|
|
2108
1686
|
*
|
|
2109
|
-
* @summary
|
|
2110
|
-
* @param {string} browserId
|
|
2111
|
-
* @param {
|
|
1687
|
+
* @summary DOM or accessibility snapshot
|
|
1688
|
+
* @param {string} browserId
|
|
1689
|
+
* @param {SnapshotRequest} payload
|
|
2112
1690
|
* @param {*} [options] Override http request option.
|
|
2113
1691
|
* @throws {RequiredError}
|
|
2114
1692
|
*/
|
|
2115
|
-
|
|
1693
|
+
snapshot: async (browserId: string, payload: SnapshotRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2116
1694
|
// verify required parameter 'browserId' is not null or undefined
|
|
2117
|
-
assertParamExists('
|
|
1695
|
+
assertParamExists('snapshot', 'browserId', browserId)
|
|
2118
1696
|
// verify required parameter 'payload' is not null or undefined
|
|
2119
|
-
assertParamExists('
|
|
2120
|
-
const localVarPath = `/browser/{browser_id}/
|
|
1697
|
+
assertParamExists('snapshot', 'payload', payload)
|
|
1698
|
+
const localVarPath = `/browser/{browser_id}/snapshot`
|
|
2121
1699
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2122
1700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2123
1701
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2145,15 +1723,18 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2145
1723
|
},
|
|
2146
1724
|
/**
|
|
2147
1725
|
*
|
|
2148
|
-
* @summary
|
|
2149
|
-
* @param {string} browserId
|
|
1726
|
+
* @summary Tabs: list, new, switch, close, current
|
|
1727
|
+
* @param {string} browserId
|
|
1728
|
+
* @param {TabsRequest} payload
|
|
2150
1729
|
* @param {*} [options] Override http request option.
|
|
2151
1730
|
* @throws {RequiredError}
|
|
2152
1731
|
*/
|
|
2153
|
-
|
|
1732
|
+
tabs: async (browserId: string, payload: TabsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2154
1733
|
// verify required parameter 'browserId' is not null or undefined
|
|
2155
|
-
assertParamExists('
|
|
2156
|
-
|
|
1734
|
+
assertParamExists('tabs', 'browserId', browserId)
|
|
1735
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1736
|
+
assertParamExists('tabs', 'payload', payload)
|
|
1737
|
+
const localVarPath = `/browser/{browser_id}/tabs`
|
|
2157
1738
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2158
1739
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2159
1740
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2166,11 +1747,13 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2166
1747
|
const localVarHeaderParameter = {} as any;
|
|
2167
1748
|
const localVarQueryParameter = {} as any;
|
|
2168
1749
|
|
|
1750
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2169
1751
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2170
1752
|
|
|
2171
1753
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2172
1754
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2173
1755
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1756
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
2174
1757
|
|
|
2175
1758
|
return {
|
|
2176
1759
|
url: toPathString(localVarUrlObj),
|
|
@@ -2179,18 +1762,18 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2179
1762
|
},
|
|
2180
1763
|
/**
|
|
2181
1764
|
*
|
|
2182
|
-
* @summary Take
|
|
2183
|
-
* @param {string} browserId
|
|
2184
|
-
* @param {
|
|
1765
|
+
* @summary Take screenshot
|
|
1766
|
+
* @param {string} browserId
|
|
1767
|
+
* @param {TakeScreenshotRequest} payload
|
|
2185
1768
|
* @param {*} [options] Override http request option.
|
|
2186
1769
|
* @throws {RequiredError}
|
|
2187
1770
|
*/
|
|
2188
|
-
|
|
1771
|
+
takeScreenshot: async (browserId: string, payload: TakeScreenshotRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2189
1772
|
// verify required parameter 'browserId' is not null or undefined
|
|
2190
|
-
assertParamExists('
|
|
1773
|
+
assertParamExists('takeScreenshot', 'browserId', browserId)
|
|
2191
1774
|
// verify required parameter 'payload' is not null or undefined
|
|
2192
|
-
assertParamExists('
|
|
2193
|
-
const localVarPath = `/browser/{browser_id}/
|
|
1775
|
+
assertParamExists('takeScreenshot', 'payload', payload)
|
|
1776
|
+
const localVarPath = `/browser/{browser_id}/screenshot`
|
|
2194
1777
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
2195
1778
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2196
1779
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2218,13 +1801,13 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2218
1801
|
},
|
|
2219
1802
|
/**
|
|
2220
1803
|
*
|
|
2221
|
-
* @summary Type text into
|
|
2222
|
-
* @param {string} browserId
|
|
2223
|
-
* @param {
|
|
1804
|
+
* @summary Type text into element
|
|
1805
|
+
* @param {string} browserId
|
|
1806
|
+
* @param {TypeTextRequest} payload
|
|
2224
1807
|
* @param {*} [options] Override http request option.
|
|
2225
1808
|
* @throws {RequiredError}
|
|
2226
1809
|
*/
|
|
2227
|
-
typeText: async (browserId: string, payload:
|
|
1810
|
+
typeText: async (browserId: string, payload: TypeTextRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2228
1811
|
// verify required parameter 'browserId' is not null or undefined
|
|
2229
1812
|
assertParamExists('typeText', 'browserId', browserId)
|
|
2230
1813
|
// verify required parameter 'payload' is not null or undefined
|
|
@@ -2257,8 +1840,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2257
1840
|
},
|
|
2258
1841
|
/**
|
|
2259
1842
|
*
|
|
2260
|
-
* @summary Upload
|
|
2261
|
-
* @param {string} browserId
|
|
1843
|
+
* @summary Upload file to input
|
|
1844
|
+
* @param {string} browserId
|
|
2262
1845
|
* @param {UploadFileRequest} payload
|
|
2263
1846
|
* @param {*} [options] Override http request option.
|
|
2264
1847
|
* @throws {RequiredError}
|
|
@@ -2296,8 +1879,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2296
1879
|
},
|
|
2297
1880
|
/**
|
|
2298
1881
|
*
|
|
2299
|
-
* @summary Wait for element to
|
|
2300
|
-
* @param {string} browserId
|
|
1882
|
+
* @summary Wait for element to be visible or hidden
|
|
1883
|
+
* @param {string} browserId
|
|
2301
1884
|
* @param {WaitElementRequest} payload
|
|
2302
1885
|
* @param {*} [options] Override http request option.
|
|
2303
1886
|
* @throws {RequiredError}
|
|
@@ -2335,8 +1918,8 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2335
1918
|
},
|
|
2336
1919
|
/**
|
|
2337
1920
|
*
|
|
2338
|
-
* @summary
|
|
2339
|
-
* @param {string} browserId
|
|
1921
|
+
* @summary AI page analysis - what\'s visible
|
|
1922
|
+
* @param {string} browserId
|
|
2340
1923
|
* @param {*} [options] Override http request option.
|
|
2341
1924
|
* @throws {RequiredError}
|
|
2342
1925
|
*/
|
|
@@ -2352,7 +1935,7 @@ export const BrowserApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2352
1935
|
baseOptions = configuration.baseOptions;
|
|
2353
1936
|
}
|
|
2354
1937
|
|
|
2355
|
-
const localVarRequestOptions = { method: '
|
|
1938
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2356
1939
|
const localVarHeaderParameter = {} as any;
|
|
2357
1940
|
const localVarQueryParameter = {} as any;
|
|
2358
1941
|
|
|
@@ -2378,52 +1961,55 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2378
1961
|
return {
|
|
2379
1962
|
/**
|
|
2380
1963
|
*
|
|
2381
|
-
* @summary
|
|
2382
|
-
* @param {
|
|
2383
|
-
* @param {CheckElementRequest} payload
|
|
1964
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
1965
|
+
* @param {BrowsersRequest} payload
|
|
2384
1966
|
* @param {*} [options] Override http request option.
|
|
2385
1967
|
* @throws {RequiredError}
|
|
2386
1968
|
*/
|
|
2387
|
-
async
|
|
2388
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1969
|
+
async browsers(payload: BrowsersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
1970
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.browsers(payload, options);
|
|
2389
1971
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2390
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
1972
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.browsers']?.[localVarOperationServerIndex]?.url;
|
|
2391
1973
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2392
1974
|
},
|
|
2393
1975
|
/**
|
|
2394
|
-
*
|
|
2395
|
-
* @summary
|
|
2396
|
-
* @param {string} browserId
|
|
2397
|
-
* @param {
|
|
1976
|
+
*
|
|
1977
|
+
* @summary Check if element exists or is visible
|
|
1978
|
+
* @param {string} browserId
|
|
1979
|
+
* @param {string} selector selector
|
|
1980
|
+
* @param {string} check check
|
|
1981
|
+
* @param {string} [by] by
|
|
2398
1982
|
* @param {*} [options] Override http request option.
|
|
2399
1983
|
* @throws {RequiredError}
|
|
2400
1984
|
*/
|
|
2401
|
-
async
|
|
2402
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1985
|
+
async checkElement(browserId: string, selector: string, check: string, by?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
1986
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkElement(browserId, selector, check, by, options);
|
|
2403
1987
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2404
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
1988
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.checkElement']?.[localVarOperationServerIndex]?.url;
|
|
2405
1989
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2406
1990
|
},
|
|
2407
1991
|
/**
|
|
2408
|
-
*
|
|
2409
|
-
* @summary
|
|
1992
|
+
* Use if_visible=True to only click if visible.
|
|
1993
|
+
* @summary Click element
|
|
1994
|
+
* @param {string} browserId
|
|
1995
|
+
* @param {ClickRequest} payload
|
|
2410
1996
|
* @param {*} [options] Override http request option.
|
|
2411
1997
|
* @throws {RequiredError}
|
|
2412
1998
|
*/
|
|
2413
|
-
async
|
|
2414
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1999
|
+
async click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2000
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.click(browserId, payload, options);
|
|
2415
2001
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2416
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2002
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.click']?.[localVarOperationServerIndex]?.url;
|
|
2417
2003
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2418
2004
|
},
|
|
2419
2005
|
/**
|
|
2420
2006
|
*
|
|
2421
|
-
* @summary Close
|
|
2422
|
-
* @param {string} browserId
|
|
2007
|
+
* @summary Close browser instance
|
|
2008
|
+
* @param {string} browserId
|
|
2423
2009
|
* @param {*} [options] Override http request option.
|
|
2424
2010
|
* @throws {RequiredError}
|
|
2425
2011
|
*/
|
|
2426
|
-
async closeBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2012
|
+
async closeBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2427
2013
|
const localVarAxiosArgs = await localVarAxiosParamCreator.closeBrowser(browserId, options);
|
|
2428
2014
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2429
2015
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.closeBrowser']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2431,13 +2017,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2431
2017
|
},
|
|
2432
2018
|
/**
|
|
2433
2019
|
*
|
|
2434
|
-
* @summary
|
|
2435
|
-
* @param {string} browserId
|
|
2020
|
+
* @summary Console logs: get or clear
|
|
2021
|
+
* @param {string} browserId
|
|
2436
2022
|
* @param {ConsoleLogsRequest} payload
|
|
2437
2023
|
* @param {*} [options] Override http request option.
|
|
2438
2024
|
* @throws {RequiredError}
|
|
2439
2025
|
*/
|
|
2440
|
-
async consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2026
|
+
async consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2441
2027
|
const localVarAxiosArgs = await localVarAxiosParamCreator.consoleLogs(browserId, payload, options);
|
|
2442
2028
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2443
2029
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.consoleLogs']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2445,39 +2031,26 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2445
2031
|
},
|
|
2446
2032
|
/**
|
|
2447
2033
|
*
|
|
2448
|
-
* @summary Create
|
|
2449
|
-
* @param {
|
|
2034
|
+
* @summary Create browser instance with optional persistent profile
|
|
2035
|
+
* @param {CreateBrowserRequest} payload
|
|
2450
2036
|
* @param {*} [options] Override http request option.
|
|
2451
2037
|
* @throws {RequiredError}
|
|
2452
2038
|
*/
|
|
2453
|
-
async createBrowser(payload:
|
|
2039
|
+
async createBrowser(payload: CreateBrowserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2454
2040
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowser(payload, options);
|
|
2455
2041
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2456
2042
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.createBrowser']?.[localVarOperationServerIndex]?.url;
|
|
2457
2043
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2458
2044
|
},
|
|
2459
2045
|
/**
|
|
2460
|
-
*
|
|
2461
|
-
* @summary
|
|
2462
|
-
* @param {string} browserId
|
|
2463
|
-
* @param {*} [options] Override http request option.
|
|
2464
|
-
* @throws {RequiredError}
|
|
2465
|
-
*/
|
|
2466
|
-
async deleteBrowser(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponse>> {
|
|
2467
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBrowser(browserId, options);
|
|
2468
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2469
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.deleteBrowser']?.[localVarOperationServerIndex]?.url;
|
|
2470
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2471
|
-
},
|
|
2472
|
-
/**
|
|
2473
|
-
*
|
|
2474
|
-
* @summary Detect element coordinates using AI vision
|
|
2475
|
-
* @param {string} browserId Unique browser identifier
|
|
2046
|
+
* 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).
|
|
2047
|
+
* @summary Detect element coordinates using vision
|
|
2048
|
+
* @param {string} browserId
|
|
2476
2049
|
* @param {DetectCoordinatesRequest} payload
|
|
2477
2050
|
* @param {*} [options] Override http request option.
|
|
2478
2051
|
* @throws {RequiredError}
|
|
2479
2052
|
*/
|
|
2480
|
-
async detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2053
|
+
async detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2481
2054
|
const localVarAxiosArgs = await localVarAxiosParamCreator.detectCoordinates(browserId, payload, options);
|
|
2482
2055
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2483
2056
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.detectCoordinates']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2485,13 +2058,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2485
2058
|
},
|
|
2486
2059
|
/**
|
|
2487
2060
|
*
|
|
2488
|
-
* @summary
|
|
2489
|
-
* @param {string} browserId
|
|
2490
|
-
* @param {
|
|
2061
|
+
* @summary Dialogs: get, accept, dismiss
|
|
2062
|
+
* @param {string} browserId
|
|
2063
|
+
* @param {DialogRequest} payload
|
|
2491
2064
|
* @param {*} [options] Override http request option.
|
|
2492
2065
|
* @throws {RequiredError}
|
|
2493
2066
|
*/
|
|
2494
|
-
async dialog(browserId: string, payload:
|
|
2067
|
+
async dialog(browserId: string, payload: DialogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2495
2068
|
const localVarAxiosArgs = await localVarAxiosParamCreator.dialog(browserId, payload, options);
|
|
2496
2069
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2497
2070
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.dialog']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2499,13 +2072,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2499
2072
|
},
|
|
2500
2073
|
/**
|
|
2501
2074
|
*
|
|
2502
|
-
* @summary
|
|
2503
|
-
* @param {string} browserId
|
|
2504
|
-
* @param {
|
|
2075
|
+
* @summary Emulation: set, clear, list_devices
|
|
2076
|
+
* @param {string} browserId
|
|
2077
|
+
* @param {EmulateRequest} payload
|
|
2505
2078
|
* @param {*} [options] Override http request option.
|
|
2506
2079
|
* @throws {RequiredError}
|
|
2507
2080
|
*/
|
|
2508
|
-
async emulate(browserId: string, payload:
|
|
2081
|
+
async emulate(browserId: string, payload: EmulateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2509
2082
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emulate(browserId, payload, options);
|
|
2510
2083
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2511
2084
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.emulate']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2514,12 +2087,12 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2514
2087
|
/**
|
|
2515
2088
|
*
|
|
2516
2089
|
* @summary Execute JavaScript
|
|
2517
|
-
* @param {string} browserId
|
|
2518
|
-
* @param {
|
|
2090
|
+
* @param {string} browserId
|
|
2091
|
+
* @param {ExecuteScriptRequest} payload
|
|
2519
2092
|
* @param {*} [options] Override http request option.
|
|
2520
2093
|
* @throws {RequiredError}
|
|
2521
2094
|
*/
|
|
2522
|
-
async executeScript(browserId: string, payload:
|
|
2095
|
+
async executeScript(browserId: string, payload: ExecuteScriptRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2523
2096
|
const localVarAxiosArgs = await localVarAxiosParamCreator.executeScript(browserId, payload, options);
|
|
2524
2097
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2525
2098
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.executeScript']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2528,12 +2101,12 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2528
2101
|
/**
|
|
2529
2102
|
*
|
|
2530
2103
|
* @summary Fill multiple form fields
|
|
2531
|
-
* @param {string} browserId
|
|
2104
|
+
* @param {string} browserId
|
|
2532
2105
|
* @param {FillFormRequest} payload
|
|
2533
2106
|
* @param {*} [options] Override http request option.
|
|
2534
2107
|
* @throws {RequiredError}
|
|
2535
2108
|
*/
|
|
2536
|
-
async fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2109
|
+
async fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2537
2110
|
const localVarAxiosArgs = await localVarAxiosParamCreator.fillForm(browserId, payload, options);
|
|
2538
2111
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2539
2112
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.fillForm']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2541,105 +2114,112 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2541
2114
|
},
|
|
2542
2115
|
/**
|
|
2543
2116
|
*
|
|
2544
|
-
* @summary Get
|
|
2545
|
-
* @param {string} browserId
|
|
2117
|
+
* @summary Get page HTML
|
|
2118
|
+
* @param {string} browserId
|
|
2546
2119
|
* @param {*} [options] Override http request option.
|
|
2547
2120
|
* @throws {RequiredError}
|
|
2548
2121
|
*/
|
|
2549
|
-
async
|
|
2550
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2122
|
+
async getContent(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2123
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContent(browserId, options);
|
|
2551
2124
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2552
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2125
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getContent']?.[localVarOperationServerIndex]?.url;
|
|
2553
2126
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2554
2127
|
},
|
|
2555
2128
|
/**
|
|
2556
2129
|
*
|
|
2557
|
-
* @summary Get
|
|
2558
|
-
* @param {string} browserId
|
|
2130
|
+
* @summary Get element text, attribute, or property
|
|
2131
|
+
* @param {string} browserId
|
|
2132
|
+
* @param {string} selector selector
|
|
2133
|
+
* @param {string} dataType data_type
|
|
2134
|
+
* @param {string} [name] name
|
|
2135
|
+
* @param {string} [by] by
|
|
2559
2136
|
* @param {*} [options] Override http request option.
|
|
2560
2137
|
* @throws {RequiredError}
|
|
2561
2138
|
*/
|
|
2562
|
-
async
|
|
2563
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2139
|
+
async getElementData(browserId: string, selector: string, dataType: string, name?: string, by?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElementData(browserId, selector, dataType, name, by, options);
|
|
2564
2141
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2565
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2142
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getElementData']?.[localVarOperationServerIndex]?.url;
|
|
2566
2143
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2567
2144
|
},
|
|
2568
2145
|
/**
|
|
2569
2146
|
*
|
|
2570
|
-
* @summary Get
|
|
2571
|
-
* @param {string} browserId
|
|
2147
|
+
* @summary Get current URL
|
|
2148
|
+
* @param {string} browserId
|
|
2572
2149
|
* @param {*} [options] Override http request option.
|
|
2573
2150
|
* @throws {RequiredError}
|
|
2574
2151
|
*/
|
|
2575
|
-
async
|
|
2576
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2152
|
+
async getUrl(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrl(browserId, options);
|
|
2577
2154
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2578
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2155
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.getUrl']?.[localVarOperationServerIndex]?.url;
|
|
2579
2156
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2580
2157
|
},
|
|
2581
2158
|
/**
|
|
2582
2159
|
*
|
|
2583
|
-
* @summary
|
|
2584
|
-
* @param {string} browserId
|
|
2585
|
-
* @param {
|
|
2160
|
+
* @summary GUI click by selector or coordinates
|
|
2161
|
+
* @param {string} browserId
|
|
2162
|
+
* @param {GuiClickRequest} payload
|
|
2586
2163
|
* @param {*} [options] Override http request option.
|
|
2587
2164
|
* @throws {RequiredError}
|
|
2588
2165
|
*/
|
|
2589
|
-
async
|
|
2590
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2166
|
+
async guiClick(browserId: string, payload: GuiClickRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.guiClick(browserId, payload, options);
|
|
2591
2168
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2592
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2169
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.guiClick']?.[localVarOperationServerIndex]?.url;
|
|
2593
2170
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2594
2171
|
},
|
|
2595
2172
|
/**
|
|
2596
2173
|
*
|
|
2597
|
-
* @summary
|
|
2174
|
+
* @summary GUI hover at coordinates
|
|
2175
|
+
* @param {string} browserId
|
|
2176
|
+
* @param {GuiHoverXyRequest} payload
|
|
2598
2177
|
* @param {*} [options] Override http request option.
|
|
2599
2178
|
* @throws {RequiredError}
|
|
2600
2179
|
*/
|
|
2601
|
-
async
|
|
2602
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2180
|
+
async guiHoverXy(browserId: string, payload: GuiHoverXyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.guiHoverXy(browserId, payload, options);
|
|
2603
2182
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2604
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2183
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.guiHoverXy']?.[localVarOperationServerIndex]?.url;
|
|
2605
2184
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2606
2185
|
},
|
|
2607
2186
|
/**
|
|
2608
2187
|
*
|
|
2609
|
-
* @summary
|
|
2610
|
-
* @param {string} browserId
|
|
2188
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
2189
|
+
* @param {string} browserId
|
|
2190
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
2611
2191
|
* @param {*} [options] Override http request option.
|
|
2612
2192
|
* @throws {RequiredError}
|
|
2613
2193
|
*/
|
|
2614
|
-
async
|
|
2615
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2194
|
+
async guiPressKeysXy(browserId: string, payload: GuiPressKeysXyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.guiPressKeysXy(browserId, payload, options);
|
|
2616
2196
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2617
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2197
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.guiPressKeysXy']?.[localVarOperationServerIndex]?.url;
|
|
2618
2198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2619
2199
|
},
|
|
2620
2200
|
/**
|
|
2621
2201
|
*
|
|
2622
|
-
* @summary
|
|
2623
|
-
* @param {string} browserId
|
|
2624
|
-
* @param {
|
|
2202
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
2203
|
+
* @param {string} browserId
|
|
2204
|
+
* @param {GuiTypeXyRequest} payload
|
|
2625
2205
|
* @param {*} [options] Override http request option.
|
|
2626
2206
|
* @throws {RequiredError}
|
|
2627
2207
|
*/
|
|
2628
|
-
async
|
|
2629
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2208
|
+
async guiTypeXy(browserId: string, payload: GuiTypeXyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.guiTypeXy(browserId, payload, options);
|
|
2630
2210
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2631
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2211
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.guiTypeXy']?.[localVarOperationServerIndex]?.url;
|
|
2632
2212
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2633
2213
|
},
|
|
2634
2214
|
/**
|
|
2635
2215
|
*
|
|
2636
|
-
* @summary
|
|
2637
|
-
* @param {string} browserId
|
|
2216
|
+
* @summary History: back, forward, or refresh
|
|
2217
|
+
* @param {string} browserId
|
|
2638
2218
|
* @param {HistoryRequest} payload
|
|
2639
2219
|
* @param {*} [options] Override http request option.
|
|
2640
2220
|
* @throws {RequiredError}
|
|
2641
2221
|
*/
|
|
2642
|
-
async history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2222
|
+
async history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2643
2223
|
const localVarAxiosArgs = await localVarAxiosParamCreator.history(browserId, payload, options);
|
|
2644
2224
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2645
2225
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.history']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2647,25 +2227,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2647
2227
|
},
|
|
2648
2228
|
/**
|
|
2649
2229
|
*
|
|
2650
|
-
* @summary
|
|
2651
|
-
* @param {
|
|
2652
|
-
* @throws {RequiredError}
|
|
2653
|
-
*/
|
|
2654
|
-
async listBrowsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrowserList>> {
|
|
2655
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBrowsers(options);
|
|
2656
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2657
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.listBrowsers']?.[localVarOperationServerIndex]?.url;
|
|
2658
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2659
|
-
},
|
|
2660
|
-
/**
|
|
2661
|
-
*
|
|
2662
|
-
* @summary Mouse action: hover or drag
|
|
2663
|
-
* @param {string} browserId Unique browser identifier
|
|
2230
|
+
* @summary Mouse: hover or drag
|
|
2231
|
+
* @param {string} browserId
|
|
2664
2232
|
* @param {MouseRequest} payload
|
|
2665
2233
|
* @param {*} [options] Override http request option.
|
|
2666
2234
|
* @throws {RequiredError}
|
|
2667
2235
|
*/
|
|
2668
|
-
async mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2236
|
+
async mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2669
2237
|
const localVarAxiosArgs = await localVarAxiosParamCreator.mouse(browserId, payload, options);
|
|
2670
2238
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2671
2239
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.mouse']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2673,13 +2241,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2673
2241
|
},
|
|
2674
2242
|
/**
|
|
2675
2243
|
*
|
|
2676
|
-
* @summary Navigate to
|
|
2677
|
-
* @param {string} browserId
|
|
2678
|
-
* @param {
|
|
2244
|
+
* @summary Navigate to URL
|
|
2245
|
+
* @param {string} browserId
|
|
2246
|
+
* @param {NavigateBrowserRequest} payload
|
|
2679
2247
|
* @param {*} [options] Override http request option.
|
|
2680
2248
|
* @throws {RequiredError}
|
|
2681
2249
|
*/
|
|
2682
|
-
async navigateBrowser(browserId: string, payload:
|
|
2250
|
+
async navigateBrowser(browserId: string, payload: NavigateBrowserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2683
2251
|
const localVarAxiosArgs = await localVarAxiosParamCreator.navigateBrowser(browserId, payload, options);
|
|
2684
2252
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2685
2253
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.navigateBrowser']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2687,13 +2255,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2687
2255
|
},
|
|
2688
2256
|
/**
|
|
2689
2257
|
*
|
|
2690
|
-
* @summary
|
|
2691
|
-
* @param {string} browserId
|
|
2258
|
+
* @summary Network logs: get or clear
|
|
2259
|
+
* @param {string} browserId
|
|
2692
2260
|
* @param {NetworkLogsRequest} payload
|
|
2693
2261
|
* @param {*} [options] Override http request option.
|
|
2694
2262
|
* @throws {RequiredError}
|
|
2695
2263
|
*/
|
|
2696
|
-
async networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2264
|
+
async networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2697
2265
|
const localVarAxiosArgs = await localVarAxiosParamCreator.networkLogs(browserId, payload, options);
|
|
2698
2266
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2699
2267
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.networkLogs']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2701,13 +2269,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2701
2269
|
},
|
|
2702
2270
|
/**
|
|
2703
2271
|
*
|
|
2704
|
-
* @summary
|
|
2705
|
-
* @param {string} browserId
|
|
2272
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
2273
|
+
* @param {string} browserId
|
|
2706
2274
|
* @param {PerformanceRequest} payload
|
|
2707
2275
|
* @param {*} [options] Override http request option.
|
|
2708
2276
|
* @throws {RequiredError}
|
|
2709
2277
|
*/
|
|
2710
|
-
async performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2278
|
+
async performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2711
2279
|
const localVarAxiosArgs = await localVarAxiosParamCreator.performance(browserId, payload, options);
|
|
2712
2280
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2713
2281
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.performance']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2715,13 +2283,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2715
2283
|
},
|
|
2716
2284
|
/**
|
|
2717
2285
|
*
|
|
2718
|
-
* @summary Press keys
|
|
2719
|
-
* @param {string} browserId
|
|
2286
|
+
* @summary Press keyboard keys
|
|
2287
|
+
* @param {string} browserId
|
|
2720
2288
|
* @param {PressKeysRequest} payload
|
|
2721
2289
|
* @param {*} [options] Override http request option.
|
|
2722
2290
|
* @throws {RequiredError}
|
|
2723
2291
|
*/
|
|
2724
|
-
async pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2292
|
+
async pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2725
2293
|
const localVarAxiosArgs = await localVarAxiosParamCreator.pressKeys(browserId, payload, options);
|
|
2726
2294
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2727
2295
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.pressKeys']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2730,12 +2298,12 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2730
2298
|
/**
|
|
2731
2299
|
*
|
|
2732
2300
|
* @summary Resize viewport
|
|
2733
|
-
* @param {string} browserId
|
|
2301
|
+
* @param {string} browserId
|
|
2734
2302
|
* @param {ResizeRequest} payload
|
|
2735
2303
|
* @param {*} [options] Override http request option.
|
|
2736
2304
|
* @throws {RequiredError}
|
|
2737
2305
|
*/
|
|
2738
|
-
async resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2306
|
+
async resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2739
2307
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resize(browserId, payload, options);
|
|
2740
2308
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2741
2309
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.resize']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2743,13 +2311,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2743
2311
|
},
|
|
2744
2312
|
/**
|
|
2745
2313
|
*
|
|
2746
|
-
* @summary Scroll to element/
|
|
2747
|
-
* @param {string} browserId
|
|
2748
|
-
* @param {
|
|
2314
|
+
* @summary Scroll to element/coords or by delta
|
|
2315
|
+
* @param {string} browserId
|
|
2316
|
+
* @param {ScrollRequest} payload
|
|
2749
2317
|
* @param {*} [options] Override http request option.
|
|
2750
2318
|
* @throws {RequiredError}
|
|
2751
2319
|
*/
|
|
2752
|
-
async scroll(browserId: string, payload:
|
|
2320
|
+
async scroll(browserId: string, payload: ScrollRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2753
2321
|
const localVarAxiosArgs = await localVarAxiosParamCreator.scroll(browserId, payload, options);
|
|
2754
2322
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2755
2323
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.scroll']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2758,12 +2326,12 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2758
2326
|
/**
|
|
2759
2327
|
*
|
|
2760
2328
|
* @summary Select dropdown: select option or get options
|
|
2761
|
-
* @param {string} browserId
|
|
2329
|
+
* @param {string} browserId
|
|
2762
2330
|
* @param {SelectRequest} payload
|
|
2763
2331
|
* @param {*} [options] Override http request option.
|
|
2764
2332
|
* @throws {RequiredError}
|
|
2765
2333
|
*/
|
|
2766
|
-
async select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2334
|
+
async select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2767
2335
|
const localVarAxiosArgs = await localVarAxiosParamCreator.select(browserId, payload, options);
|
|
2768
2336
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2769
2337
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.select']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2771,54 +2339,55 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2771
2339
|
},
|
|
2772
2340
|
/**
|
|
2773
2341
|
*
|
|
2774
|
-
* @summary
|
|
2775
|
-
* @param {string} browserId
|
|
2776
|
-
* @param {
|
|
2342
|
+
* @summary DOM or accessibility snapshot
|
|
2343
|
+
* @param {string} browserId
|
|
2344
|
+
* @param {SnapshotRequest} payload
|
|
2777
2345
|
* @param {*} [options] Override http request option.
|
|
2778
2346
|
* @throws {RequiredError}
|
|
2779
2347
|
*/
|
|
2780
|
-
async
|
|
2781
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2348
|
+
async snapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.snapshot(browserId, payload, options);
|
|
2782
2350
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2783
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2351
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.snapshot']?.[localVarOperationServerIndex]?.url;
|
|
2784
2352
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2785
2353
|
},
|
|
2786
2354
|
/**
|
|
2787
2355
|
*
|
|
2788
|
-
* @summary
|
|
2789
|
-
* @param {string} browserId
|
|
2356
|
+
* @summary Tabs: list, new, switch, close, current
|
|
2357
|
+
* @param {string} browserId
|
|
2358
|
+
* @param {TabsRequest} payload
|
|
2790
2359
|
* @param {*} [options] Override http request option.
|
|
2791
2360
|
* @throws {RequiredError}
|
|
2792
2361
|
*/
|
|
2793
|
-
async
|
|
2794
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2362
|
+
async tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tabs(browserId, payload, options);
|
|
2795
2364
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2796
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2365
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.tabs']?.[localVarOperationServerIndex]?.url;
|
|
2797
2366
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2798
2367
|
},
|
|
2799
2368
|
/**
|
|
2800
2369
|
*
|
|
2801
|
-
* @summary Take
|
|
2802
|
-
* @param {string} browserId
|
|
2803
|
-
* @param {
|
|
2370
|
+
* @summary Take screenshot
|
|
2371
|
+
* @param {string} browserId
|
|
2372
|
+
* @param {TakeScreenshotRequest} payload
|
|
2804
2373
|
* @param {*} [options] Override http request option.
|
|
2805
2374
|
* @throws {RequiredError}
|
|
2806
2375
|
*/
|
|
2807
|
-
async
|
|
2808
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2376
|
+
async takeScreenshot(browserId: string, payload: TakeScreenshotRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.takeScreenshot(browserId, payload, options);
|
|
2809
2378
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2810
|
-
const localVarOperationServerBasePath = operationServerMap['BrowserApi.
|
|
2379
|
+
const localVarOperationServerBasePath = operationServerMap['BrowserApi.takeScreenshot']?.[localVarOperationServerIndex]?.url;
|
|
2811
2380
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2812
2381
|
},
|
|
2813
2382
|
/**
|
|
2814
2383
|
*
|
|
2815
|
-
* @summary Type text into
|
|
2816
|
-
* @param {string} browserId
|
|
2817
|
-
* @param {
|
|
2384
|
+
* @summary Type text into element
|
|
2385
|
+
* @param {string} browserId
|
|
2386
|
+
* @param {TypeTextRequest} payload
|
|
2818
2387
|
* @param {*} [options] Override http request option.
|
|
2819
2388
|
* @throws {RequiredError}
|
|
2820
2389
|
*/
|
|
2821
|
-
async typeText(browserId: string, payload:
|
|
2390
|
+
async typeText(browserId: string, payload: TypeTextRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2822
2391
|
const localVarAxiosArgs = await localVarAxiosParamCreator.typeText(browserId, payload, options);
|
|
2823
2392
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2824
2393
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.typeText']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2826,13 +2395,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2826
2395
|
},
|
|
2827
2396
|
/**
|
|
2828
2397
|
*
|
|
2829
|
-
* @summary Upload
|
|
2830
|
-
* @param {string} browserId
|
|
2398
|
+
* @summary Upload file to input
|
|
2399
|
+
* @param {string} browserId
|
|
2831
2400
|
* @param {UploadFileRequest} payload
|
|
2832
2401
|
* @param {*} [options] Override http request option.
|
|
2833
2402
|
* @throws {RequiredError}
|
|
2834
2403
|
*/
|
|
2835
|
-
async uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2404
|
+
async uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2836
2405
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(browserId, payload, options);
|
|
2837
2406
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2838
2407
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.uploadFile']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2840,13 +2409,13 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2840
2409
|
},
|
|
2841
2410
|
/**
|
|
2842
2411
|
*
|
|
2843
|
-
* @summary Wait for element to
|
|
2844
|
-
* @param {string} browserId
|
|
2412
|
+
* @summary Wait for element to be visible or hidden
|
|
2413
|
+
* @param {string} browserId
|
|
2845
2414
|
* @param {WaitElementRequest} payload
|
|
2846
2415
|
* @param {*} [options] Override http request option.
|
|
2847
2416
|
* @throws {RequiredError}
|
|
2848
2417
|
*/
|
|
2849
|
-
async waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2418
|
+
async waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2850
2419
|
const localVarAxiosArgs = await localVarAxiosParamCreator.waitElement(browserId, payload, options);
|
|
2851
2420
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2852
2421
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.waitElement']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2854,12 +2423,12 @@ export const BrowserApiFp = function(configuration?: Configuration) {
|
|
|
2854
2423
|
},
|
|
2855
2424
|
/**
|
|
2856
2425
|
*
|
|
2857
|
-
* @summary
|
|
2858
|
-
* @param {string} browserId
|
|
2426
|
+
* @summary AI page analysis - what\'s visible
|
|
2427
|
+
* @param {string} browserId
|
|
2859
2428
|
* @param {*} [options] Override http request option.
|
|
2860
2429
|
* @throws {RequiredError}
|
|
2861
2430
|
*/
|
|
2862
|
-
async whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2431
|
+
async whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenericResponse>> {
|
|
2863
2432
|
const localVarAxiosArgs = await localVarAxiosParamCreator.whatIsVisible(browserId, options);
|
|
2864
2433
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2865
2434
|
const localVarOperationServerBasePath = operationServerMap['BrowserApi.whatIsVisible']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2876,383 +2445,375 @@ export const BrowserApiFactory = function (configuration?: Configuration, basePa
|
|
|
2876
2445
|
return {
|
|
2877
2446
|
/**
|
|
2878
2447
|
*
|
|
2879
|
-
* @summary
|
|
2880
|
-
* @param {
|
|
2881
|
-
* @param {CheckElementRequest} payload
|
|
2448
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
2449
|
+
* @param {BrowsersRequest} payload
|
|
2882
2450
|
* @param {*} [options] Override http request option.
|
|
2883
2451
|
* @throws {RequiredError}
|
|
2884
2452
|
*/
|
|
2885
|
-
|
|
2886
|
-
return localVarFp.
|
|
2453
|
+
browsers(payload: BrowsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2454
|
+
return localVarFp.browsers(payload, options).then((request) => request(axios, basePath));
|
|
2887
2455
|
},
|
|
2888
2456
|
/**
|
|
2889
|
-
*
|
|
2890
|
-
* @summary
|
|
2891
|
-
* @param {string} browserId
|
|
2892
|
-
* @param {
|
|
2457
|
+
*
|
|
2458
|
+
* @summary Check if element exists or is visible
|
|
2459
|
+
* @param {string} browserId
|
|
2460
|
+
* @param {string} selector selector
|
|
2461
|
+
* @param {string} check check
|
|
2462
|
+
* @param {string} [by] by
|
|
2893
2463
|
* @param {*} [options] Override http request option.
|
|
2894
2464
|
* @throws {RequiredError}
|
|
2895
2465
|
*/
|
|
2896
|
-
|
|
2897
|
-
return localVarFp.
|
|
2466
|
+
checkElement(browserId: string, selector: string, check: string, by?: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2467
|
+
return localVarFp.checkElement(browserId, selector, check, by, options).then((request) => request(axios, basePath));
|
|
2898
2468
|
},
|
|
2899
2469
|
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @summary
|
|
2470
|
+
* Use if_visible=True to only click if visible.
|
|
2471
|
+
* @summary Click element
|
|
2472
|
+
* @param {string} browserId
|
|
2473
|
+
* @param {ClickRequest} payload
|
|
2902
2474
|
* @param {*} [options] Override http request option.
|
|
2903
2475
|
* @throws {RequiredError}
|
|
2904
2476
|
*/
|
|
2905
|
-
|
|
2906
|
-
return localVarFp.
|
|
2477
|
+
click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2478
|
+
return localVarFp.click(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2907
2479
|
},
|
|
2908
2480
|
/**
|
|
2909
2481
|
*
|
|
2910
|
-
* @summary Close
|
|
2911
|
-
* @param {string} browserId
|
|
2482
|
+
* @summary Close browser instance
|
|
2483
|
+
* @param {string} browserId
|
|
2912
2484
|
* @param {*} [options] Override http request option.
|
|
2913
2485
|
* @throws {RequiredError}
|
|
2914
2486
|
*/
|
|
2915
|
-
closeBrowser(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2487
|
+
closeBrowser(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2916
2488
|
return localVarFp.closeBrowser(browserId, options).then((request) => request(axios, basePath));
|
|
2917
2489
|
},
|
|
2918
2490
|
/**
|
|
2919
2491
|
*
|
|
2920
|
-
* @summary
|
|
2921
|
-
* @param {string} browserId
|
|
2492
|
+
* @summary Console logs: get or clear
|
|
2493
|
+
* @param {string} browserId
|
|
2922
2494
|
* @param {ConsoleLogsRequest} payload
|
|
2923
2495
|
* @param {*} [options] Override http request option.
|
|
2924
2496
|
* @throws {RequiredError}
|
|
2925
2497
|
*/
|
|
2926
|
-
consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2498
|
+
consoleLogs(browserId: string, payload: ConsoleLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2927
2499
|
return localVarFp.consoleLogs(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2928
2500
|
},
|
|
2929
2501
|
/**
|
|
2930
2502
|
*
|
|
2931
|
-
* @summary Create
|
|
2932
|
-
* @param {
|
|
2503
|
+
* @summary Create browser instance with optional persistent profile
|
|
2504
|
+
* @param {CreateBrowserRequest} payload
|
|
2933
2505
|
* @param {*} [options] Override http request option.
|
|
2934
2506
|
* @throws {RequiredError}
|
|
2935
2507
|
*/
|
|
2936
|
-
createBrowser(payload:
|
|
2508
|
+
createBrowser(payload: CreateBrowserRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2937
2509
|
return localVarFp.createBrowser(payload, options).then((request) => request(axios, basePath));
|
|
2938
2510
|
},
|
|
2939
2511
|
/**
|
|
2940
|
-
*
|
|
2941
|
-
* @summary
|
|
2942
|
-
* @param {string} browserId
|
|
2943
|
-
* @param {*} [options] Override http request option.
|
|
2944
|
-
* @throws {RequiredError}
|
|
2945
|
-
*/
|
|
2946
|
-
deleteBrowser(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse> {
|
|
2947
|
-
return localVarFp.deleteBrowser(browserId, options).then((request) => request(axios, basePath));
|
|
2948
|
-
},
|
|
2949
|
-
/**
|
|
2950
|
-
*
|
|
2951
|
-
* @summary Detect element coordinates using AI vision
|
|
2952
|
-
* @param {string} browserId Unique browser identifier
|
|
2512
|
+
* 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).
|
|
2513
|
+
* @summary Detect element coordinates using vision
|
|
2514
|
+
* @param {string} browserId
|
|
2953
2515
|
* @param {DetectCoordinatesRequest} payload
|
|
2954
2516
|
* @param {*} [options] Override http request option.
|
|
2955
2517
|
* @throws {RequiredError}
|
|
2956
2518
|
*/
|
|
2957
|
-
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2519
|
+
detectCoordinates(browserId: string, payload: DetectCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2958
2520
|
return localVarFp.detectCoordinates(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2959
2521
|
},
|
|
2960
2522
|
/**
|
|
2961
2523
|
*
|
|
2962
|
-
* @summary
|
|
2963
|
-
* @param {string} browserId
|
|
2964
|
-
* @param {
|
|
2524
|
+
* @summary Dialogs: get, accept, dismiss
|
|
2525
|
+
* @param {string} browserId
|
|
2526
|
+
* @param {DialogRequest} payload
|
|
2965
2527
|
* @param {*} [options] Override http request option.
|
|
2966
2528
|
* @throws {RequiredError}
|
|
2967
2529
|
*/
|
|
2968
|
-
dialog(browserId: string, payload:
|
|
2530
|
+
dialog(browserId: string, payload: DialogRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2969
2531
|
return localVarFp.dialog(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2970
2532
|
},
|
|
2971
2533
|
/**
|
|
2972
2534
|
*
|
|
2973
|
-
* @summary
|
|
2974
|
-
* @param {string} browserId
|
|
2975
|
-
* @param {
|
|
2535
|
+
* @summary Emulation: set, clear, list_devices
|
|
2536
|
+
* @param {string} browserId
|
|
2537
|
+
* @param {EmulateRequest} payload
|
|
2976
2538
|
* @param {*} [options] Override http request option.
|
|
2977
2539
|
* @throws {RequiredError}
|
|
2978
2540
|
*/
|
|
2979
|
-
emulate(browserId: string, payload:
|
|
2541
|
+
emulate(browserId: string, payload: EmulateRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2980
2542
|
return localVarFp.emulate(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2981
2543
|
},
|
|
2982
2544
|
/**
|
|
2983
2545
|
*
|
|
2984
2546
|
* @summary Execute JavaScript
|
|
2985
|
-
* @param {string} browserId
|
|
2986
|
-
* @param {
|
|
2547
|
+
* @param {string} browserId
|
|
2548
|
+
* @param {ExecuteScriptRequest} payload
|
|
2987
2549
|
* @param {*} [options] Override http request option.
|
|
2988
2550
|
* @throws {RequiredError}
|
|
2989
2551
|
*/
|
|
2990
|
-
executeScript(browserId: string, payload:
|
|
2552
|
+
executeScript(browserId: string, payload: ExecuteScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2991
2553
|
return localVarFp.executeScript(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2992
2554
|
},
|
|
2993
2555
|
/**
|
|
2994
2556
|
*
|
|
2995
2557
|
* @summary Fill multiple form fields
|
|
2996
|
-
* @param {string} browserId
|
|
2558
|
+
* @param {string} browserId
|
|
2997
2559
|
* @param {FillFormRequest} payload
|
|
2998
2560
|
* @param {*} [options] Override http request option.
|
|
2999
2561
|
* @throws {RequiredError}
|
|
3000
2562
|
*/
|
|
3001
|
-
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2563
|
+
fillForm(browserId: string, payload: FillFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3002
2564
|
return localVarFp.fillForm(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3003
2565
|
},
|
|
3004
2566
|
/**
|
|
3005
2567
|
*
|
|
3006
|
-
* @summary Get
|
|
3007
|
-
* @param {string} browserId
|
|
2568
|
+
* @summary Get page HTML
|
|
2569
|
+
* @param {string} browserId
|
|
3008
2570
|
* @param {*} [options] Override http request option.
|
|
3009
2571
|
* @throws {RequiredError}
|
|
3010
2572
|
*/
|
|
3011
|
-
|
|
3012
|
-
return localVarFp.
|
|
2573
|
+
getContent(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2574
|
+
return localVarFp.getContent(browserId, options).then((request) => request(axios, basePath));
|
|
3013
2575
|
},
|
|
3014
2576
|
/**
|
|
3015
2577
|
*
|
|
3016
|
-
* @summary Get
|
|
3017
|
-
* @param {string} browserId
|
|
2578
|
+
* @summary Get element text, attribute, or property
|
|
2579
|
+
* @param {string} browserId
|
|
2580
|
+
* @param {string} selector selector
|
|
2581
|
+
* @param {string} dataType data_type
|
|
2582
|
+
* @param {string} [name] name
|
|
2583
|
+
* @param {string} [by] by
|
|
3018
2584
|
* @param {*} [options] Override http request option.
|
|
3019
2585
|
* @throws {RequiredError}
|
|
3020
2586
|
*/
|
|
3021
|
-
|
|
3022
|
-
return localVarFp.
|
|
2587
|
+
getElementData(browserId: string, selector: string, dataType: string, name?: string, by?: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2588
|
+
return localVarFp.getElementData(browserId, selector, dataType, name, by, options).then((request) => request(axios, basePath));
|
|
3023
2589
|
},
|
|
3024
2590
|
/**
|
|
3025
2591
|
*
|
|
3026
|
-
* @summary Get
|
|
3027
|
-
* @param {string} browserId
|
|
2592
|
+
* @summary Get current URL
|
|
2593
|
+
* @param {string} browserId
|
|
3028
2594
|
* @param {*} [options] Override http request option.
|
|
3029
2595
|
* @throws {RequiredError}
|
|
3030
2596
|
*/
|
|
3031
|
-
|
|
3032
|
-
return localVarFp.
|
|
2597
|
+
getUrl(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2598
|
+
return localVarFp.getUrl(browserId, options).then((request) => request(axios, basePath));
|
|
3033
2599
|
},
|
|
3034
2600
|
/**
|
|
3035
2601
|
*
|
|
3036
|
-
* @summary
|
|
3037
|
-
* @param {string} browserId
|
|
3038
|
-
* @param {
|
|
2602
|
+
* @summary GUI click by selector or coordinates
|
|
2603
|
+
* @param {string} browserId
|
|
2604
|
+
* @param {GuiClickRequest} payload
|
|
3039
2605
|
* @param {*} [options] Override http request option.
|
|
3040
2606
|
* @throws {RequiredError}
|
|
3041
2607
|
*/
|
|
3042
|
-
|
|
3043
|
-
return localVarFp.
|
|
2608
|
+
guiClick(browserId: string, payload: GuiClickRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2609
|
+
return localVarFp.guiClick(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3044
2610
|
},
|
|
3045
2611
|
/**
|
|
3046
2612
|
*
|
|
3047
|
-
* @summary
|
|
2613
|
+
* @summary GUI hover at coordinates
|
|
2614
|
+
* @param {string} browserId
|
|
2615
|
+
* @param {GuiHoverXyRequest} payload
|
|
3048
2616
|
* @param {*} [options] Override http request option.
|
|
3049
2617
|
* @throws {RequiredError}
|
|
3050
2618
|
*/
|
|
3051
|
-
|
|
3052
|
-
return localVarFp.
|
|
2619
|
+
guiHoverXy(browserId: string, payload: GuiHoverXyRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2620
|
+
return localVarFp.guiHoverXy(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3053
2621
|
},
|
|
3054
2622
|
/**
|
|
3055
2623
|
*
|
|
3056
|
-
* @summary
|
|
3057
|
-
* @param {string} browserId
|
|
2624
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
2625
|
+
* @param {string} browserId
|
|
2626
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
3058
2627
|
* @param {*} [options] Override http request option.
|
|
3059
2628
|
* @throws {RequiredError}
|
|
3060
2629
|
*/
|
|
3061
|
-
|
|
3062
|
-
return localVarFp.
|
|
2630
|
+
guiPressKeysXy(browserId: string, payload: GuiPressKeysXyRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2631
|
+
return localVarFp.guiPressKeysXy(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3063
2632
|
},
|
|
3064
2633
|
/**
|
|
3065
2634
|
*
|
|
3066
|
-
* @summary
|
|
3067
|
-
* @param {string} browserId
|
|
3068
|
-
* @param {
|
|
2635
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
2636
|
+
* @param {string} browserId
|
|
2637
|
+
* @param {GuiTypeXyRequest} payload
|
|
3069
2638
|
* @param {*} [options] Override http request option.
|
|
3070
2639
|
* @throws {RequiredError}
|
|
3071
2640
|
*/
|
|
3072
|
-
|
|
3073
|
-
return localVarFp.
|
|
2641
|
+
guiTypeXy(browserId: string, payload: GuiTypeXyRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2642
|
+
return localVarFp.guiTypeXy(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3074
2643
|
},
|
|
3075
2644
|
/**
|
|
3076
2645
|
*
|
|
3077
|
-
* @summary
|
|
3078
|
-
* @param {string} browserId
|
|
2646
|
+
* @summary History: back, forward, or refresh
|
|
2647
|
+
* @param {string} browserId
|
|
3079
2648
|
* @param {HistoryRequest} payload
|
|
3080
2649
|
* @param {*} [options] Override http request option.
|
|
3081
2650
|
* @throws {RequiredError}
|
|
3082
2651
|
*/
|
|
3083
|
-
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2652
|
+
history(browserId: string, payload: HistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3084
2653
|
return localVarFp.history(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3085
2654
|
},
|
|
3086
2655
|
/**
|
|
3087
2656
|
*
|
|
3088
|
-
* @summary
|
|
3089
|
-
* @param {
|
|
3090
|
-
* @throws {RequiredError}
|
|
3091
|
-
*/
|
|
3092
|
-
listBrowsers(options?: RawAxiosRequestConfig): AxiosPromise<BrowserList> {
|
|
3093
|
-
return localVarFp.listBrowsers(options).then((request) => request(axios, basePath));
|
|
3094
|
-
},
|
|
3095
|
-
/**
|
|
3096
|
-
*
|
|
3097
|
-
* @summary Mouse action: hover or drag
|
|
3098
|
-
* @param {string} browserId Unique browser identifier
|
|
2657
|
+
* @summary Mouse: hover or drag
|
|
2658
|
+
* @param {string} browserId
|
|
3099
2659
|
* @param {MouseRequest} payload
|
|
3100
2660
|
* @param {*} [options] Override http request option.
|
|
3101
2661
|
* @throws {RequiredError}
|
|
3102
2662
|
*/
|
|
3103
|
-
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2663
|
+
mouse(browserId: string, payload: MouseRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3104
2664
|
return localVarFp.mouse(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3105
2665
|
},
|
|
3106
2666
|
/**
|
|
3107
2667
|
*
|
|
3108
|
-
* @summary Navigate to
|
|
3109
|
-
* @param {string} browserId
|
|
3110
|
-
* @param {
|
|
2668
|
+
* @summary Navigate to URL
|
|
2669
|
+
* @param {string} browserId
|
|
2670
|
+
* @param {NavigateBrowserRequest} payload
|
|
3111
2671
|
* @param {*} [options] Override http request option.
|
|
3112
2672
|
* @throws {RequiredError}
|
|
3113
2673
|
*/
|
|
3114
|
-
navigateBrowser(browserId: string, payload:
|
|
2674
|
+
navigateBrowser(browserId: string, payload: NavigateBrowserRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3115
2675
|
return localVarFp.navigateBrowser(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3116
2676
|
},
|
|
3117
2677
|
/**
|
|
3118
2678
|
*
|
|
3119
|
-
* @summary
|
|
3120
|
-
* @param {string} browserId
|
|
2679
|
+
* @summary Network logs: get or clear
|
|
2680
|
+
* @param {string} browserId
|
|
3121
2681
|
* @param {NetworkLogsRequest} payload
|
|
3122
2682
|
* @param {*} [options] Override http request option.
|
|
3123
2683
|
* @throws {RequiredError}
|
|
3124
2684
|
*/
|
|
3125
|
-
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2685
|
+
networkLogs(browserId: string, payload: NetworkLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3126
2686
|
return localVarFp.networkLogs(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3127
2687
|
},
|
|
3128
2688
|
/**
|
|
3129
2689
|
*
|
|
3130
|
-
* @summary
|
|
3131
|
-
* @param {string} browserId
|
|
2690
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
2691
|
+
* @param {string} browserId
|
|
3132
2692
|
* @param {PerformanceRequest} payload
|
|
3133
2693
|
* @param {*} [options] Override http request option.
|
|
3134
2694
|
* @throws {RequiredError}
|
|
3135
2695
|
*/
|
|
3136
|
-
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2696
|
+
performance(browserId: string, payload: PerformanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3137
2697
|
return localVarFp.performance(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3138
2698
|
},
|
|
3139
2699
|
/**
|
|
3140
2700
|
*
|
|
3141
|
-
* @summary Press keys
|
|
3142
|
-
* @param {string} browserId
|
|
2701
|
+
* @summary Press keyboard keys
|
|
2702
|
+
* @param {string} browserId
|
|
3143
2703
|
* @param {PressKeysRequest} payload
|
|
3144
2704
|
* @param {*} [options] Override http request option.
|
|
3145
2705
|
* @throws {RequiredError}
|
|
3146
2706
|
*/
|
|
3147
|
-
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2707
|
+
pressKeys(browserId: string, payload: PressKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3148
2708
|
return localVarFp.pressKeys(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3149
2709
|
},
|
|
3150
2710
|
/**
|
|
3151
2711
|
*
|
|
3152
2712
|
* @summary Resize viewport
|
|
3153
|
-
* @param {string} browserId
|
|
2713
|
+
* @param {string} browserId
|
|
3154
2714
|
* @param {ResizeRequest} payload
|
|
3155
2715
|
* @param {*} [options] Override http request option.
|
|
3156
2716
|
* @throws {RequiredError}
|
|
3157
2717
|
*/
|
|
3158
|
-
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2718
|
+
resize(browserId: string, payload: ResizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3159
2719
|
return localVarFp.resize(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3160
2720
|
},
|
|
3161
2721
|
/**
|
|
3162
2722
|
*
|
|
3163
|
-
* @summary Scroll to element/
|
|
3164
|
-
* @param {string} browserId
|
|
3165
|
-
* @param {
|
|
2723
|
+
* @summary Scroll to element/coords or by delta
|
|
2724
|
+
* @param {string} browserId
|
|
2725
|
+
* @param {ScrollRequest} payload
|
|
3166
2726
|
* @param {*} [options] Override http request option.
|
|
3167
2727
|
* @throws {RequiredError}
|
|
3168
2728
|
*/
|
|
3169
|
-
scroll(browserId: string, payload:
|
|
2729
|
+
scroll(browserId: string, payload: ScrollRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3170
2730
|
return localVarFp.scroll(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3171
2731
|
},
|
|
3172
2732
|
/**
|
|
3173
2733
|
*
|
|
3174
2734
|
* @summary Select dropdown: select option or get options
|
|
3175
|
-
* @param {string} browserId
|
|
2735
|
+
* @param {string} browserId
|
|
3176
2736
|
* @param {SelectRequest} payload
|
|
3177
2737
|
* @param {*} [options] Override http request option.
|
|
3178
2738
|
* @throws {RequiredError}
|
|
3179
2739
|
*/
|
|
3180
|
-
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2740
|
+
select(browserId: string, payload: SelectRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3181
2741
|
return localVarFp.select(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3182
2742
|
},
|
|
3183
2743
|
/**
|
|
3184
2744
|
*
|
|
3185
|
-
* @summary
|
|
3186
|
-
* @param {string} browserId
|
|
3187
|
-
* @param {
|
|
2745
|
+
* @summary DOM or accessibility snapshot
|
|
2746
|
+
* @param {string} browserId
|
|
2747
|
+
* @param {SnapshotRequest} payload
|
|
3188
2748
|
* @param {*} [options] Override http request option.
|
|
3189
2749
|
* @throws {RequiredError}
|
|
3190
2750
|
*/
|
|
3191
|
-
|
|
3192
|
-
return localVarFp.
|
|
2751
|
+
snapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2752
|
+
return localVarFp.snapshot(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3193
2753
|
},
|
|
3194
2754
|
/**
|
|
3195
2755
|
*
|
|
3196
|
-
* @summary
|
|
3197
|
-
* @param {string} browserId
|
|
2756
|
+
* @summary Tabs: list, new, switch, close, current
|
|
2757
|
+
* @param {string} browserId
|
|
2758
|
+
* @param {TabsRequest} payload
|
|
3198
2759
|
* @param {*} [options] Override http request option.
|
|
3199
2760
|
* @throws {RequiredError}
|
|
3200
2761
|
*/
|
|
3201
|
-
|
|
3202
|
-
return localVarFp.
|
|
2762
|
+
tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2763
|
+
return localVarFp.tabs(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3203
2764
|
},
|
|
3204
2765
|
/**
|
|
3205
2766
|
*
|
|
3206
|
-
* @summary Take
|
|
3207
|
-
* @param {string} browserId
|
|
3208
|
-
* @param {
|
|
2767
|
+
* @summary Take screenshot
|
|
2768
|
+
* @param {string} browserId
|
|
2769
|
+
* @param {TakeScreenshotRequest} payload
|
|
3209
2770
|
* @param {*} [options] Override http request option.
|
|
3210
2771
|
* @throws {RequiredError}
|
|
3211
2772
|
*/
|
|
3212
|
-
|
|
3213
|
-
return localVarFp.
|
|
2773
|
+
takeScreenshot(browserId: string, payload: TakeScreenshotRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
2774
|
+
return localVarFp.takeScreenshot(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3214
2775
|
},
|
|
3215
2776
|
/**
|
|
3216
2777
|
*
|
|
3217
|
-
* @summary Type text into
|
|
3218
|
-
* @param {string} browserId
|
|
3219
|
-
* @param {
|
|
2778
|
+
* @summary Type text into element
|
|
2779
|
+
* @param {string} browserId
|
|
2780
|
+
* @param {TypeTextRequest} payload
|
|
3220
2781
|
* @param {*} [options] Override http request option.
|
|
3221
2782
|
* @throws {RequiredError}
|
|
3222
2783
|
*/
|
|
3223
|
-
typeText(browserId: string, payload:
|
|
2784
|
+
typeText(browserId: string, payload: TypeTextRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3224
2785
|
return localVarFp.typeText(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3225
2786
|
},
|
|
3226
2787
|
/**
|
|
3227
2788
|
*
|
|
3228
|
-
* @summary Upload
|
|
3229
|
-
* @param {string} browserId
|
|
2789
|
+
* @summary Upload file to input
|
|
2790
|
+
* @param {string} browserId
|
|
3230
2791
|
* @param {UploadFileRequest} payload
|
|
3231
2792
|
* @param {*} [options] Override http request option.
|
|
3232
2793
|
* @throws {RequiredError}
|
|
3233
2794
|
*/
|
|
3234
|
-
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2795
|
+
uploadFile(browserId: string, payload: UploadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3235
2796
|
return localVarFp.uploadFile(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3236
2797
|
},
|
|
3237
2798
|
/**
|
|
3238
2799
|
*
|
|
3239
|
-
* @summary Wait for element to
|
|
3240
|
-
* @param {string} browserId
|
|
2800
|
+
* @summary Wait for element to be visible or hidden
|
|
2801
|
+
* @param {string} browserId
|
|
3241
2802
|
* @param {WaitElementRequest} payload
|
|
3242
2803
|
* @param {*} [options] Override http request option.
|
|
3243
2804
|
* @throws {RequiredError}
|
|
3244
2805
|
*/
|
|
3245
|
-
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2806
|
+
waitElement(browserId: string, payload: WaitElementRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3246
2807
|
return localVarFp.waitElement(browserId, payload, options).then((request) => request(axios, basePath));
|
|
3247
2808
|
},
|
|
3248
2809
|
/**
|
|
3249
2810
|
*
|
|
3250
|
-
* @summary
|
|
3251
|
-
* @param {string} browserId
|
|
2811
|
+
* @summary AI page analysis - what\'s visible
|
|
2812
|
+
* @param {string} browserId
|
|
3252
2813
|
* @param {*} [options] Override http request option.
|
|
3253
2814
|
* @throws {RequiredError}
|
|
3254
2815
|
*/
|
|
3255
|
-
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2816
|
+
whatIsVisible(browserId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenericResponse> {
|
|
3256
2817
|
return localVarFp.whatIsVisible(browserId, options).then((request) => request(axios, basePath));
|
|
3257
2818
|
},
|
|
3258
2819
|
};
|
|
@@ -3264,42 +2825,45 @@ export const BrowserApiFactory = function (configuration?: Configuration, basePa
|
|
|
3264
2825
|
export class BrowserApi extends BaseAPI {
|
|
3265
2826
|
/**
|
|
3266
2827
|
*
|
|
3267
|
-
* @summary
|
|
3268
|
-
* @param {
|
|
3269
|
-
* @param {CheckElementRequest} payload
|
|
2828
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
2829
|
+
* @param {BrowsersRequest} payload
|
|
3270
2830
|
* @param {*} [options] Override http request option.
|
|
3271
2831
|
* @throws {RequiredError}
|
|
3272
2832
|
*/
|
|
3273
|
-
public
|
|
3274
|
-
return BrowserApiFp(this.configuration).
|
|
2833
|
+
public browsers(payload: BrowsersRequest, options?: RawAxiosRequestConfig) {
|
|
2834
|
+
return BrowserApiFp(this.configuration).browsers(payload, options).then((request) => request(this.axios, this.basePath));
|
|
3275
2835
|
}
|
|
3276
2836
|
|
|
3277
2837
|
/**
|
|
3278
|
-
*
|
|
3279
|
-
* @summary
|
|
3280
|
-
* @param {string} browserId
|
|
3281
|
-
* @param {
|
|
2838
|
+
*
|
|
2839
|
+
* @summary Check if element exists or is visible
|
|
2840
|
+
* @param {string} browserId
|
|
2841
|
+
* @param {string} selector selector
|
|
2842
|
+
* @param {string} check check
|
|
2843
|
+
* @param {string} [by] by
|
|
3282
2844
|
* @param {*} [options] Override http request option.
|
|
3283
2845
|
* @throws {RequiredError}
|
|
3284
2846
|
*/
|
|
3285
|
-
public
|
|
3286
|
-
return BrowserApiFp(this.configuration).
|
|
2847
|
+
public checkElement(browserId: string, selector: string, check: string, by?: string, options?: RawAxiosRequestConfig) {
|
|
2848
|
+
return BrowserApiFp(this.configuration).checkElement(browserId, selector, check, by, options).then((request) => request(this.axios, this.basePath));
|
|
3287
2849
|
}
|
|
3288
2850
|
|
|
3289
2851
|
/**
|
|
3290
|
-
*
|
|
3291
|
-
* @summary
|
|
2852
|
+
* Use if_visible=True to only click if visible.
|
|
2853
|
+
* @summary Click element
|
|
2854
|
+
* @param {string} browserId
|
|
2855
|
+
* @param {ClickRequest} payload
|
|
3292
2856
|
* @param {*} [options] Override http request option.
|
|
3293
2857
|
* @throws {RequiredError}
|
|
3294
2858
|
*/
|
|
3295
|
-
public
|
|
3296
|
-
return BrowserApiFp(this.configuration).
|
|
2859
|
+
public click(browserId: string, payload: ClickRequest, options?: RawAxiosRequestConfig) {
|
|
2860
|
+
return BrowserApiFp(this.configuration).click(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3297
2861
|
}
|
|
3298
2862
|
|
|
3299
2863
|
/**
|
|
3300
2864
|
*
|
|
3301
|
-
* @summary Close
|
|
3302
|
-
* @param {string} browserId
|
|
2865
|
+
* @summary Close browser instance
|
|
2866
|
+
* @param {string} browserId
|
|
3303
2867
|
* @param {*} [options] Override http request option.
|
|
3304
2868
|
* @throws {RequiredError}
|
|
3305
2869
|
*/
|
|
@@ -3309,8 +2873,8 @@ export class BrowserApi extends BaseAPI {
|
|
|
3309
2873
|
|
|
3310
2874
|
/**
|
|
3311
2875
|
*
|
|
3312
|
-
* @summary
|
|
3313
|
-
* @param {string} browserId
|
|
2876
|
+
* @summary Console logs: get or clear
|
|
2877
|
+
* @param {string} browserId
|
|
3314
2878
|
* @param {ConsoleLogsRequest} payload
|
|
3315
2879
|
* @param {*} [options] Override http request option.
|
|
3316
2880
|
* @throws {RequiredError}
|
|
@@ -3321,30 +2885,19 @@ export class BrowserApi extends BaseAPI {
|
|
|
3321
2885
|
|
|
3322
2886
|
/**
|
|
3323
2887
|
*
|
|
3324
|
-
* @summary Create
|
|
3325
|
-
* @param {
|
|
2888
|
+
* @summary Create browser instance with optional persistent profile
|
|
2889
|
+
* @param {CreateBrowserRequest} payload
|
|
3326
2890
|
* @param {*} [options] Override http request option.
|
|
3327
2891
|
* @throws {RequiredError}
|
|
3328
2892
|
*/
|
|
3329
|
-
public createBrowser(payload:
|
|
2893
|
+
public createBrowser(payload: CreateBrowserRequest, options?: RawAxiosRequestConfig) {
|
|
3330
2894
|
return BrowserApiFp(this.configuration).createBrowser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
3331
2895
|
}
|
|
3332
2896
|
|
|
3333
2897
|
/**
|
|
3334
|
-
*
|
|
3335
|
-
* @summary
|
|
3336
|
-
* @param {string} browserId
|
|
3337
|
-
* @param {*} [options] Override http request option.
|
|
3338
|
-
* @throws {RequiredError}
|
|
3339
|
-
*/
|
|
3340
|
-
public deleteBrowser(browserId: string, options?: RawAxiosRequestConfig) {
|
|
3341
|
-
return BrowserApiFp(this.configuration).deleteBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3344
|
-
/**
|
|
3345
|
-
*
|
|
3346
|
-
* @summary Detect element coordinates using AI vision
|
|
3347
|
-
* @param {string} browserId Unique browser identifier
|
|
2898
|
+
* 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).
|
|
2899
|
+
* @summary Detect element coordinates using vision
|
|
2900
|
+
* @param {string} browserId
|
|
3348
2901
|
* @param {DetectCoordinatesRequest} payload
|
|
3349
2902
|
* @param {*} [options] Override http request option.
|
|
3350
2903
|
* @throws {RequiredError}
|
|
@@ -3355,44 +2908,44 @@ export class BrowserApi extends BaseAPI {
|
|
|
3355
2908
|
|
|
3356
2909
|
/**
|
|
3357
2910
|
*
|
|
3358
|
-
* @summary
|
|
3359
|
-
* @param {string} browserId
|
|
3360
|
-
* @param {
|
|
2911
|
+
* @summary Dialogs: get, accept, dismiss
|
|
2912
|
+
* @param {string} browserId
|
|
2913
|
+
* @param {DialogRequest} payload
|
|
3361
2914
|
* @param {*} [options] Override http request option.
|
|
3362
2915
|
* @throws {RequiredError}
|
|
3363
2916
|
*/
|
|
3364
|
-
public dialog(browserId: string, payload:
|
|
2917
|
+
public dialog(browserId: string, payload: DialogRequest, options?: RawAxiosRequestConfig) {
|
|
3365
2918
|
return BrowserApiFp(this.configuration).dialog(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3366
2919
|
}
|
|
3367
2920
|
|
|
3368
2921
|
/**
|
|
3369
2922
|
*
|
|
3370
|
-
* @summary
|
|
3371
|
-
* @param {string} browserId
|
|
3372
|
-
* @param {
|
|
2923
|
+
* @summary Emulation: set, clear, list_devices
|
|
2924
|
+
* @param {string} browserId
|
|
2925
|
+
* @param {EmulateRequest} payload
|
|
3373
2926
|
* @param {*} [options] Override http request option.
|
|
3374
2927
|
* @throws {RequiredError}
|
|
3375
2928
|
*/
|
|
3376
|
-
public emulate(browserId: string, payload:
|
|
2929
|
+
public emulate(browserId: string, payload: EmulateRequest, options?: RawAxiosRequestConfig) {
|
|
3377
2930
|
return BrowserApiFp(this.configuration).emulate(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3378
2931
|
}
|
|
3379
2932
|
|
|
3380
2933
|
/**
|
|
3381
2934
|
*
|
|
3382
2935
|
* @summary Execute JavaScript
|
|
3383
|
-
* @param {string} browserId
|
|
3384
|
-
* @param {
|
|
2936
|
+
* @param {string} browserId
|
|
2937
|
+
* @param {ExecuteScriptRequest} payload
|
|
3385
2938
|
* @param {*} [options] Override http request option.
|
|
3386
2939
|
* @throws {RequiredError}
|
|
3387
2940
|
*/
|
|
3388
|
-
public executeScript(browserId: string, payload:
|
|
2941
|
+
public executeScript(browserId: string, payload: ExecuteScriptRequest, options?: RawAxiosRequestConfig) {
|
|
3389
2942
|
return BrowserApiFp(this.configuration).executeScript(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3390
2943
|
}
|
|
3391
2944
|
|
|
3392
2945
|
/**
|
|
3393
2946
|
*
|
|
3394
2947
|
* @summary Fill multiple form fields
|
|
3395
|
-
* @param {string} browserId
|
|
2948
|
+
* @param {string} browserId
|
|
3396
2949
|
* @param {FillFormRequest} payload
|
|
3397
2950
|
* @param {*} [options] Override http request option.
|
|
3398
2951
|
* @throws {RequiredError}
|
|
@@ -3403,86 +2956,93 @@ export class BrowserApi extends BaseAPI {
|
|
|
3403
2956
|
|
|
3404
2957
|
/**
|
|
3405
2958
|
*
|
|
3406
|
-
* @summary Get
|
|
3407
|
-
* @param {string} browserId
|
|
2959
|
+
* @summary Get page HTML
|
|
2960
|
+
* @param {string} browserId
|
|
3408
2961
|
* @param {*} [options] Override http request option.
|
|
3409
2962
|
* @throws {RequiredError}
|
|
3410
2963
|
*/
|
|
3411
|
-
public
|
|
3412
|
-
return BrowserApiFp(this.configuration).
|
|
2964
|
+
public getContent(browserId: string, options?: RawAxiosRequestConfig) {
|
|
2965
|
+
return BrowserApiFp(this.configuration).getContent(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3413
2966
|
}
|
|
3414
2967
|
|
|
3415
2968
|
/**
|
|
3416
2969
|
*
|
|
3417
|
-
* @summary Get
|
|
3418
|
-
* @param {string} browserId
|
|
2970
|
+
* @summary Get element text, attribute, or property
|
|
2971
|
+
* @param {string} browserId
|
|
2972
|
+
* @param {string} selector selector
|
|
2973
|
+
* @param {string} dataType data_type
|
|
2974
|
+
* @param {string} [name] name
|
|
2975
|
+
* @param {string} [by] by
|
|
3419
2976
|
* @param {*} [options] Override http request option.
|
|
3420
2977
|
* @throws {RequiredError}
|
|
3421
2978
|
*/
|
|
3422
|
-
public
|
|
3423
|
-
return BrowserApiFp(this.configuration).
|
|
2979
|
+
public getElementData(browserId: string, selector: string, dataType: string, name?: string, by?: string, options?: RawAxiosRequestConfig) {
|
|
2980
|
+
return BrowserApiFp(this.configuration).getElementData(browserId, selector, dataType, name, by, options).then((request) => request(this.axios, this.basePath));
|
|
3424
2981
|
}
|
|
3425
2982
|
|
|
3426
2983
|
/**
|
|
3427
2984
|
*
|
|
3428
|
-
* @summary Get
|
|
3429
|
-
* @param {string} browserId
|
|
2985
|
+
* @summary Get current URL
|
|
2986
|
+
* @param {string} browserId
|
|
3430
2987
|
* @param {*} [options] Override http request option.
|
|
3431
2988
|
* @throws {RequiredError}
|
|
3432
2989
|
*/
|
|
3433
|
-
public
|
|
3434
|
-
return BrowserApiFp(this.configuration).
|
|
2990
|
+
public getUrl(browserId: string, options?: RawAxiosRequestConfig) {
|
|
2991
|
+
return BrowserApiFp(this.configuration).getUrl(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
3435
2992
|
}
|
|
3436
2993
|
|
|
3437
2994
|
/**
|
|
3438
2995
|
*
|
|
3439
|
-
* @summary
|
|
3440
|
-
* @param {string} browserId
|
|
3441
|
-
* @param {
|
|
2996
|
+
* @summary GUI click by selector or coordinates
|
|
2997
|
+
* @param {string} browserId
|
|
2998
|
+
* @param {GuiClickRequest} payload
|
|
3442
2999
|
* @param {*} [options] Override http request option.
|
|
3443
3000
|
* @throws {RequiredError}
|
|
3444
3001
|
*/
|
|
3445
|
-
public
|
|
3446
|
-
return BrowserApiFp(this.configuration).
|
|
3002
|
+
public guiClick(browserId: string, payload: GuiClickRequest, options?: RawAxiosRequestConfig) {
|
|
3003
|
+
return BrowserApiFp(this.configuration).guiClick(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3447
3004
|
}
|
|
3448
3005
|
|
|
3449
3006
|
/**
|
|
3450
3007
|
*
|
|
3451
|
-
* @summary
|
|
3008
|
+
* @summary GUI hover at coordinates
|
|
3009
|
+
* @param {string} browserId
|
|
3010
|
+
* @param {GuiHoverXyRequest} payload
|
|
3452
3011
|
* @param {*} [options] Override http request option.
|
|
3453
3012
|
* @throws {RequiredError}
|
|
3454
3013
|
*/
|
|
3455
|
-
public
|
|
3456
|
-
return BrowserApiFp(this.configuration).
|
|
3014
|
+
public guiHoverXy(browserId: string, payload: GuiHoverXyRequest, options?: RawAxiosRequestConfig) {
|
|
3015
|
+
return BrowserApiFp(this.configuration).guiHoverXy(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3457
3016
|
}
|
|
3458
3017
|
|
|
3459
3018
|
/**
|
|
3460
3019
|
*
|
|
3461
|
-
* @summary
|
|
3462
|
-
* @param {string} browserId
|
|
3020
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
3021
|
+
* @param {string} browserId
|
|
3022
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
3463
3023
|
* @param {*} [options] Override http request option.
|
|
3464
3024
|
* @throws {RequiredError}
|
|
3465
3025
|
*/
|
|
3466
|
-
public
|
|
3467
|
-
return BrowserApiFp(this.configuration).
|
|
3026
|
+
public guiPressKeysXy(browserId: string, payload: GuiPressKeysXyRequest, options?: RawAxiosRequestConfig) {
|
|
3027
|
+
return BrowserApiFp(this.configuration).guiPressKeysXy(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3468
3028
|
}
|
|
3469
3029
|
|
|
3470
3030
|
/**
|
|
3471
3031
|
*
|
|
3472
|
-
* @summary
|
|
3473
|
-
* @param {string} browserId
|
|
3474
|
-
* @param {
|
|
3032
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
3033
|
+
* @param {string} browserId
|
|
3034
|
+
* @param {GuiTypeXyRequest} payload
|
|
3475
3035
|
* @param {*} [options] Override http request option.
|
|
3476
3036
|
* @throws {RequiredError}
|
|
3477
3037
|
*/
|
|
3478
|
-
public
|
|
3479
|
-
return BrowserApiFp(this.configuration).
|
|
3038
|
+
public guiTypeXy(browserId: string, payload: GuiTypeXyRequest, options?: RawAxiosRequestConfig) {
|
|
3039
|
+
return BrowserApiFp(this.configuration).guiTypeXy(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3480
3040
|
}
|
|
3481
3041
|
|
|
3482
3042
|
/**
|
|
3483
3043
|
*
|
|
3484
|
-
* @summary
|
|
3485
|
-
* @param {string} browserId
|
|
3044
|
+
* @summary History: back, forward, or refresh
|
|
3045
|
+
* @param {string} browserId
|
|
3486
3046
|
* @param {HistoryRequest} payload
|
|
3487
3047
|
* @param {*} [options] Override http request option.
|
|
3488
3048
|
* @throws {RequiredError}
|
|
@@ -3493,18 +3053,8 @@ export class BrowserApi extends BaseAPI {
|
|
|
3493
3053
|
|
|
3494
3054
|
/**
|
|
3495
3055
|
*
|
|
3496
|
-
* @summary
|
|
3497
|
-
* @param {
|
|
3498
|
-
* @throws {RequiredError}
|
|
3499
|
-
*/
|
|
3500
|
-
public listBrowsers(options?: RawAxiosRequestConfig) {
|
|
3501
|
-
return BrowserApiFp(this.configuration).listBrowsers(options).then((request) => request(this.axios, this.basePath));
|
|
3502
|
-
}
|
|
3503
|
-
|
|
3504
|
-
/**
|
|
3505
|
-
*
|
|
3506
|
-
* @summary Mouse action: hover or drag
|
|
3507
|
-
* @param {string} browserId Unique browser identifier
|
|
3056
|
+
* @summary Mouse: hover or drag
|
|
3057
|
+
* @param {string} browserId
|
|
3508
3058
|
* @param {MouseRequest} payload
|
|
3509
3059
|
* @param {*} [options] Override http request option.
|
|
3510
3060
|
* @throws {RequiredError}
|
|
@@ -3515,20 +3065,20 @@ export class BrowserApi extends BaseAPI {
|
|
|
3515
3065
|
|
|
3516
3066
|
/**
|
|
3517
3067
|
*
|
|
3518
|
-
* @summary Navigate to
|
|
3519
|
-
* @param {string} browserId
|
|
3520
|
-
* @param {
|
|
3068
|
+
* @summary Navigate to URL
|
|
3069
|
+
* @param {string} browserId
|
|
3070
|
+
* @param {NavigateBrowserRequest} payload
|
|
3521
3071
|
* @param {*} [options] Override http request option.
|
|
3522
3072
|
* @throws {RequiredError}
|
|
3523
3073
|
*/
|
|
3524
|
-
public navigateBrowser(browserId: string, payload:
|
|
3074
|
+
public navigateBrowser(browserId: string, payload: NavigateBrowserRequest, options?: RawAxiosRequestConfig) {
|
|
3525
3075
|
return BrowserApiFp(this.configuration).navigateBrowser(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3526
3076
|
}
|
|
3527
3077
|
|
|
3528
3078
|
/**
|
|
3529
3079
|
*
|
|
3530
|
-
* @summary
|
|
3531
|
-
* @param {string} browserId
|
|
3080
|
+
* @summary Network logs: get or clear
|
|
3081
|
+
* @param {string} browserId
|
|
3532
3082
|
* @param {NetworkLogsRequest} payload
|
|
3533
3083
|
* @param {*} [options] Override http request option.
|
|
3534
3084
|
* @throws {RequiredError}
|
|
@@ -3539,8 +3089,8 @@ export class BrowserApi extends BaseAPI {
|
|
|
3539
3089
|
|
|
3540
3090
|
/**
|
|
3541
3091
|
*
|
|
3542
|
-
* @summary
|
|
3543
|
-
* @param {string} browserId
|
|
3092
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
3093
|
+
* @param {string} browserId
|
|
3544
3094
|
* @param {PerformanceRequest} payload
|
|
3545
3095
|
* @param {*} [options] Override http request option.
|
|
3546
3096
|
* @throws {RequiredError}
|
|
@@ -3551,8 +3101,8 @@ export class BrowserApi extends BaseAPI {
|
|
|
3551
3101
|
|
|
3552
3102
|
/**
|
|
3553
3103
|
*
|
|
3554
|
-
* @summary Press keys
|
|
3555
|
-
* @param {string} browserId
|
|
3104
|
+
* @summary Press keyboard keys
|
|
3105
|
+
* @param {string} browserId
|
|
3556
3106
|
* @param {PressKeysRequest} payload
|
|
3557
3107
|
* @param {*} [options] Override http request option.
|
|
3558
3108
|
* @throws {RequiredError}
|
|
@@ -3564,7 +3114,7 @@ export class BrowserApi extends BaseAPI {
|
|
|
3564
3114
|
/**
|
|
3565
3115
|
*
|
|
3566
3116
|
* @summary Resize viewport
|
|
3567
|
-
* @param {string} browserId
|
|
3117
|
+
* @param {string} browserId
|
|
3568
3118
|
* @param {ResizeRequest} payload
|
|
3569
3119
|
* @param {*} [options] Override http request option.
|
|
3570
3120
|
* @throws {RequiredError}
|
|
@@ -3575,20 +3125,20 @@ export class BrowserApi extends BaseAPI {
|
|
|
3575
3125
|
|
|
3576
3126
|
/**
|
|
3577
3127
|
*
|
|
3578
|
-
* @summary Scroll to element/
|
|
3579
|
-
* @param {string} browserId
|
|
3580
|
-
* @param {
|
|
3128
|
+
* @summary Scroll to element/coords or by delta
|
|
3129
|
+
* @param {string} browserId
|
|
3130
|
+
* @param {ScrollRequest} payload
|
|
3581
3131
|
* @param {*} [options] Override http request option.
|
|
3582
3132
|
* @throws {RequiredError}
|
|
3583
3133
|
*/
|
|
3584
|
-
public scroll(browserId: string, payload:
|
|
3134
|
+
public scroll(browserId: string, payload: ScrollRequest, options?: RawAxiosRequestConfig) {
|
|
3585
3135
|
return BrowserApiFp(this.configuration).scroll(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3586
3136
|
}
|
|
3587
3137
|
|
|
3588
3138
|
/**
|
|
3589
3139
|
*
|
|
3590
3140
|
* @summary Select dropdown: select option or get options
|
|
3591
|
-
* @param {string} browserId
|
|
3141
|
+
* @param {string} browserId
|
|
3592
3142
|
* @param {SelectRequest} payload
|
|
3593
3143
|
* @param {*} [options] Override http request option.
|
|
3594
3144
|
* @throws {RequiredError}
|
|
@@ -3599,55 +3149,56 @@ export class BrowserApi extends BaseAPI {
|
|
|
3599
3149
|
|
|
3600
3150
|
/**
|
|
3601
3151
|
*
|
|
3602
|
-
* @summary
|
|
3603
|
-
* @param {string} browserId
|
|
3604
|
-
* @param {
|
|
3152
|
+
* @summary DOM or accessibility snapshot
|
|
3153
|
+
* @param {string} browserId
|
|
3154
|
+
* @param {SnapshotRequest} payload
|
|
3605
3155
|
* @param {*} [options] Override http request option.
|
|
3606
3156
|
* @throws {RequiredError}
|
|
3607
3157
|
*/
|
|
3608
|
-
public
|
|
3609
|
-
return BrowserApiFp(this.configuration).
|
|
3158
|
+
public snapshot(browserId: string, payload: SnapshotRequest, options?: RawAxiosRequestConfig) {
|
|
3159
|
+
return BrowserApiFp(this.configuration).snapshot(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3610
3160
|
}
|
|
3611
3161
|
|
|
3612
3162
|
/**
|
|
3613
3163
|
*
|
|
3614
|
-
* @summary
|
|
3615
|
-
* @param {string} browserId
|
|
3164
|
+
* @summary Tabs: list, new, switch, close, current
|
|
3165
|
+
* @param {string} browserId
|
|
3166
|
+
* @param {TabsRequest} payload
|
|
3616
3167
|
* @param {*} [options] Override http request option.
|
|
3617
3168
|
* @throws {RequiredError}
|
|
3618
3169
|
*/
|
|
3619
|
-
public
|
|
3620
|
-
return BrowserApiFp(this.configuration).
|
|
3170
|
+
public tabs(browserId: string, payload: TabsRequest, options?: RawAxiosRequestConfig) {
|
|
3171
|
+
return BrowserApiFp(this.configuration).tabs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3621
3172
|
}
|
|
3622
3173
|
|
|
3623
3174
|
/**
|
|
3624
3175
|
*
|
|
3625
|
-
* @summary Take
|
|
3626
|
-
* @param {string} browserId
|
|
3627
|
-
* @param {
|
|
3176
|
+
* @summary Take screenshot
|
|
3177
|
+
* @param {string} browserId
|
|
3178
|
+
* @param {TakeScreenshotRequest} payload
|
|
3628
3179
|
* @param {*} [options] Override http request option.
|
|
3629
3180
|
* @throws {RequiredError}
|
|
3630
3181
|
*/
|
|
3631
|
-
public
|
|
3632
|
-
return BrowserApiFp(this.configuration).
|
|
3182
|
+
public takeScreenshot(browserId: string, payload: TakeScreenshotRequest, options?: RawAxiosRequestConfig) {
|
|
3183
|
+
return BrowserApiFp(this.configuration).takeScreenshot(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3633
3184
|
}
|
|
3634
3185
|
|
|
3635
3186
|
/**
|
|
3636
3187
|
*
|
|
3637
|
-
* @summary Type text into
|
|
3638
|
-
* @param {string} browserId
|
|
3639
|
-
* @param {
|
|
3188
|
+
* @summary Type text into element
|
|
3189
|
+
* @param {string} browserId
|
|
3190
|
+
* @param {TypeTextRequest} payload
|
|
3640
3191
|
* @param {*} [options] Override http request option.
|
|
3641
3192
|
* @throws {RequiredError}
|
|
3642
3193
|
*/
|
|
3643
|
-
public typeText(browserId: string, payload:
|
|
3194
|
+
public typeText(browserId: string, payload: TypeTextRequest, options?: RawAxiosRequestConfig) {
|
|
3644
3195
|
return BrowserApiFp(this.configuration).typeText(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
3645
3196
|
}
|
|
3646
3197
|
|
|
3647
3198
|
/**
|
|
3648
3199
|
*
|
|
3649
|
-
* @summary Upload
|
|
3650
|
-
* @param {string} browserId
|
|
3200
|
+
* @summary Upload file to input
|
|
3201
|
+
* @param {string} browserId
|
|
3651
3202
|
* @param {UploadFileRequest} payload
|
|
3652
3203
|
* @param {*} [options] Override http request option.
|
|
3653
3204
|
* @throws {RequiredError}
|
|
@@ -3658,8 +3209,8 @@ export class BrowserApi extends BaseAPI {
|
|
|
3658
3209
|
|
|
3659
3210
|
/**
|
|
3660
3211
|
*
|
|
3661
|
-
* @summary Wait for element to
|
|
3662
|
-
* @param {string} browserId
|
|
3212
|
+
* @summary Wait for element to be visible or hidden
|
|
3213
|
+
* @param {string} browserId
|
|
3663
3214
|
* @param {WaitElementRequest} payload
|
|
3664
3215
|
* @param {*} [options] Override http request option.
|
|
3665
3216
|
* @throws {RequiredError}
|
|
@@ -3670,8 +3221,8 @@ export class BrowserApi extends BaseAPI {
|
|
|
3670
3221
|
|
|
3671
3222
|
/**
|
|
3672
3223
|
*
|
|
3673
|
-
* @summary
|
|
3674
|
-
* @param {string} browserId
|
|
3224
|
+
* @summary AI page analysis - what\'s visible
|
|
3225
|
+
* @param {string} browserId
|
|
3675
3226
|
* @param {*} [options] Override http request option.
|
|
3676
3227
|
* @throws {RequiredError}
|
|
3677
3228
|
*/
|