airbrowser-client 1.2.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -31
- package/README.md +46 -65
- package/api.ts +807 -1256
- package/dist/api.d.ts +666 -1064
- package/dist/api.js +546 -636
- package/dist/esm/api.d.ts +666 -1064
- package/dist/esm/api.js +545 -635
- package/docs/BrowserApi.md +288 -340
- package/docs/{UrlData.md → BrowsersRequest.md} +5 -5
- package/docs/ClickRequest.md +5 -5
- package/docs/ConsoleLogsRequest.md +2 -2
- package/docs/CreateBrowserRequest.md +38 -0
- package/docs/DetectCoordinatesRequest.md +5 -1
- package/docs/{FormField.md → DialogRequest.md} +7 -7
- package/docs/EmulateRequest.md +32 -0
- package/docs/{ExecuteData.md → ExecuteScriptRequest.md} +5 -5
- package/docs/FillFormRequest.md +2 -2
- package/docs/GenericResponse.md +24 -0
- package/docs/GuiClickRequest.md +30 -0
- package/docs/GuiHoverXyRequest.md +24 -0
- package/docs/GuiPressKeysXyRequest.md +26 -0
- package/docs/GuiTypeXyRequest.md +26 -0
- package/docs/HistoryRequest.md +1 -1
- package/docs/MouseRequest.md +5 -5
- package/docs/{NavigateRequest.md → NavigateBrowserRequest.md} +5 -5
- package/docs/NetworkLogsRequest.md +2 -2
- package/docs/PerformanceRequest.md +2 -2
- package/docs/PressKeysRequest.md +4 -4
- package/docs/ResizeRequest.md +2 -2
- package/docs/ScrollRequest.md +32 -0
- package/docs/SelectRequest.md +7 -7
- package/docs/SnapshotRequest.md +2 -2
- package/docs/TabsRequest.md +4 -4
- package/docs/TakeScreenshotRequest.md +20 -0
- package/docs/TypeTextRequest.md +26 -0
- package/docs/UploadFileRequest.md +3 -3
- package/docs/WaitElementRequest.md +5 -5
- package/package.json +1 -1
- package/docs/ActionResult.md +0 -26
- package/docs/AttributeResponse.md +0 -26
- package/docs/BrowserConfig.md +0 -36
- package/docs/BrowserCreated.md +0 -26
- package/docs/BrowserCreationData.md +0 -22
- package/docs/BrowserInfoResponse.md +0 -26
- package/docs/BrowserList.md +0 -26
- package/docs/BrowserListData.md +0 -22
- package/docs/CheckElementRequest.md +0 -24
- package/docs/CombinedDialogRequest.md +0 -22
- package/docs/CombinedEmulateRequest.md +0 -32
- package/docs/CombinedGuiClickRequest.md +0 -30
- package/docs/CombinedScrollRequest.md +0 -32
- package/docs/ContentData.md +0 -24
- package/docs/ContentResponse.md +0 -26
- package/docs/DetectCoordinatesResult.md +0 -44
- package/docs/ElementDataRequest.md +0 -26
- package/docs/ExecuteRequest.md +0 -22
- package/docs/ExecuteResponse.md +0 -26
- package/docs/LogsResponse.md +0 -26
- package/docs/PoolStatusResponse.md +0 -26
- package/docs/ScreenshotData.md +0 -22
- package/docs/ScreenshotResponse.md +0 -26
- package/docs/SuccessResponse.md +0 -26
- package/docs/TypeRequest.md +0 -26
- package/docs/UrlResponse.md +0 -26
- package/docs/WhatIsVisibleResult.md +0 -34
package/dist/api.js
CHANGED
|
@@ -22,66 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PoolApi = exports.PoolApiFactory = exports.PoolApiFp = exports.PoolApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.BrowserApi = exports.BrowserApiFactory = exports.BrowserApiFp = exports.BrowserApiAxiosParamCreator =
|
|
25
|
+
exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PoolApi = exports.PoolApiFactory = exports.PoolApiFp = exports.PoolApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.BrowserApi = exports.BrowserApiFactory = exports.BrowserApiFp = exports.BrowserApiAxiosParamCreator = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
-
exports.CheckElementRequestCheckEnum = {
|
|
33
|
-
Exists: 'exists',
|
|
34
|
-
Visible: 'visible'
|
|
35
|
-
};
|
|
36
|
-
exports.CombinedDialogRequestActionEnum = {
|
|
37
|
-
Get: 'get',
|
|
38
|
-
Accept: 'accept',
|
|
39
|
-
Dismiss: 'dismiss'
|
|
40
|
-
};
|
|
41
|
-
exports.CombinedEmulateRequestActionEnum = {
|
|
42
|
-
Set: 'set',
|
|
43
|
-
Clear: 'clear',
|
|
44
|
-
ListDevices: 'list_devices'
|
|
45
|
-
};
|
|
46
|
-
exports.ConsoleLogsRequestActionEnum = {
|
|
47
|
-
Get: 'get',
|
|
48
|
-
Clear: 'clear'
|
|
49
|
-
};
|
|
50
|
-
exports.ElementDataRequestTypeEnum = {
|
|
51
|
-
Text: 'text',
|
|
52
|
-
Attribute: 'attribute',
|
|
53
|
-
Property: 'property'
|
|
54
|
-
};
|
|
55
|
-
exports.HistoryRequestActionEnum = {
|
|
56
|
-
Back: 'back',
|
|
57
|
-
Forward: 'forward',
|
|
58
|
-
Refresh: 'refresh'
|
|
59
|
-
};
|
|
60
|
-
exports.NetworkLogsRequestActionEnum = {
|
|
61
|
-
Get: 'get',
|
|
62
|
-
Clear: 'clear'
|
|
63
|
-
};
|
|
64
|
-
exports.PerformanceRequestActionEnum = {
|
|
65
|
-
StartTrace: 'start_trace',
|
|
66
|
-
StopTrace: 'stop_trace',
|
|
67
|
-
Metrics: 'metrics',
|
|
68
|
-
Analyze: 'analyze'
|
|
69
|
-
};
|
|
70
|
-
exports.SelectRequestActionEnum = {
|
|
71
|
-
Select: 'select',
|
|
72
|
-
Options: 'options'
|
|
73
|
-
};
|
|
74
|
-
exports.TabsRequestActionEnum = {
|
|
75
|
-
List: 'list',
|
|
76
|
-
New: 'new',
|
|
77
|
-
Switch: 'switch',
|
|
78
|
-
Close: 'close',
|
|
79
|
-
Current: 'current'
|
|
80
|
-
};
|
|
81
|
-
exports.WaitElementRequestUntilEnum = {
|
|
82
|
-
Visible: 'visible',
|
|
83
|
-
Hidden: 'hidden'
|
|
84
|
-
};
|
|
85
32
|
/**
|
|
86
33
|
* BrowserApi - axios parameter creator
|
|
87
34
|
*/
|
|
@@ -89,19 +36,15 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
89
36
|
return {
|
|
90
37
|
/**
|
|
91
38
|
*
|
|
92
|
-
* @summary
|
|
93
|
-
* @param {
|
|
94
|
-
* @param {CheckElementRequest} payload
|
|
39
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
40
|
+
* @param {BrowsersRequest} payload
|
|
95
41
|
* @param {*} [options] Override http request option.
|
|
96
42
|
* @throws {RequiredError}
|
|
97
43
|
*/
|
|
98
|
-
|
|
99
|
-
// verify required parameter 'browserId' is not null or undefined
|
|
100
|
-
(0, common_1.assertParamExists)('checkElement', 'browserId', browserId);
|
|
44
|
+
browsers: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
101
45
|
// verify required parameter 'payload' is not null or undefined
|
|
102
|
-
(0, common_1.assertParamExists)('
|
|
103
|
-
const localVarPath = `/browser/
|
|
104
|
-
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
46
|
+
(0, common_1.assertParamExists)('browsers', 'payload', payload);
|
|
47
|
+
const localVarPath = `/browser/browsers`;
|
|
105
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
49
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
107
50
|
let baseOptions;
|
|
@@ -123,19 +66,23 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
123
66
|
};
|
|
124
67
|
}),
|
|
125
68
|
/**
|
|
126
|
-
*
|
|
127
|
-
* @summary
|
|
128
|
-
* @param {string} browserId
|
|
129
|
-
* @param {
|
|
69
|
+
*
|
|
70
|
+
* @summary Check if element exists or is visible
|
|
71
|
+
* @param {string} browserId
|
|
72
|
+
* @param {string} selector selector
|
|
73
|
+
* @param {string} check check
|
|
74
|
+
* @param {string} [by] by
|
|
130
75
|
* @param {*} [options] Override http request option.
|
|
131
76
|
* @throws {RequiredError}
|
|
132
77
|
*/
|
|
133
|
-
|
|
78
|
+
checkElement: (browserId_1, selector_1, check_1, by_1, ...args_1) => __awaiter(this, [browserId_1, selector_1, check_1, by_1, ...args_1], void 0, function* (browserId, selector, check, by, options = {}) {
|
|
134
79
|
// verify required parameter 'browserId' is not null or undefined
|
|
135
|
-
(0, common_1.assertParamExists)('
|
|
136
|
-
// verify required parameter '
|
|
137
|
-
(0, common_1.assertParamExists)('
|
|
138
|
-
|
|
80
|
+
(0, common_1.assertParamExists)('checkElement', 'browserId', browserId);
|
|
81
|
+
// verify required parameter 'selector' is not null or undefined
|
|
82
|
+
(0, common_1.assertParamExists)('checkElement', 'selector', selector);
|
|
83
|
+
// verify required parameter 'check' is not null or undefined
|
|
84
|
+
(0, common_1.assertParamExists)('checkElement', 'check', check);
|
|
85
|
+
const localVarPath = `/browser/{browser_id}/check_element`
|
|
139
86
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
140
87
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
88
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -143,28 +90,42 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
143
90
|
if (configuration) {
|
|
144
91
|
baseOptions = configuration.baseOptions;
|
|
145
92
|
}
|
|
146
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
93
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
147
94
|
const localVarHeaderParameter = {};
|
|
148
95
|
const localVarQueryParameter = {};
|
|
149
|
-
|
|
96
|
+
if (selector !== undefined) {
|
|
97
|
+
localVarQueryParameter['selector'] = selector;
|
|
98
|
+
}
|
|
99
|
+
if (check !== undefined) {
|
|
100
|
+
localVarQueryParameter['check'] = check;
|
|
101
|
+
}
|
|
102
|
+
if (by !== undefined) {
|
|
103
|
+
localVarQueryParameter['by'] = by;
|
|
104
|
+
}
|
|
150
105
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
151
106
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
107
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
108
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
155
109
|
return {
|
|
156
110
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
157
111
|
options: localVarRequestOptions,
|
|
158
112
|
};
|
|
159
113
|
}),
|
|
160
114
|
/**
|
|
161
|
-
*
|
|
162
|
-
* @summary
|
|
115
|
+
* Use if_visible=True to only click if visible.
|
|
116
|
+
* @summary Click element
|
|
117
|
+
* @param {string} browserId
|
|
118
|
+
* @param {ClickRequest} payload
|
|
163
119
|
* @param {*} [options] Override http request option.
|
|
164
120
|
* @throws {RequiredError}
|
|
165
121
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
122
|
+
click: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
123
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('click', 'browserId', browserId);
|
|
125
|
+
// verify required parameter 'payload' is not null or undefined
|
|
126
|
+
(0, common_1.assertParamExists)('click', 'payload', payload);
|
|
127
|
+
const localVarPath = `/browser/{browser_id}/click`
|
|
128
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
168
129
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
130
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
131
|
let baseOptions;
|
|
@@ -174,10 +135,12 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
174
135
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
175
136
|
const localVarHeaderParameter = {};
|
|
176
137
|
const localVarQueryParameter = {};
|
|
138
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
177
139
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
178
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
179
141
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
142
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
181
144
|
return {
|
|
182
145
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
183
146
|
options: localVarRequestOptions,
|
|
@@ -185,15 +148,15 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
185
148
|
}),
|
|
186
149
|
/**
|
|
187
150
|
*
|
|
188
|
-
* @summary Close
|
|
189
|
-
* @param {string} browserId
|
|
151
|
+
* @summary Close browser instance
|
|
152
|
+
* @param {string} browserId
|
|
190
153
|
* @param {*} [options] Override http request option.
|
|
191
154
|
* @throws {RequiredError}
|
|
192
155
|
*/
|
|
193
156
|
closeBrowser: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
|
|
194
157
|
// verify required parameter 'browserId' is not null or undefined
|
|
195
158
|
(0, common_1.assertParamExists)('closeBrowser', 'browserId', browserId);
|
|
196
|
-
const localVarPath = `/browser/{browser_id}/
|
|
159
|
+
const localVarPath = `/browser/{browser_id}/close_browser`
|
|
197
160
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
198
161
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
162
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -201,7 +164,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
201
164
|
if (configuration) {
|
|
202
165
|
baseOptions = configuration.baseOptions;
|
|
203
166
|
}
|
|
204
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
167
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
205
168
|
const localVarHeaderParameter = {};
|
|
206
169
|
const localVarQueryParameter = {};
|
|
207
170
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -215,8 +178,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
215
178
|
}),
|
|
216
179
|
/**
|
|
217
180
|
*
|
|
218
|
-
* @summary
|
|
219
|
-
* @param {string} browserId
|
|
181
|
+
* @summary Console logs: get or clear
|
|
182
|
+
* @param {string} browserId
|
|
220
183
|
* @param {ConsoleLogsRequest} payload
|
|
221
184
|
* @param {*} [options] Override http request option.
|
|
222
185
|
* @throws {RequiredError}
|
|
@@ -226,7 +189,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
226
189
|
(0, common_1.assertParamExists)('consoleLogs', 'browserId', browserId);
|
|
227
190
|
// verify required parameter 'payload' is not null or undefined
|
|
228
191
|
(0, common_1.assertParamExists)('consoleLogs', 'payload', payload);
|
|
229
|
-
const localVarPath = `/browser/{browser_id}/
|
|
192
|
+
const localVarPath = `/browser/{browser_id}/console_logs`
|
|
230
193
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
231
194
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
232
195
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -250,15 +213,15 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
250
213
|
}),
|
|
251
214
|
/**
|
|
252
215
|
*
|
|
253
|
-
* @summary Create
|
|
254
|
-
* @param {
|
|
216
|
+
* @summary Create browser instance with optional persistent profile
|
|
217
|
+
* @param {CreateBrowserRequest} payload
|
|
255
218
|
* @param {*} [options] Override http request option.
|
|
256
219
|
* @throws {RequiredError}
|
|
257
220
|
*/
|
|
258
221
|
createBrowser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
259
222
|
// verify required parameter 'payload' is not null or undefined
|
|
260
223
|
(0, common_1.assertParamExists)('createBrowser', 'payload', payload);
|
|
261
|
-
const localVarPath = `/browser/
|
|
224
|
+
const localVarPath = `/browser/create_browser`;
|
|
262
225
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
263
226
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
264
227
|
let baseOptions;
|
|
@@ -280,39 +243,9 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
280
243
|
};
|
|
281
244
|
}),
|
|
282
245
|
/**
|
|
283
|
-
*
|
|
284
|
-
* @summary
|
|
285
|
-
* @param {string} browserId
|
|
286
|
-
* @param {*} [options] Override http request option.
|
|
287
|
-
* @throws {RequiredError}
|
|
288
|
-
*/
|
|
289
|
-
deleteBrowser: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
|
|
290
|
-
// verify required parameter 'browserId' is not null or undefined
|
|
291
|
-
(0, common_1.assertParamExists)('deleteBrowser', 'browserId', browserId);
|
|
292
|
-
const localVarPath = `/browser/{browser_id}`
|
|
293
|
-
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
294
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
295
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
296
|
-
let baseOptions;
|
|
297
|
-
if (configuration) {
|
|
298
|
-
baseOptions = configuration.baseOptions;
|
|
299
|
-
}
|
|
300
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
301
|
-
const localVarHeaderParameter = {};
|
|
302
|
-
const localVarQueryParameter = {};
|
|
303
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
304
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
305
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
307
|
-
return {
|
|
308
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
309
|
-
options: localVarRequestOptions,
|
|
310
|
-
};
|
|
311
|
-
}),
|
|
312
|
-
/**
|
|
313
|
-
*
|
|
314
|
-
* @summary Detect element coordinates using AI vision
|
|
315
|
-
* @param {string} browserId Unique browser identifier
|
|
246
|
+
* 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).
|
|
247
|
+
* @summary Detect element coordinates using vision
|
|
248
|
+
* @param {string} browserId
|
|
316
249
|
* @param {DetectCoordinatesRequest} payload
|
|
317
250
|
* @param {*} [options] Override http request option.
|
|
318
251
|
* @throws {RequiredError}
|
|
@@ -346,9 +279,9 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
346
279
|
}),
|
|
347
280
|
/**
|
|
348
281
|
*
|
|
349
|
-
* @summary
|
|
350
|
-
* @param {string} browserId
|
|
351
|
-
* @param {
|
|
282
|
+
* @summary Dialogs: get, accept, dismiss
|
|
283
|
+
* @param {string} browserId
|
|
284
|
+
* @param {DialogRequest} payload
|
|
352
285
|
* @param {*} [options] Override http request option.
|
|
353
286
|
* @throws {RequiredError}
|
|
354
287
|
*/
|
|
@@ -381,9 +314,9 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
381
314
|
}),
|
|
382
315
|
/**
|
|
383
316
|
*
|
|
384
|
-
* @summary
|
|
385
|
-
* @param {string} browserId
|
|
386
|
-
* @param {
|
|
317
|
+
* @summary Emulation: set, clear, list_devices
|
|
318
|
+
* @param {string} browserId
|
|
319
|
+
* @param {EmulateRequest} payload
|
|
387
320
|
* @param {*} [options] Override http request option.
|
|
388
321
|
* @throws {RequiredError}
|
|
389
322
|
*/
|
|
@@ -417,8 +350,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
417
350
|
/**
|
|
418
351
|
*
|
|
419
352
|
* @summary Execute JavaScript
|
|
420
|
-
* @param {string} browserId
|
|
421
|
-
* @param {
|
|
353
|
+
* @param {string} browserId
|
|
354
|
+
* @param {ExecuteScriptRequest} payload
|
|
422
355
|
* @param {*} [options] Override http request option.
|
|
423
356
|
* @throws {RequiredError}
|
|
424
357
|
*/
|
|
@@ -427,7 +360,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
427
360
|
(0, common_1.assertParamExists)('executeScript', 'browserId', browserId);
|
|
428
361
|
// verify required parameter 'payload' is not null or undefined
|
|
429
362
|
(0, common_1.assertParamExists)('executeScript', 'payload', payload);
|
|
430
|
-
const localVarPath = `/browser/{browser_id}/
|
|
363
|
+
const localVarPath = `/browser/{browser_id}/execute_script`
|
|
431
364
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
432
365
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
433
366
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -452,7 +385,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
452
385
|
/**
|
|
453
386
|
*
|
|
454
387
|
* @summary Fill multiple form fields
|
|
455
|
-
* @param {string} browserId
|
|
388
|
+
* @param {string} browserId
|
|
456
389
|
* @param {FillFormRequest} payload
|
|
457
390
|
* @param {*} [options] Override http request option.
|
|
458
391
|
* @throws {RequiredError}
|
|
@@ -486,15 +419,15 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
486
419
|
}),
|
|
487
420
|
/**
|
|
488
421
|
*
|
|
489
|
-
* @summary Get
|
|
490
|
-
* @param {string} browserId
|
|
422
|
+
* @summary Get page HTML
|
|
423
|
+
* @param {string} browserId
|
|
491
424
|
* @param {*} [options] Override http request option.
|
|
492
425
|
* @throws {RequiredError}
|
|
493
426
|
*/
|
|
494
|
-
|
|
427
|
+
getContent: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
|
|
495
428
|
// verify required parameter 'browserId' is not null or undefined
|
|
496
|
-
(0, common_1.assertParamExists)('
|
|
497
|
-
const localVarPath = `/browser/{browser_id}`
|
|
429
|
+
(0, common_1.assertParamExists)('getContent', 'browserId', browserId);
|
|
430
|
+
const localVarPath = `/browser/{browser_id}/get_content`
|
|
498
431
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
499
432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
500
433
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -516,15 +449,23 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
516
449
|
}),
|
|
517
450
|
/**
|
|
518
451
|
*
|
|
519
|
-
* @summary Get
|
|
520
|
-
* @param {string} browserId
|
|
452
|
+
* @summary Get element text, attribute, or property
|
|
453
|
+
* @param {string} browserId
|
|
454
|
+
* @param {string} selector selector
|
|
455
|
+
* @param {string} dataType data_type
|
|
456
|
+
* @param {string} [name] name
|
|
457
|
+
* @param {string} [by] by
|
|
521
458
|
* @param {*} [options] Override http request option.
|
|
522
459
|
* @throws {RequiredError}
|
|
523
460
|
*/
|
|
524
|
-
|
|
461
|
+
getElementData: (browserId_1, selector_1, dataType_1, name_1, by_1, ...args_1) => __awaiter(this, [browserId_1, selector_1, dataType_1, name_1, by_1, ...args_1], void 0, function* (browserId, selector, dataType, name, by, options = {}) {
|
|
525
462
|
// verify required parameter 'browserId' is not null or undefined
|
|
526
|
-
(0, common_1.assertParamExists)('
|
|
527
|
-
|
|
463
|
+
(0, common_1.assertParamExists)('getElementData', 'browserId', browserId);
|
|
464
|
+
// verify required parameter 'selector' is not null or undefined
|
|
465
|
+
(0, common_1.assertParamExists)('getElementData', 'selector', selector);
|
|
466
|
+
// verify required parameter 'dataType' is not null or undefined
|
|
467
|
+
(0, common_1.assertParamExists)('getElementData', 'dataType', dataType);
|
|
468
|
+
const localVarPath = `/browser/{browser_id}/get_element_data`
|
|
528
469
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
529
470
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
530
471
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -535,6 +476,18 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
535
476
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
536
477
|
const localVarHeaderParameter = {};
|
|
537
478
|
const localVarQueryParameter = {};
|
|
479
|
+
if (selector !== undefined) {
|
|
480
|
+
localVarQueryParameter['selector'] = selector;
|
|
481
|
+
}
|
|
482
|
+
if (dataType !== undefined) {
|
|
483
|
+
localVarQueryParameter['data_type'] = dataType;
|
|
484
|
+
}
|
|
485
|
+
if (name !== undefined) {
|
|
486
|
+
localVarQueryParameter['name'] = name;
|
|
487
|
+
}
|
|
488
|
+
if (by !== undefined) {
|
|
489
|
+
localVarQueryParameter['by'] = by;
|
|
490
|
+
}
|
|
538
491
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
539
492
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
540
493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -546,15 +499,15 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
546
499
|
}),
|
|
547
500
|
/**
|
|
548
501
|
*
|
|
549
|
-
* @summary Get
|
|
550
|
-
* @param {string} browserId
|
|
502
|
+
* @summary Get current URL
|
|
503
|
+
* @param {string} browserId
|
|
551
504
|
* @param {*} [options] Override http request option.
|
|
552
505
|
* @throws {RequiredError}
|
|
553
506
|
*/
|
|
554
|
-
|
|
507
|
+
getUrl: (browserId_1, ...args_1) => __awaiter(this, [browserId_1, ...args_1], void 0, function* (browserId, options = {}) {
|
|
555
508
|
// verify required parameter 'browserId' is not null or undefined
|
|
556
|
-
(0, common_1.assertParamExists)('
|
|
557
|
-
const localVarPath = `/browser/{browser_id}/
|
|
509
|
+
(0, common_1.assertParamExists)('getUrl', 'browserId', browserId);
|
|
510
|
+
const localVarPath = `/browser/{browser_id}/get_url`
|
|
558
511
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
559
512
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
560
513
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -576,18 +529,18 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
576
529
|
}),
|
|
577
530
|
/**
|
|
578
531
|
*
|
|
579
|
-
* @summary
|
|
580
|
-
* @param {string} browserId
|
|
581
|
-
* @param {
|
|
532
|
+
* @summary GUI click by selector or coordinates
|
|
533
|
+
* @param {string} browserId
|
|
534
|
+
* @param {GuiClickRequest} payload
|
|
582
535
|
* @param {*} [options] Override http request option.
|
|
583
536
|
* @throws {RequiredError}
|
|
584
537
|
*/
|
|
585
|
-
|
|
538
|
+
guiClick: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
586
539
|
// verify required parameter 'browserId' is not null or undefined
|
|
587
|
-
(0, common_1.assertParamExists)('
|
|
540
|
+
(0, common_1.assertParamExists)('guiClick', 'browserId', browserId);
|
|
588
541
|
// verify required parameter 'payload' is not null or undefined
|
|
589
|
-
(0, common_1.assertParamExists)('
|
|
590
|
-
const localVarPath = `/browser/{browser_id}/
|
|
542
|
+
(0, common_1.assertParamExists)('guiClick', 'payload', payload);
|
|
543
|
+
const localVarPath = `/browser/{browser_id}/gui_click`
|
|
591
544
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
592
545
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
593
546
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -611,25 +564,34 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
611
564
|
}),
|
|
612
565
|
/**
|
|
613
566
|
*
|
|
614
|
-
* @summary
|
|
567
|
+
* @summary GUI hover at coordinates
|
|
568
|
+
* @param {string} browserId
|
|
569
|
+
* @param {GuiHoverXyRequest} payload
|
|
615
570
|
* @param {*} [options] Override http request option.
|
|
616
571
|
* @throws {RequiredError}
|
|
617
572
|
*/
|
|
618
|
-
|
|
619
|
-
|
|
573
|
+
guiHoverXy: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
574
|
+
// verify required parameter 'browserId' is not null or undefined
|
|
575
|
+
(0, common_1.assertParamExists)('guiHoverXy', 'browserId', browserId);
|
|
576
|
+
// verify required parameter 'payload' is not null or undefined
|
|
577
|
+
(0, common_1.assertParamExists)('guiHoverXy', 'payload', payload);
|
|
578
|
+
const localVarPath = `/browser/{browser_id}/gui_hover_xy`
|
|
579
|
+
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
620
580
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
621
581
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
622
582
|
let baseOptions;
|
|
623
583
|
if (configuration) {
|
|
624
584
|
baseOptions = configuration.baseOptions;
|
|
625
585
|
}
|
|
626
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
586
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
627
587
|
const localVarHeaderParameter = {};
|
|
628
588
|
const localVarQueryParameter = {};
|
|
589
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
629
590
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
630
591
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
631
592
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
632
593
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
594
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
633
595
|
return {
|
|
634
596
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
635
597
|
options: localVarRequestOptions,
|
|
@@ -637,15 +599,18 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
637
599
|
}),
|
|
638
600
|
/**
|
|
639
601
|
*
|
|
640
|
-
* @summary
|
|
641
|
-
* @param {string} browserId
|
|
602
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
603
|
+
* @param {string} browserId
|
|
604
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
642
605
|
* @param {*} [options] Override http request option.
|
|
643
606
|
* @throws {RequiredError}
|
|
644
607
|
*/
|
|
645
|
-
|
|
608
|
+
guiPressKeysXy: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
646
609
|
// verify required parameter 'browserId' is not null or undefined
|
|
647
|
-
(0, common_1.assertParamExists)('
|
|
648
|
-
|
|
610
|
+
(0, common_1.assertParamExists)('guiPressKeysXy', 'browserId', browserId);
|
|
611
|
+
// verify required parameter 'payload' is not null or undefined
|
|
612
|
+
(0, common_1.assertParamExists)('guiPressKeysXy', 'payload', payload);
|
|
613
|
+
const localVarPath = `/browser/{browser_id}/gui_press_keys_xy`
|
|
649
614
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
650
615
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
651
616
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -653,13 +618,15 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
653
618
|
if (configuration) {
|
|
654
619
|
baseOptions = configuration.baseOptions;
|
|
655
620
|
}
|
|
656
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
621
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
657
622
|
const localVarHeaderParameter = {};
|
|
658
623
|
const localVarQueryParameter = {};
|
|
624
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
659
625
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
660
626
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
661
627
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
662
628
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
629
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
663
630
|
return {
|
|
664
631
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
665
632
|
options: localVarRequestOptions,
|
|
@@ -667,18 +634,18 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
667
634
|
}),
|
|
668
635
|
/**
|
|
669
636
|
*
|
|
670
|
-
* @summary
|
|
671
|
-
* @param {string} browserId
|
|
672
|
-
* @param {
|
|
637
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
638
|
+
* @param {string} browserId
|
|
639
|
+
* @param {GuiTypeXyRequest} payload
|
|
673
640
|
* @param {*} [options] Override http request option.
|
|
674
641
|
* @throws {RequiredError}
|
|
675
642
|
*/
|
|
676
|
-
|
|
643
|
+
guiTypeXy: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
677
644
|
// verify required parameter 'browserId' is not null or undefined
|
|
678
|
-
(0, common_1.assertParamExists)('
|
|
645
|
+
(0, common_1.assertParamExists)('guiTypeXy', 'browserId', browserId);
|
|
679
646
|
// verify required parameter 'payload' is not null or undefined
|
|
680
|
-
(0, common_1.assertParamExists)('
|
|
681
|
-
const localVarPath = `/browser/{browser_id}/
|
|
647
|
+
(0, common_1.assertParamExists)('guiTypeXy', 'payload', payload);
|
|
648
|
+
const localVarPath = `/browser/{browser_id}/gui_type_xy`
|
|
682
649
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
683
650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
684
651
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -702,8 +669,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
702
669
|
}),
|
|
703
670
|
/**
|
|
704
671
|
*
|
|
705
|
-
* @summary
|
|
706
|
-
* @param {string} browserId
|
|
672
|
+
* @summary History: back, forward, or refresh
|
|
673
|
+
* @param {string} browserId
|
|
707
674
|
* @param {HistoryRequest} payload
|
|
708
675
|
* @param {*} [options] Override http request option.
|
|
709
676
|
* @throws {RequiredError}
|
|
@@ -737,34 +704,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
737
704
|
}),
|
|
738
705
|
/**
|
|
739
706
|
*
|
|
740
|
-
* @summary
|
|
741
|
-
* @param {
|
|
742
|
-
* @throws {RequiredError}
|
|
743
|
-
*/
|
|
744
|
-
listBrowsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
745
|
-
const localVarPath = `/browser/list`;
|
|
746
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
747
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
748
|
-
let baseOptions;
|
|
749
|
-
if (configuration) {
|
|
750
|
-
baseOptions = configuration.baseOptions;
|
|
751
|
-
}
|
|
752
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
753
|
-
const localVarHeaderParameter = {};
|
|
754
|
-
const localVarQueryParameter = {};
|
|
755
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
756
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
757
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
759
|
-
return {
|
|
760
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
761
|
-
options: localVarRequestOptions,
|
|
762
|
-
};
|
|
763
|
-
}),
|
|
764
|
-
/**
|
|
765
|
-
*
|
|
766
|
-
* @summary Mouse action: hover or drag
|
|
767
|
-
* @param {string} browserId Unique browser identifier
|
|
707
|
+
* @summary Mouse: hover or drag
|
|
708
|
+
* @param {string} browserId
|
|
768
709
|
* @param {MouseRequest} payload
|
|
769
710
|
* @param {*} [options] Override http request option.
|
|
770
711
|
* @throws {RequiredError}
|
|
@@ -798,9 +739,9 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
798
739
|
}),
|
|
799
740
|
/**
|
|
800
741
|
*
|
|
801
|
-
* @summary Navigate to
|
|
802
|
-
* @param {string} browserId
|
|
803
|
-
* @param {
|
|
742
|
+
* @summary Navigate to URL
|
|
743
|
+
* @param {string} browserId
|
|
744
|
+
* @param {NavigateBrowserRequest} payload
|
|
804
745
|
* @param {*} [options] Override http request option.
|
|
805
746
|
* @throws {RequiredError}
|
|
806
747
|
*/
|
|
@@ -833,8 +774,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
833
774
|
}),
|
|
834
775
|
/**
|
|
835
776
|
*
|
|
836
|
-
* @summary
|
|
837
|
-
* @param {string} browserId
|
|
777
|
+
* @summary Network logs: get or clear
|
|
778
|
+
* @param {string} browserId
|
|
838
779
|
* @param {NetworkLogsRequest} payload
|
|
839
780
|
* @param {*} [options] Override http request option.
|
|
840
781
|
* @throws {RequiredError}
|
|
@@ -844,7 +785,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
844
785
|
(0, common_1.assertParamExists)('networkLogs', 'browserId', browserId);
|
|
845
786
|
// verify required parameter 'payload' is not null or undefined
|
|
846
787
|
(0, common_1.assertParamExists)('networkLogs', 'payload', payload);
|
|
847
|
-
const localVarPath = `/browser/{browser_id}/
|
|
788
|
+
const localVarPath = `/browser/{browser_id}/network_logs`
|
|
848
789
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
849
790
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
850
791
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -868,8 +809,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
868
809
|
}),
|
|
869
810
|
/**
|
|
870
811
|
*
|
|
871
|
-
* @summary
|
|
872
|
-
* @param {string} browserId
|
|
812
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
813
|
+
* @param {string} browserId
|
|
873
814
|
* @param {PerformanceRequest} payload
|
|
874
815
|
* @param {*} [options] Override http request option.
|
|
875
816
|
* @throws {RequiredError}
|
|
@@ -903,8 +844,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
903
844
|
}),
|
|
904
845
|
/**
|
|
905
846
|
*
|
|
906
|
-
* @summary Press keys
|
|
907
|
-
* @param {string} browserId
|
|
847
|
+
* @summary Press keyboard keys
|
|
848
|
+
* @param {string} browserId
|
|
908
849
|
* @param {PressKeysRequest} payload
|
|
909
850
|
* @param {*} [options] Override http request option.
|
|
910
851
|
* @throws {RequiredError}
|
|
@@ -939,7 +880,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
939
880
|
/**
|
|
940
881
|
*
|
|
941
882
|
* @summary Resize viewport
|
|
942
|
-
* @param {string} browserId
|
|
883
|
+
* @param {string} browserId
|
|
943
884
|
* @param {ResizeRequest} payload
|
|
944
885
|
* @param {*} [options] Override http request option.
|
|
945
886
|
* @throws {RequiredError}
|
|
@@ -973,9 +914,9 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
973
914
|
}),
|
|
974
915
|
/**
|
|
975
916
|
*
|
|
976
|
-
* @summary Scroll to element/
|
|
977
|
-
* @param {string} browserId
|
|
978
|
-
* @param {
|
|
917
|
+
* @summary Scroll to element/coords or by delta
|
|
918
|
+
* @param {string} browserId
|
|
919
|
+
* @param {ScrollRequest} payload
|
|
979
920
|
* @param {*} [options] Override http request option.
|
|
980
921
|
* @throws {RequiredError}
|
|
981
922
|
*/
|
|
@@ -1009,7 +950,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1009
950
|
/**
|
|
1010
951
|
*
|
|
1011
952
|
* @summary Select dropdown: select option or get options
|
|
1012
|
-
* @param {string} browserId
|
|
953
|
+
* @param {string} browserId
|
|
1013
954
|
* @param {SelectRequest} payload
|
|
1014
955
|
* @param {*} [options] Override http request option.
|
|
1015
956
|
* @throws {RequiredError}
|
|
@@ -1043,18 +984,18 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1043
984
|
}),
|
|
1044
985
|
/**
|
|
1045
986
|
*
|
|
1046
|
-
* @summary
|
|
1047
|
-
* @param {string} browserId
|
|
1048
|
-
* @param {
|
|
987
|
+
* @summary DOM or accessibility snapshot
|
|
988
|
+
* @param {string} browserId
|
|
989
|
+
* @param {SnapshotRequest} payload
|
|
1049
990
|
* @param {*} [options] Override http request option.
|
|
1050
991
|
* @throws {RequiredError}
|
|
1051
992
|
*/
|
|
1052
|
-
|
|
993
|
+
snapshot: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
1053
994
|
// verify required parameter 'browserId' is not null or undefined
|
|
1054
|
-
(0, common_1.assertParamExists)('
|
|
995
|
+
(0, common_1.assertParamExists)('snapshot', 'browserId', browserId);
|
|
1055
996
|
// verify required parameter 'payload' is not null or undefined
|
|
1056
|
-
(0, common_1.assertParamExists)('
|
|
1057
|
-
const localVarPath = `/browser/{browser_id}/
|
|
997
|
+
(0, common_1.assertParamExists)('snapshot', 'payload', payload);
|
|
998
|
+
const localVarPath = `/browser/{browser_id}/snapshot`
|
|
1058
999
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1059
1000
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1060
1001
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1078,15 +1019,18 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1078
1019
|
}),
|
|
1079
1020
|
/**
|
|
1080
1021
|
*
|
|
1081
|
-
* @summary
|
|
1082
|
-
* @param {string} browserId
|
|
1022
|
+
* @summary Tabs: list, new, switch, close, current
|
|
1023
|
+
* @param {string} browserId
|
|
1024
|
+
* @param {TabsRequest} payload
|
|
1083
1025
|
* @param {*} [options] Override http request option.
|
|
1084
1026
|
* @throws {RequiredError}
|
|
1085
1027
|
*/
|
|
1086
|
-
|
|
1028
|
+
tabs: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
1087
1029
|
// verify required parameter 'browserId' is not null or undefined
|
|
1088
|
-
(0, common_1.assertParamExists)('
|
|
1089
|
-
|
|
1030
|
+
(0, common_1.assertParamExists)('tabs', 'browserId', browserId);
|
|
1031
|
+
// verify required parameter 'payload' is not null or undefined
|
|
1032
|
+
(0, common_1.assertParamExists)('tabs', 'payload', payload);
|
|
1033
|
+
const localVarPath = `/browser/{browser_id}/tabs`
|
|
1090
1034
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1091
1035
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1092
1036
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1097,10 +1041,12 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1097
1041
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1098
1042
|
const localVarHeaderParameter = {};
|
|
1099
1043
|
const localVarQueryParameter = {};
|
|
1044
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1100
1045
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1101
1046
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1102
1047
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1103
1048
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1049
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
1104
1050
|
return {
|
|
1105
1051
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1106
1052
|
options: localVarRequestOptions,
|
|
@@ -1108,18 +1054,18 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1108
1054
|
}),
|
|
1109
1055
|
/**
|
|
1110
1056
|
*
|
|
1111
|
-
* @summary Take
|
|
1112
|
-
* @param {string} browserId
|
|
1113
|
-
* @param {
|
|
1057
|
+
* @summary Take screenshot
|
|
1058
|
+
* @param {string} browserId
|
|
1059
|
+
* @param {TakeScreenshotRequest} payload
|
|
1114
1060
|
* @param {*} [options] Override http request option.
|
|
1115
1061
|
* @throws {RequiredError}
|
|
1116
1062
|
*/
|
|
1117
|
-
|
|
1063
|
+
takeScreenshot: (browserId_1, payload_1, ...args_1) => __awaiter(this, [browserId_1, payload_1, ...args_1], void 0, function* (browserId, payload, options = {}) {
|
|
1118
1064
|
// verify required parameter 'browserId' is not null or undefined
|
|
1119
|
-
(0, common_1.assertParamExists)('
|
|
1065
|
+
(0, common_1.assertParamExists)('takeScreenshot', 'browserId', browserId);
|
|
1120
1066
|
// verify required parameter 'payload' is not null or undefined
|
|
1121
|
-
(0, common_1.assertParamExists)('
|
|
1122
|
-
const localVarPath = `/browser/{browser_id}/
|
|
1067
|
+
(0, common_1.assertParamExists)('takeScreenshot', 'payload', payload);
|
|
1068
|
+
const localVarPath = `/browser/{browser_id}/screenshot`
|
|
1123
1069
|
.replace(`{${"browser_id"}}`, encodeURIComponent(String(browserId)));
|
|
1124
1070
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1125
1071
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1143,9 +1089,9 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1143
1089
|
}),
|
|
1144
1090
|
/**
|
|
1145
1091
|
*
|
|
1146
|
-
* @summary Type text into
|
|
1147
|
-
* @param {string} browserId
|
|
1148
|
-
* @param {
|
|
1092
|
+
* @summary Type text into element
|
|
1093
|
+
* @param {string} browserId
|
|
1094
|
+
* @param {TypeTextRequest} payload
|
|
1149
1095
|
* @param {*} [options] Override http request option.
|
|
1150
1096
|
* @throws {RequiredError}
|
|
1151
1097
|
*/
|
|
@@ -1178,8 +1124,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1178
1124
|
}),
|
|
1179
1125
|
/**
|
|
1180
1126
|
*
|
|
1181
|
-
* @summary Upload
|
|
1182
|
-
* @param {string} browserId
|
|
1127
|
+
* @summary Upload file to input
|
|
1128
|
+
* @param {string} browserId
|
|
1183
1129
|
* @param {UploadFileRequest} payload
|
|
1184
1130
|
* @param {*} [options] Override http request option.
|
|
1185
1131
|
* @throws {RequiredError}
|
|
@@ -1213,8 +1159,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1213
1159
|
}),
|
|
1214
1160
|
/**
|
|
1215
1161
|
*
|
|
1216
|
-
* @summary Wait for element to
|
|
1217
|
-
* @param {string} browserId
|
|
1162
|
+
* @summary Wait for element to be visible or hidden
|
|
1163
|
+
* @param {string} browserId
|
|
1218
1164
|
* @param {WaitElementRequest} payload
|
|
1219
1165
|
* @param {*} [options] Override http request option.
|
|
1220
1166
|
* @throws {RequiredError}
|
|
@@ -1248,8 +1194,8 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1248
1194
|
}),
|
|
1249
1195
|
/**
|
|
1250
1196
|
*
|
|
1251
|
-
* @summary
|
|
1252
|
-
* @param {string} browserId
|
|
1197
|
+
* @summary AI page analysis - what\'s visible
|
|
1198
|
+
* @param {string} browserId
|
|
1253
1199
|
* @param {*} [options] Override http request option.
|
|
1254
1200
|
* @throws {RequiredError}
|
|
1255
1201
|
*/
|
|
@@ -1264,7 +1210,7 @@ const BrowserApiAxiosParamCreator = function (configuration) {
|
|
|
1264
1210
|
if (configuration) {
|
|
1265
1211
|
baseOptions = configuration.baseOptions;
|
|
1266
1212
|
}
|
|
1267
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1213
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1268
1214
|
const localVarHeaderParameter = {};
|
|
1269
1215
|
const localVarQueryParameter = {};
|
|
1270
1216
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -1287,57 +1233,60 @@ const BrowserApiFp = function (configuration) {
|
|
|
1287
1233
|
return {
|
|
1288
1234
|
/**
|
|
1289
1235
|
*
|
|
1290
|
-
* @summary
|
|
1291
|
-
* @param {
|
|
1292
|
-
* @param {CheckElementRequest} payload
|
|
1236
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
1237
|
+
* @param {BrowsersRequest} payload
|
|
1293
1238
|
* @param {*} [options] Override http request option.
|
|
1294
1239
|
* @throws {RequiredError}
|
|
1295
1240
|
*/
|
|
1296
|
-
|
|
1241
|
+
browsers(payload, options) {
|
|
1297
1242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1298
1243
|
var _a, _b, _c;
|
|
1299
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.browsers(payload, options);
|
|
1300
1245
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1301
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1246
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.browsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1302
1247
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1303
1248
|
});
|
|
1304
1249
|
},
|
|
1305
1250
|
/**
|
|
1306
|
-
*
|
|
1307
|
-
* @summary
|
|
1308
|
-
* @param {string} browserId
|
|
1309
|
-
* @param {
|
|
1251
|
+
*
|
|
1252
|
+
* @summary Check if element exists or is visible
|
|
1253
|
+
* @param {string} browserId
|
|
1254
|
+
* @param {string} selector selector
|
|
1255
|
+
* @param {string} check check
|
|
1256
|
+
* @param {string} [by] by
|
|
1310
1257
|
* @param {*} [options] Override http request option.
|
|
1311
1258
|
* @throws {RequiredError}
|
|
1312
1259
|
*/
|
|
1313
|
-
|
|
1260
|
+
checkElement(browserId, selector, check, by, options) {
|
|
1314
1261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1315
1262
|
var _a, _b, _c;
|
|
1316
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1263
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkElement(browserId, selector, check, by, options);
|
|
1317
1264
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1318
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1265
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.checkElement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1319
1266
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1320
1267
|
});
|
|
1321
1268
|
},
|
|
1322
1269
|
/**
|
|
1323
|
-
*
|
|
1324
|
-
* @summary
|
|
1270
|
+
* Use if_visible=True to only click if visible.
|
|
1271
|
+
* @summary Click element
|
|
1272
|
+
* @param {string} browserId
|
|
1273
|
+
* @param {ClickRequest} payload
|
|
1325
1274
|
* @param {*} [options] Override http request option.
|
|
1326
1275
|
* @throws {RequiredError}
|
|
1327
1276
|
*/
|
|
1328
|
-
|
|
1277
|
+
click(browserId, payload, options) {
|
|
1329
1278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1330
1279
|
var _a, _b, _c;
|
|
1331
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.click(browserId, payload, options);
|
|
1332
1281
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1333
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1282
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.click']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1334
1283
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1335
1284
|
});
|
|
1336
1285
|
},
|
|
1337
1286
|
/**
|
|
1338
1287
|
*
|
|
1339
|
-
* @summary Close
|
|
1340
|
-
* @param {string} browserId
|
|
1288
|
+
* @summary Close browser instance
|
|
1289
|
+
* @param {string} browserId
|
|
1341
1290
|
* @param {*} [options] Override http request option.
|
|
1342
1291
|
* @throws {RequiredError}
|
|
1343
1292
|
*/
|
|
@@ -1352,8 +1301,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1352
1301
|
},
|
|
1353
1302
|
/**
|
|
1354
1303
|
*
|
|
1355
|
-
* @summary
|
|
1356
|
-
* @param {string} browserId
|
|
1304
|
+
* @summary Console logs: get or clear
|
|
1305
|
+
* @param {string} browserId
|
|
1357
1306
|
* @param {ConsoleLogsRequest} payload
|
|
1358
1307
|
* @param {*} [options] Override http request option.
|
|
1359
1308
|
* @throws {RequiredError}
|
|
@@ -1369,8 +1318,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1369
1318
|
},
|
|
1370
1319
|
/**
|
|
1371
1320
|
*
|
|
1372
|
-
* @summary Create
|
|
1373
|
-
* @param {
|
|
1321
|
+
* @summary Create browser instance with optional persistent profile
|
|
1322
|
+
* @param {CreateBrowserRequest} payload
|
|
1374
1323
|
* @param {*} [options] Override http request option.
|
|
1375
1324
|
* @throws {RequiredError}
|
|
1376
1325
|
*/
|
|
@@ -1384,25 +1333,9 @@ const BrowserApiFp = function (configuration) {
|
|
|
1384
1333
|
});
|
|
1385
1334
|
},
|
|
1386
1335
|
/**
|
|
1387
|
-
*
|
|
1388
|
-
* @summary
|
|
1389
|
-
* @param {string} browserId
|
|
1390
|
-
* @param {*} [options] Override http request option.
|
|
1391
|
-
* @throws {RequiredError}
|
|
1392
|
-
*/
|
|
1393
|
-
deleteBrowser(browserId, options) {
|
|
1394
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1395
|
-
var _a, _b, _c;
|
|
1396
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBrowser(browserId, options);
|
|
1397
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1398
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.deleteBrowser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1399
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1400
|
-
});
|
|
1401
|
-
},
|
|
1402
|
-
/**
|
|
1403
|
-
*
|
|
1404
|
-
* @summary Detect element coordinates using AI vision
|
|
1405
|
-
* @param {string} browserId Unique browser identifier
|
|
1336
|
+
* 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).
|
|
1337
|
+
* @summary Detect element coordinates using vision
|
|
1338
|
+
* @param {string} browserId
|
|
1406
1339
|
* @param {DetectCoordinatesRequest} payload
|
|
1407
1340
|
* @param {*} [options] Override http request option.
|
|
1408
1341
|
* @throws {RequiredError}
|
|
@@ -1418,9 +1351,9 @@ const BrowserApiFp = function (configuration) {
|
|
|
1418
1351
|
},
|
|
1419
1352
|
/**
|
|
1420
1353
|
*
|
|
1421
|
-
* @summary
|
|
1422
|
-
* @param {string} browserId
|
|
1423
|
-
* @param {
|
|
1354
|
+
* @summary Dialogs: get, accept, dismiss
|
|
1355
|
+
* @param {string} browserId
|
|
1356
|
+
* @param {DialogRequest} payload
|
|
1424
1357
|
* @param {*} [options] Override http request option.
|
|
1425
1358
|
* @throws {RequiredError}
|
|
1426
1359
|
*/
|
|
@@ -1435,9 +1368,9 @@ const BrowserApiFp = function (configuration) {
|
|
|
1435
1368
|
},
|
|
1436
1369
|
/**
|
|
1437
1370
|
*
|
|
1438
|
-
* @summary
|
|
1439
|
-
* @param {string} browserId
|
|
1440
|
-
* @param {
|
|
1371
|
+
* @summary Emulation: set, clear, list_devices
|
|
1372
|
+
* @param {string} browserId
|
|
1373
|
+
* @param {EmulateRequest} payload
|
|
1441
1374
|
* @param {*} [options] Override http request option.
|
|
1442
1375
|
* @throws {RequiredError}
|
|
1443
1376
|
*/
|
|
@@ -1453,8 +1386,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1453
1386
|
/**
|
|
1454
1387
|
*
|
|
1455
1388
|
* @summary Execute JavaScript
|
|
1456
|
-
* @param {string} browserId
|
|
1457
|
-
* @param {
|
|
1389
|
+
* @param {string} browserId
|
|
1390
|
+
* @param {ExecuteScriptRequest} payload
|
|
1458
1391
|
* @param {*} [options] Override http request option.
|
|
1459
1392
|
* @throws {RequiredError}
|
|
1460
1393
|
*/
|
|
@@ -1470,7 +1403,7 @@ const BrowserApiFp = function (configuration) {
|
|
|
1470
1403
|
/**
|
|
1471
1404
|
*
|
|
1472
1405
|
* @summary Fill multiple form fields
|
|
1473
|
-
* @param {string} browserId
|
|
1406
|
+
* @param {string} browserId
|
|
1474
1407
|
* @param {FillFormRequest} payload
|
|
1475
1408
|
* @param {*} [options] Override http request option.
|
|
1476
1409
|
* @throws {RequiredError}
|
|
@@ -1486,121 +1419,128 @@ const BrowserApiFp = function (configuration) {
|
|
|
1486
1419
|
},
|
|
1487
1420
|
/**
|
|
1488
1421
|
*
|
|
1489
|
-
* @summary Get
|
|
1490
|
-
* @param {string} browserId
|
|
1422
|
+
* @summary Get page HTML
|
|
1423
|
+
* @param {string} browserId
|
|
1491
1424
|
* @param {*} [options] Override http request option.
|
|
1492
1425
|
* @throws {RequiredError}
|
|
1493
1426
|
*/
|
|
1494
|
-
|
|
1427
|
+
getContent(browserId, options) {
|
|
1495
1428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1496
1429
|
var _a, _b, _c;
|
|
1497
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1430
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContent(browserId, options);
|
|
1498
1431
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1499
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1432
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1500
1433
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1501
1434
|
});
|
|
1502
1435
|
},
|
|
1503
1436
|
/**
|
|
1504
1437
|
*
|
|
1505
|
-
* @summary Get
|
|
1506
|
-
* @param {string} browserId
|
|
1438
|
+
* @summary Get element text, attribute, or property
|
|
1439
|
+
* @param {string} browserId
|
|
1440
|
+
* @param {string} selector selector
|
|
1441
|
+
* @param {string} dataType data_type
|
|
1442
|
+
* @param {string} [name] name
|
|
1443
|
+
* @param {string} [by] by
|
|
1507
1444
|
* @param {*} [options] Override http request option.
|
|
1508
1445
|
* @throws {RequiredError}
|
|
1509
1446
|
*/
|
|
1510
|
-
|
|
1447
|
+
getElementData(browserId, selector, dataType, name, by, options) {
|
|
1511
1448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1512
1449
|
var _a, _b, _c;
|
|
1513
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1450
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getElementData(browserId, selector, dataType, name, by, options);
|
|
1514
1451
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1515
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1452
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getElementData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1516
1453
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1517
1454
|
});
|
|
1518
1455
|
},
|
|
1519
1456
|
/**
|
|
1520
1457
|
*
|
|
1521
|
-
* @summary Get
|
|
1522
|
-
* @param {string} browserId
|
|
1458
|
+
* @summary Get current URL
|
|
1459
|
+
* @param {string} browserId
|
|
1523
1460
|
* @param {*} [options] Override http request option.
|
|
1524
1461
|
* @throws {RequiredError}
|
|
1525
1462
|
*/
|
|
1526
|
-
|
|
1463
|
+
getUrl(browserId, options) {
|
|
1527
1464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1528
1465
|
var _a, _b, _c;
|
|
1529
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1466
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUrl(browserId, options);
|
|
1530
1467
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1531
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1468
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.getUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1532
1469
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1533
1470
|
});
|
|
1534
1471
|
},
|
|
1535
1472
|
/**
|
|
1536
1473
|
*
|
|
1537
|
-
* @summary
|
|
1538
|
-
* @param {string} browserId
|
|
1539
|
-
* @param {
|
|
1474
|
+
* @summary GUI click by selector or coordinates
|
|
1475
|
+
* @param {string} browserId
|
|
1476
|
+
* @param {GuiClickRequest} payload
|
|
1540
1477
|
* @param {*} [options] Override http request option.
|
|
1541
1478
|
* @throws {RequiredError}
|
|
1542
1479
|
*/
|
|
1543
|
-
|
|
1480
|
+
guiClick(browserId, payload, options) {
|
|
1544
1481
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1545
1482
|
var _a, _b, _c;
|
|
1546
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1483
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.guiClick(browserId, payload, options);
|
|
1547
1484
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1548
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1485
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.guiClick']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1549
1486
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1550
1487
|
});
|
|
1551
1488
|
},
|
|
1552
1489
|
/**
|
|
1553
1490
|
*
|
|
1554
|
-
* @summary
|
|
1491
|
+
* @summary GUI hover at coordinates
|
|
1492
|
+
* @param {string} browserId
|
|
1493
|
+
* @param {GuiHoverXyRequest} payload
|
|
1555
1494
|
* @param {*} [options] Override http request option.
|
|
1556
1495
|
* @throws {RequiredError}
|
|
1557
1496
|
*/
|
|
1558
|
-
|
|
1497
|
+
guiHoverXy(browserId, payload, options) {
|
|
1559
1498
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1560
1499
|
var _a, _b, _c;
|
|
1561
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1500
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.guiHoverXy(browserId, payload, options);
|
|
1562
1501
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1563
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1502
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.guiHoverXy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1564
1503
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1565
1504
|
});
|
|
1566
1505
|
},
|
|
1567
1506
|
/**
|
|
1568
1507
|
*
|
|
1569
|
-
* @summary
|
|
1570
|
-
* @param {string} browserId
|
|
1508
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
1509
|
+
* @param {string} browserId
|
|
1510
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
1571
1511
|
* @param {*} [options] Override http request option.
|
|
1572
1512
|
* @throws {RequiredError}
|
|
1573
1513
|
*/
|
|
1574
|
-
|
|
1514
|
+
guiPressKeysXy(browserId, payload, options) {
|
|
1575
1515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1576
1516
|
var _a, _b, _c;
|
|
1577
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1517
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.guiPressKeysXy(browserId, payload, options);
|
|
1578
1518
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1579
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1519
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.guiPressKeysXy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1580
1520
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1581
1521
|
});
|
|
1582
1522
|
},
|
|
1583
1523
|
/**
|
|
1584
1524
|
*
|
|
1585
|
-
* @summary
|
|
1586
|
-
* @param {string} browserId
|
|
1587
|
-
* @param {
|
|
1525
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
1526
|
+
* @param {string} browserId
|
|
1527
|
+
* @param {GuiTypeXyRequest} payload
|
|
1588
1528
|
* @param {*} [options] Override http request option.
|
|
1589
1529
|
* @throws {RequiredError}
|
|
1590
1530
|
*/
|
|
1591
|
-
|
|
1531
|
+
guiTypeXy(browserId, payload, options) {
|
|
1592
1532
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1593
1533
|
var _a, _b, _c;
|
|
1594
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.guiTypeXy(browserId, payload, options);
|
|
1595
1535
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1596
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1536
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.guiTypeXy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1597
1537
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1598
1538
|
});
|
|
1599
1539
|
},
|
|
1600
1540
|
/**
|
|
1601
1541
|
*
|
|
1602
|
-
* @summary
|
|
1603
|
-
* @param {string} browserId
|
|
1542
|
+
* @summary History: back, forward, or refresh
|
|
1543
|
+
* @param {string} browserId
|
|
1604
1544
|
* @param {HistoryRequest} payload
|
|
1605
1545
|
* @param {*} [options] Override http request option.
|
|
1606
1546
|
* @throws {RequiredError}
|
|
@@ -1616,23 +1556,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1616
1556
|
},
|
|
1617
1557
|
/**
|
|
1618
1558
|
*
|
|
1619
|
-
* @summary
|
|
1620
|
-
* @param {
|
|
1621
|
-
* @throws {RequiredError}
|
|
1622
|
-
*/
|
|
1623
|
-
listBrowsers(options) {
|
|
1624
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1625
|
-
var _a, _b, _c;
|
|
1626
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listBrowsers(options);
|
|
1627
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1628
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.listBrowsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1629
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1630
|
-
});
|
|
1631
|
-
},
|
|
1632
|
-
/**
|
|
1633
|
-
*
|
|
1634
|
-
* @summary Mouse action: hover or drag
|
|
1635
|
-
* @param {string} browserId Unique browser identifier
|
|
1559
|
+
* @summary Mouse: hover or drag
|
|
1560
|
+
* @param {string} browserId
|
|
1636
1561
|
* @param {MouseRequest} payload
|
|
1637
1562
|
* @param {*} [options] Override http request option.
|
|
1638
1563
|
* @throws {RequiredError}
|
|
@@ -1648,9 +1573,9 @@ const BrowserApiFp = function (configuration) {
|
|
|
1648
1573
|
},
|
|
1649
1574
|
/**
|
|
1650
1575
|
*
|
|
1651
|
-
* @summary Navigate to
|
|
1652
|
-
* @param {string} browserId
|
|
1653
|
-
* @param {
|
|
1576
|
+
* @summary Navigate to URL
|
|
1577
|
+
* @param {string} browserId
|
|
1578
|
+
* @param {NavigateBrowserRequest} payload
|
|
1654
1579
|
* @param {*} [options] Override http request option.
|
|
1655
1580
|
* @throws {RequiredError}
|
|
1656
1581
|
*/
|
|
@@ -1665,8 +1590,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1665
1590
|
},
|
|
1666
1591
|
/**
|
|
1667
1592
|
*
|
|
1668
|
-
* @summary
|
|
1669
|
-
* @param {string} browserId
|
|
1593
|
+
* @summary Network logs: get or clear
|
|
1594
|
+
* @param {string} browserId
|
|
1670
1595
|
* @param {NetworkLogsRequest} payload
|
|
1671
1596
|
* @param {*} [options] Override http request option.
|
|
1672
1597
|
* @throws {RequiredError}
|
|
@@ -1682,8 +1607,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1682
1607
|
},
|
|
1683
1608
|
/**
|
|
1684
1609
|
*
|
|
1685
|
-
* @summary
|
|
1686
|
-
* @param {string} browserId
|
|
1610
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
1611
|
+
* @param {string} browserId
|
|
1687
1612
|
* @param {PerformanceRequest} payload
|
|
1688
1613
|
* @param {*} [options] Override http request option.
|
|
1689
1614
|
* @throws {RequiredError}
|
|
@@ -1699,8 +1624,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1699
1624
|
},
|
|
1700
1625
|
/**
|
|
1701
1626
|
*
|
|
1702
|
-
* @summary Press keys
|
|
1703
|
-
* @param {string} browserId
|
|
1627
|
+
* @summary Press keyboard keys
|
|
1628
|
+
* @param {string} browserId
|
|
1704
1629
|
* @param {PressKeysRequest} payload
|
|
1705
1630
|
* @param {*} [options] Override http request option.
|
|
1706
1631
|
* @throws {RequiredError}
|
|
@@ -1717,7 +1642,7 @@ const BrowserApiFp = function (configuration) {
|
|
|
1717
1642
|
/**
|
|
1718
1643
|
*
|
|
1719
1644
|
* @summary Resize viewport
|
|
1720
|
-
* @param {string} browserId
|
|
1645
|
+
* @param {string} browserId
|
|
1721
1646
|
* @param {ResizeRequest} payload
|
|
1722
1647
|
* @param {*} [options] Override http request option.
|
|
1723
1648
|
* @throws {RequiredError}
|
|
@@ -1733,9 +1658,9 @@ const BrowserApiFp = function (configuration) {
|
|
|
1733
1658
|
},
|
|
1734
1659
|
/**
|
|
1735
1660
|
*
|
|
1736
|
-
* @summary Scroll to element/
|
|
1737
|
-
* @param {string} browserId
|
|
1738
|
-
* @param {
|
|
1661
|
+
* @summary Scroll to element/coords or by delta
|
|
1662
|
+
* @param {string} browserId
|
|
1663
|
+
* @param {ScrollRequest} payload
|
|
1739
1664
|
* @param {*} [options] Override http request option.
|
|
1740
1665
|
* @throws {RequiredError}
|
|
1741
1666
|
*/
|
|
@@ -1751,7 +1676,7 @@ const BrowserApiFp = function (configuration) {
|
|
|
1751
1676
|
/**
|
|
1752
1677
|
*
|
|
1753
1678
|
* @summary Select dropdown: select option or get options
|
|
1754
|
-
* @param {string} browserId
|
|
1679
|
+
* @param {string} browserId
|
|
1755
1680
|
* @param {SelectRequest} payload
|
|
1756
1681
|
* @param {*} [options] Override http request option.
|
|
1757
1682
|
* @throws {RequiredError}
|
|
@@ -1767,59 +1692,60 @@ const BrowserApiFp = function (configuration) {
|
|
|
1767
1692
|
},
|
|
1768
1693
|
/**
|
|
1769
1694
|
*
|
|
1770
|
-
* @summary
|
|
1771
|
-
* @param {string} browserId
|
|
1772
|
-
* @param {
|
|
1695
|
+
* @summary DOM or accessibility snapshot
|
|
1696
|
+
* @param {string} browserId
|
|
1697
|
+
* @param {SnapshotRequest} payload
|
|
1773
1698
|
* @param {*} [options] Override http request option.
|
|
1774
1699
|
* @throws {RequiredError}
|
|
1775
1700
|
*/
|
|
1776
|
-
|
|
1701
|
+
snapshot(browserId, payload, options) {
|
|
1777
1702
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1778
1703
|
var _a, _b, _c;
|
|
1779
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1704
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.snapshot(browserId, payload, options);
|
|
1780
1705
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1781
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1706
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.snapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1782
1707
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1783
1708
|
});
|
|
1784
1709
|
},
|
|
1785
1710
|
/**
|
|
1786
1711
|
*
|
|
1787
|
-
* @summary
|
|
1788
|
-
* @param {string} browserId
|
|
1712
|
+
* @summary Tabs: list, new, switch, close, current
|
|
1713
|
+
* @param {string} browserId
|
|
1714
|
+
* @param {TabsRequest} payload
|
|
1789
1715
|
* @param {*} [options] Override http request option.
|
|
1790
1716
|
* @throws {RequiredError}
|
|
1791
1717
|
*/
|
|
1792
|
-
|
|
1718
|
+
tabs(browserId, payload, options) {
|
|
1793
1719
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1794
1720
|
var _a, _b, _c;
|
|
1795
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1721
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tabs(browserId, payload, options);
|
|
1796
1722
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1797
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1723
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.tabs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1798
1724
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1799
1725
|
});
|
|
1800
1726
|
},
|
|
1801
1727
|
/**
|
|
1802
1728
|
*
|
|
1803
|
-
* @summary Take
|
|
1804
|
-
* @param {string} browserId
|
|
1805
|
-
* @param {
|
|
1729
|
+
* @summary Take screenshot
|
|
1730
|
+
* @param {string} browserId
|
|
1731
|
+
* @param {TakeScreenshotRequest} payload
|
|
1806
1732
|
* @param {*} [options] Override http request option.
|
|
1807
1733
|
* @throws {RequiredError}
|
|
1808
1734
|
*/
|
|
1809
|
-
|
|
1735
|
+
takeScreenshot(browserId, payload, options) {
|
|
1810
1736
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1811
1737
|
var _a, _b, _c;
|
|
1812
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1738
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.takeScreenshot(browserId, payload, options);
|
|
1813
1739
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1814
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.
|
|
1740
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BrowserApi.takeScreenshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1815
1741
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1816
1742
|
});
|
|
1817
1743
|
},
|
|
1818
1744
|
/**
|
|
1819
1745
|
*
|
|
1820
|
-
* @summary Type text into
|
|
1821
|
-
* @param {string} browserId
|
|
1822
|
-
* @param {
|
|
1746
|
+
* @summary Type text into element
|
|
1747
|
+
* @param {string} browserId
|
|
1748
|
+
* @param {TypeTextRequest} payload
|
|
1823
1749
|
* @param {*} [options] Override http request option.
|
|
1824
1750
|
* @throws {RequiredError}
|
|
1825
1751
|
*/
|
|
@@ -1834,8 +1760,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1834
1760
|
},
|
|
1835
1761
|
/**
|
|
1836
1762
|
*
|
|
1837
|
-
* @summary Upload
|
|
1838
|
-
* @param {string} browserId
|
|
1763
|
+
* @summary Upload file to input
|
|
1764
|
+
* @param {string} browserId
|
|
1839
1765
|
* @param {UploadFileRequest} payload
|
|
1840
1766
|
* @param {*} [options] Override http request option.
|
|
1841
1767
|
* @throws {RequiredError}
|
|
@@ -1851,8 +1777,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1851
1777
|
},
|
|
1852
1778
|
/**
|
|
1853
1779
|
*
|
|
1854
|
-
* @summary Wait for element to
|
|
1855
|
-
* @param {string} browserId
|
|
1780
|
+
* @summary Wait for element to be visible or hidden
|
|
1781
|
+
* @param {string} browserId
|
|
1856
1782
|
* @param {WaitElementRequest} payload
|
|
1857
1783
|
* @param {*} [options] Override http request option.
|
|
1858
1784
|
* @throws {RequiredError}
|
|
@@ -1868,8 +1794,8 @@ const BrowserApiFp = function (configuration) {
|
|
|
1868
1794
|
},
|
|
1869
1795
|
/**
|
|
1870
1796
|
*
|
|
1871
|
-
* @summary
|
|
1872
|
-
* @param {string} browserId
|
|
1797
|
+
* @summary AI page analysis - what\'s visible
|
|
1798
|
+
* @param {string} browserId
|
|
1873
1799
|
* @param {*} [options] Override http request option.
|
|
1874
1800
|
* @throws {RequiredError}
|
|
1875
1801
|
*/
|
|
@@ -1893,39 +1819,42 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
1893
1819
|
return {
|
|
1894
1820
|
/**
|
|
1895
1821
|
*
|
|
1896
|
-
* @summary
|
|
1897
|
-
* @param {
|
|
1898
|
-
* @param {CheckElementRequest} payload
|
|
1822
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
1823
|
+
* @param {BrowsersRequest} payload
|
|
1899
1824
|
* @param {*} [options] Override http request option.
|
|
1900
1825
|
* @throws {RequiredError}
|
|
1901
1826
|
*/
|
|
1902
|
-
|
|
1903
|
-
return localVarFp.
|
|
1827
|
+
browsers(payload, options) {
|
|
1828
|
+
return localVarFp.browsers(payload, options).then((request) => request(axios, basePath));
|
|
1904
1829
|
},
|
|
1905
1830
|
/**
|
|
1906
|
-
*
|
|
1907
|
-
* @summary
|
|
1908
|
-
* @param {string} browserId
|
|
1909
|
-
* @param {
|
|
1831
|
+
*
|
|
1832
|
+
* @summary Check if element exists or is visible
|
|
1833
|
+
* @param {string} browserId
|
|
1834
|
+
* @param {string} selector selector
|
|
1835
|
+
* @param {string} check check
|
|
1836
|
+
* @param {string} [by] by
|
|
1910
1837
|
* @param {*} [options] Override http request option.
|
|
1911
1838
|
* @throws {RequiredError}
|
|
1912
1839
|
*/
|
|
1913
|
-
|
|
1914
|
-
return localVarFp.
|
|
1840
|
+
checkElement(browserId, selector, check, by, options) {
|
|
1841
|
+
return localVarFp.checkElement(browserId, selector, check, by, options).then((request) => request(axios, basePath));
|
|
1915
1842
|
},
|
|
1916
1843
|
/**
|
|
1917
|
-
*
|
|
1918
|
-
* @summary
|
|
1844
|
+
* Use if_visible=True to only click if visible.
|
|
1845
|
+
* @summary Click element
|
|
1846
|
+
* @param {string} browserId
|
|
1847
|
+
* @param {ClickRequest} payload
|
|
1919
1848
|
* @param {*} [options] Override http request option.
|
|
1920
1849
|
* @throws {RequiredError}
|
|
1921
1850
|
*/
|
|
1922
|
-
|
|
1923
|
-
return localVarFp.
|
|
1851
|
+
click(browserId, payload, options) {
|
|
1852
|
+
return localVarFp.click(browserId, payload, options).then((request) => request(axios, basePath));
|
|
1924
1853
|
},
|
|
1925
1854
|
/**
|
|
1926
1855
|
*
|
|
1927
|
-
* @summary Close
|
|
1928
|
-
* @param {string} browserId
|
|
1856
|
+
* @summary Close browser instance
|
|
1857
|
+
* @param {string} browserId
|
|
1929
1858
|
* @param {*} [options] Override http request option.
|
|
1930
1859
|
* @throws {RequiredError}
|
|
1931
1860
|
*/
|
|
@@ -1934,8 +1863,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
1934
1863
|
},
|
|
1935
1864
|
/**
|
|
1936
1865
|
*
|
|
1937
|
-
* @summary
|
|
1938
|
-
* @param {string} browserId
|
|
1866
|
+
* @summary Console logs: get or clear
|
|
1867
|
+
* @param {string} browserId
|
|
1939
1868
|
* @param {ConsoleLogsRequest} payload
|
|
1940
1869
|
* @param {*} [options] Override http request option.
|
|
1941
1870
|
* @throws {RequiredError}
|
|
@@ -1945,8 +1874,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
1945
1874
|
},
|
|
1946
1875
|
/**
|
|
1947
1876
|
*
|
|
1948
|
-
* @summary Create
|
|
1949
|
-
* @param {
|
|
1877
|
+
* @summary Create browser instance with optional persistent profile
|
|
1878
|
+
* @param {CreateBrowserRequest} payload
|
|
1950
1879
|
* @param {*} [options] Override http request option.
|
|
1951
1880
|
* @throws {RequiredError}
|
|
1952
1881
|
*/
|
|
@@ -1954,19 +1883,9 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
1954
1883
|
return localVarFp.createBrowser(payload, options).then((request) => request(axios, basePath));
|
|
1955
1884
|
},
|
|
1956
1885
|
/**
|
|
1957
|
-
*
|
|
1958
|
-
* @summary
|
|
1959
|
-
* @param {string} browserId
|
|
1960
|
-
* @param {*} [options] Override http request option.
|
|
1961
|
-
* @throws {RequiredError}
|
|
1962
|
-
*/
|
|
1963
|
-
deleteBrowser(browserId, options) {
|
|
1964
|
-
return localVarFp.deleteBrowser(browserId, options).then((request) => request(axios, basePath));
|
|
1965
|
-
},
|
|
1966
|
-
/**
|
|
1967
|
-
*
|
|
1968
|
-
* @summary Detect element coordinates using AI vision
|
|
1969
|
-
* @param {string} browserId Unique browser identifier
|
|
1886
|
+
* 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).
|
|
1887
|
+
* @summary Detect element coordinates using vision
|
|
1888
|
+
* @param {string} browserId
|
|
1970
1889
|
* @param {DetectCoordinatesRequest} payload
|
|
1971
1890
|
* @param {*} [options] Override http request option.
|
|
1972
1891
|
* @throws {RequiredError}
|
|
@@ -1976,9 +1895,9 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
1976
1895
|
},
|
|
1977
1896
|
/**
|
|
1978
1897
|
*
|
|
1979
|
-
* @summary
|
|
1980
|
-
* @param {string} browserId
|
|
1981
|
-
* @param {
|
|
1898
|
+
* @summary Dialogs: get, accept, dismiss
|
|
1899
|
+
* @param {string} browserId
|
|
1900
|
+
* @param {DialogRequest} payload
|
|
1982
1901
|
* @param {*} [options] Override http request option.
|
|
1983
1902
|
* @throws {RequiredError}
|
|
1984
1903
|
*/
|
|
@@ -1987,9 +1906,9 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
1987
1906
|
},
|
|
1988
1907
|
/**
|
|
1989
1908
|
*
|
|
1990
|
-
* @summary
|
|
1991
|
-
* @param {string} browserId
|
|
1992
|
-
* @param {
|
|
1909
|
+
* @summary Emulation: set, clear, list_devices
|
|
1910
|
+
* @param {string} browserId
|
|
1911
|
+
* @param {EmulateRequest} payload
|
|
1993
1912
|
* @param {*} [options] Override http request option.
|
|
1994
1913
|
* @throws {RequiredError}
|
|
1995
1914
|
*/
|
|
@@ -1999,8 +1918,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
1999
1918
|
/**
|
|
2000
1919
|
*
|
|
2001
1920
|
* @summary Execute JavaScript
|
|
2002
|
-
* @param {string} browserId
|
|
2003
|
-
* @param {
|
|
1921
|
+
* @param {string} browserId
|
|
1922
|
+
* @param {ExecuteScriptRequest} payload
|
|
2004
1923
|
* @param {*} [options] Override http request option.
|
|
2005
1924
|
* @throws {RequiredError}
|
|
2006
1925
|
*/
|
|
@@ -2010,7 +1929,7 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2010
1929
|
/**
|
|
2011
1930
|
*
|
|
2012
1931
|
* @summary Fill multiple form fields
|
|
2013
|
-
* @param {string} browserId
|
|
1932
|
+
* @param {string} browserId
|
|
2014
1933
|
* @param {FillFormRequest} payload
|
|
2015
1934
|
* @param {*} [options] Override http request option.
|
|
2016
1935
|
* @throws {RequiredError}
|
|
@@ -2020,79 +1939,86 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2020
1939
|
},
|
|
2021
1940
|
/**
|
|
2022
1941
|
*
|
|
2023
|
-
* @summary Get
|
|
2024
|
-
* @param {string} browserId
|
|
1942
|
+
* @summary Get page HTML
|
|
1943
|
+
* @param {string} browserId
|
|
2025
1944
|
* @param {*} [options] Override http request option.
|
|
2026
1945
|
* @throws {RequiredError}
|
|
2027
1946
|
*/
|
|
2028
|
-
|
|
2029
|
-
return localVarFp.
|
|
1947
|
+
getContent(browserId, options) {
|
|
1948
|
+
return localVarFp.getContent(browserId, options).then((request) => request(axios, basePath));
|
|
2030
1949
|
},
|
|
2031
1950
|
/**
|
|
2032
1951
|
*
|
|
2033
|
-
* @summary Get
|
|
2034
|
-
* @param {string} browserId
|
|
1952
|
+
* @summary Get element text, attribute, or property
|
|
1953
|
+
* @param {string} browserId
|
|
1954
|
+
* @param {string} selector selector
|
|
1955
|
+
* @param {string} dataType data_type
|
|
1956
|
+
* @param {string} [name] name
|
|
1957
|
+
* @param {string} [by] by
|
|
2035
1958
|
* @param {*} [options] Override http request option.
|
|
2036
1959
|
* @throws {RequiredError}
|
|
2037
1960
|
*/
|
|
2038
|
-
|
|
2039
|
-
return localVarFp.
|
|
1961
|
+
getElementData(browserId, selector, dataType, name, by, options) {
|
|
1962
|
+
return localVarFp.getElementData(browserId, selector, dataType, name, by, options).then((request) => request(axios, basePath));
|
|
2040
1963
|
},
|
|
2041
1964
|
/**
|
|
2042
1965
|
*
|
|
2043
|
-
* @summary Get
|
|
2044
|
-
* @param {string} browserId
|
|
1966
|
+
* @summary Get current URL
|
|
1967
|
+
* @param {string} browserId
|
|
2045
1968
|
* @param {*} [options] Override http request option.
|
|
2046
1969
|
* @throws {RequiredError}
|
|
2047
1970
|
*/
|
|
2048
|
-
|
|
2049
|
-
return localVarFp.
|
|
1971
|
+
getUrl(browserId, options) {
|
|
1972
|
+
return localVarFp.getUrl(browserId, options).then((request) => request(axios, basePath));
|
|
2050
1973
|
},
|
|
2051
1974
|
/**
|
|
2052
1975
|
*
|
|
2053
|
-
* @summary
|
|
2054
|
-
* @param {string} browserId
|
|
2055
|
-
* @param {
|
|
1976
|
+
* @summary GUI click by selector or coordinates
|
|
1977
|
+
* @param {string} browserId
|
|
1978
|
+
* @param {GuiClickRequest} payload
|
|
2056
1979
|
* @param {*} [options] Override http request option.
|
|
2057
1980
|
* @throws {RequiredError}
|
|
2058
1981
|
*/
|
|
2059
|
-
|
|
2060
|
-
return localVarFp.
|
|
1982
|
+
guiClick(browserId, payload, options) {
|
|
1983
|
+
return localVarFp.guiClick(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2061
1984
|
},
|
|
2062
1985
|
/**
|
|
2063
1986
|
*
|
|
2064
|
-
* @summary
|
|
1987
|
+
* @summary GUI hover at coordinates
|
|
1988
|
+
* @param {string} browserId
|
|
1989
|
+
* @param {GuiHoverXyRequest} payload
|
|
2065
1990
|
* @param {*} [options] Override http request option.
|
|
2066
1991
|
* @throws {RequiredError}
|
|
2067
1992
|
*/
|
|
2068
|
-
|
|
2069
|
-
return localVarFp.
|
|
1993
|
+
guiHoverXy(browserId, payload, options) {
|
|
1994
|
+
return localVarFp.guiHoverXy(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2070
1995
|
},
|
|
2071
1996
|
/**
|
|
2072
1997
|
*
|
|
2073
|
-
* @summary
|
|
2074
|
-
* @param {string} browserId
|
|
1998
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
1999
|
+
* @param {string} browserId
|
|
2000
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
2075
2001
|
* @param {*} [options] Override http request option.
|
|
2076
2002
|
* @throws {RequiredError}
|
|
2077
2003
|
*/
|
|
2078
|
-
|
|
2079
|
-
return localVarFp.
|
|
2004
|
+
guiPressKeysXy(browserId, payload, options) {
|
|
2005
|
+
return localVarFp.guiPressKeysXy(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2080
2006
|
},
|
|
2081
2007
|
/**
|
|
2082
2008
|
*
|
|
2083
|
-
* @summary
|
|
2084
|
-
* @param {string} browserId
|
|
2085
|
-
* @param {
|
|
2009
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
2010
|
+
* @param {string} browserId
|
|
2011
|
+
* @param {GuiTypeXyRequest} payload
|
|
2086
2012
|
* @param {*} [options] Override http request option.
|
|
2087
2013
|
* @throws {RequiredError}
|
|
2088
2014
|
*/
|
|
2089
|
-
|
|
2090
|
-
return localVarFp.
|
|
2015
|
+
guiTypeXy(browserId, payload, options) {
|
|
2016
|
+
return localVarFp.guiTypeXy(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2091
2017
|
},
|
|
2092
2018
|
/**
|
|
2093
2019
|
*
|
|
2094
|
-
* @summary
|
|
2095
|
-
* @param {string} browserId
|
|
2020
|
+
* @summary History: back, forward, or refresh
|
|
2021
|
+
* @param {string} browserId
|
|
2096
2022
|
* @param {HistoryRequest} payload
|
|
2097
2023
|
* @param {*} [options] Override http request option.
|
|
2098
2024
|
* @throws {RequiredError}
|
|
@@ -2102,17 +2028,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2102
2028
|
},
|
|
2103
2029
|
/**
|
|
2104
2030
|
*
|
|
2105
|
-
* @summary
|
|
2106
|
-
* @param {
|
|
2107
|
-
* @throws {RequiredError}
|
|
2108
|
-
*/
|
|
2109
|
-
listBrowsers(options) {
|
|
2110
|
-
return localVarFp.listBrowsers(options).then((request) => request(axios, basePath));
|
|
2111
|
-
},
|
|
2112
|
-
/**
|
|
2113
|
-
*
|
|
2114
|
-
* @summary Mouse action: hover or drag
|
|
2115
|
-
* @param {string} browserId Unique browser identifier
|
|
2031
|
+
* @summary Mouse: hover or drag
|
|
2032
|
+
* @param {string} browserId
|
|
2116
2033
|
* @param {MouseRequest} payload
|
|
2117
2034
|
* @param {*} [options] Override http request option.
|
|
2118
2035
|
* @throws {RequiredError}
|
|
@@ -2122,9 +2039,9 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2122
2039
|
},
|
|
2123
2040
|
/**
|
|
2124
2041
|
*
|
|
2125
|
-
* @summary Navigate to
|
|
2126
|
-
* @param {string} browserId
|
|
2127
|
-
* @param {
|
|
2042
|
+
* @summary Navigate to URL
|
|
2043
|
+
* @param {string} browserId
|
|
2044
|
+
* @param {NavigateBrowserRequest} payload
|
|
2128
2045
|
* @param {*} [options] Override http request option.
|
|
2129
2046
|
* @throws {RequiredError}
|
|
2130
2047
|
*/
|
|
@@ -2133,8 +2050,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2133
2050
|
},
|
|
2134
2051
|
/**
|
|
2135
2052
|
*
|
|
2136
|
-
* @summary
|
|
2137
|
-
* @param {string} browserId
|
|
2053
|
+
* @summary Network logs: get or clear
|
|
2054
|
+
* @param {string} browserId
|
|
2138
2055
|
* @param {NetworkLogsRequest} payload
|
|
2139
2056
|
* @param {*} [options] Override http request option.
|
|
2140
2057
|
* @throws {RequiredError}
|
|
@@ -2144,8 +2061,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2144
2061
|
},
|
|
2145
2062
|
/**
|
|
2146
2063
|
*
|
|
2147
|
-
* @summary
|
|
2148
|
-
* @param {string} browserId
|
|
2064
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
2065
|
+
* @param {string} browserId
|
|
2149
2066
|
* @param {PerformanceRequest} payload
|
|
2150
2067
|
* @param {*} [options] Override http request option.
|
|
2151
2068
|
* @throws {RequiredError}
|
|
@@ -2155,8 +2072,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2155
2072
|
},
|
|
2156
2073
|
/**
|
|
2157
2074
|
*
|
|
2158
|
-
* @summary Press keys
|
|
2159
|
-
* @param {string} browserId
|
|
2075
|
+
* @summary Press keyboard keys
|
|
2076
|
+
* @param {string} browserId
|
|
2160
2077
|
* @param {PressKeysRequest} payload
|
|
2161
2078
|
* @param {*} [options] Override http request option.
|
|
2162
2079
|
* @throws {RequiredError}
|
|
@@ -2167,7 +2084,7 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2167
2084
|
/**
|
|
2168
2085
|
*
|
|
2169
2086
|
* @summary Resize viewport
|
|
2170
|
-
* @param {string} browserId
|
|
2087
|
+
* @param {string} browserId
|
|
2171
2088
|
* @param {ResizeRequest} payload
|
|
2172
2089
|
* @param {*} [options] Override http request option.
|
|
2173
2090
|
* @throws {RequiredError}
|
|
@@ -2177,9 +2094,9 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2177
2094
|
},
|
|
2178
2095
|
/**
|
|
2179
2096
|
*
|
|
2180
|
-
* @summary Scroll to element/
|
|
2181
|
-
* @param {string} browserId
|
|
2182
|
-
* @param {
|
|
2097
|
+
* @summary Scroll to element/coords or by delta
|
|
2098
|
+
* @param {string} browserId
|
|
2099
|
+
* @param {ScrollRequest} payload
|
|
2183
2100
|
* @param {*} [options] Override http request option.
|
|
2184
2101
|
* @throws {RequiredError}
|
|
2185
2102
|
*/
|
|
@@ -2189,7 +2106,7 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2189
2106
|
/**
|
|
2190
2107
|
*
|
|
2191
2108
|
* @summary Select dropdown: select option or get options
|
|
2192
|
-
* @param {string} browserId
|
|
2109
|
+
* @param {string} browserId
|
|
2193
2110
|
* @param {SelectRequest} payload
|
|
2194
2111
|
* @param {*} [options] Override http request option.
|
|
2195
2112
|
* @throws {RequiredError}
|
|
@@ -2199,41 +2116,42 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2199
2116
|
},
|
|
2200
2117
|
/**
|
|
2201
2118
|
*
|
|
2202
|
-
* @summary
|
|
2203
|
-
* @param {string} browserId
|
|
2204
|
-
* @param {
|
|
2119
|
+
* @summary DOM or accessibility snapshot
|
|
2120
|
+
* @param {string} browserId
|
|
2121
|
+
* @param {SnapshotRequest} payload
|
|
2205
2122
|
* @param {*} [options] Override http request option.
|
|
2206
2123
|
* @throws {RequiredError}
|
|
2207
2124
|
*/
|
|
2208
|
-
|
|
2209
|
-
return localVarFp.
|
|
2125
|
+
snapshot(browserId, payload, options) {
|
|
2126
|
+
return localVarFp.snapshot(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2210
2127
|
},
|
|
2211
2128
|
/**
|
|
2212
2129
|
*
|
|
2213
|
-
* @summary
|
|
2214
|
-
* @param {string} browserId
|
|
2130
|
+
* @summary Tabs: list, new, switch, close, current
|
|
2131
|
+
* @param {string} browserId
|
|
2132
|
+
* @param {TabsRequest} payload
|
|
2215
2133
|
* @param {*} [options] Override http request option.
|
|
2216
2134
|
* @throws {RequiredError}
|
|
2217
2135
|
*/
|
|
2218
|
-
|
|
2219
|
-
return localVarFp.
|
|
2136
|
+
tabs(browserId, payload, options) {
|
|
2137
|
+
return localVarFp.tabs(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2220
2138
|
},
|
|
2221
2139
|
/**
|
|
2222
2140
|
*
|
|
2223
|
-
* @summary Take
|
|
2224
|
-
* @param {string} browserId
|
|
2225
|
-
* @param {
|
|
2141
|
+
* @summary Take screenshot
|
|
2142
|
+
* @param {string} browserId
|
|
2143
|
+
* @param {TakeScreenshotRequest} payload
|
|
2226
2144
|
* @param {*} [options] Override http request option.
|
|
2227
2145
|
* @throws {RequiredError}
|
|
2228
2146
|
*/
|
|
2229
|
-
|
|
2230
|
-
return localVarFp.
|
|
2147
|
+
takeScreenshot(browserId, payload, options) {
|
|
2148
|
+
return localVarFp.takeScreenshot(browserId, payload, options).then((request) => request(axios, basePath));
|
|
2231
2149
|
},
|
|
2232
2150
|
/**
|
|
2233
2151
|
*
|
|
2234
|
-
* @summary Type text into
|
|
2235
|
-
* @param {string} browserId
|
|
2236
|
-
* @param {
|
|
2152
|
+
* @summary Type text into element
|
|
2153
|
+
* @param {string} browserId
|
|
2154
|
+
* @param {TypeTextRequest} payload
|
|
2237
2155
|
* @param {*} [options] Override http request option.
|
|
2238
2156
|
* @throws {RequiredError}
|
|
2239
2157
|
*/
|
|
@@ -2242,8 +2160,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2242
2160
|
},
|
|
2243
2161
|
/**
|
|
2244
2162
|
*
|
|
2245
|
-
* @summary Upload
|
|
2246
|
-
* @param {string} browserId
|
|
2163
|
+
* @summary Upload file to input
|
|
2164
|
+
* @param {string} browserId
|
|
2247
2165
|
* @param {UploadFileRequest} payload
|
|
2248
2166
|
* @param {*} [options] Override http request option.
|
|
2249
2167
|
* @throws {RequiredError}
|
|
@@ -2253,8 +2171,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2253
2171
|
},
|
|
2254
2172
|
/**
|
|
2255
2173
|
*
|
|
2256
|
-
* @summary Wait for element to
|
|
2257
|
-
* @param {string} browserId
|
|
2174
|
+
* @summary Wait for element to be visible or hidden
|
|
2175
|
+
* @param {string} browserId
|
|
2258
2176
|
* @param {WaitElementRequest} payload
|
|
2259
2177
|
* @param {*} [options] Override http request option.
|
|
2260
2178
|
* @throws {RequiredError}
|
|
@@ -2264,8 +2182,8 @@ const BrowserApiFactory = function (configuration, basePath, axios) {
|
|
|
2264
2182
|
},
|
|
2265
2183
|
/**
|
|
2266
2184
|
*
|
|
2267
|
-
* @summary
|
|
2268
|
-
* @param {string} browserId
|
|
2185
|
+
* @summary AI page analysis - what\'s visible
|
|
2186
|
+
* @param {string} browserId
|
|
2269
2187
|
* @param {*} [options] Override http request option.
|
|
2270
2188
|
* @throws {RequiredError}
|
|
2271
2189
|
*/
|
|
@@ -2281,39 +2199,42 @@ exports.BrowserApiFactory = BrowserApiFactory;
|
|
|
2281
2199
|
class BrowserApi extends base_1.BaseAPI {
|
|
2282
2200
|
/**
|
|
2283
2201
|
*
|
|
2284
|
-
* @summary
|
|
2285
|
-
* @param {
|
|
2286
|
-
* @param {CheckElementRequest} payload
|
|
2202
|
+
* @summary Admin: list all, get info, or close all browsers
|
|
2203
|
+
* @param {BrowsersRequest} payload
|
|
2287
2204
|
* @param {*} [options] Override http request option.
|
|
2288
2205
|
* @throws {RequiredError}
|
|
2289
2206
|
*/
|
|
2290
|
-
|
|
2291
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2207
|
+
browsers(payload, options) {
|
|
2208
|
+
return (0, exports.BrowserApiFp)(this.configuration).browsers(payload, options).then((request) => request(this.axios, this.basePath));
|
|
2292
2209
|
}
|
|
2293
2210
|
/**
|
|
2294
|
-
*
|
|
2295
|
-
* @summary
|
|
2296
|
-
* @param {string} browserId
|
|
2297
|
-
* @param {
|
|
2211
|
+
*
|
|
2212
|
+
* @summary Check if element exists or is visible
|
|
2213
|
+
* @param {string} browserId
|
|
2214
|
+
* @param {string} selector selector
|
|
2215
|
+
* @param {string} check check
|
|
2216
|
+
* @param {string} [by] by
|
|
2298
2217
|
* @param {*} [options] Override http request option.
|
|
2299
2218
|
* @throws {RequiredError}
|
|
2300
2219
|
*/
|
|
2301
|
-
|
|
2302
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2220
|
+
checkElement(browserId, selector, check, by, options) {
|
|
2221
|
+
return (0, exports.BrowserApiFp)(this.configuration).checkElement(browserId, selector, check, by, options).then((request) => request(this.axios, this.basePath));
|
|
2303
2222
|
}
|
|
2304
2223
|
/**
|
|
2305
|
-
*
|
|
2306
|
-
* @summary
|
|
2224
|
+
* Use if_visible=True to only click if visible.
|
|
2225
|
+
* @summary Click element
|
|
2226
|
+
* @param {string} browserId
|
|
2227
|
+
* @param {ClickRequest} payload
|
|
2307
2228
|
* @param {*} [options] Override http request option.
|
|
2308
2229
|
* @throws {RequiredError}
|
|
2309
2230
|
*/
|
|
2310
|
-
|
|
2311
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2231
|
+
click(browserId, payload, options) {
|
|
2232
|
+
return (0, exports.BrowserApiFp)(this.configuration).click(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2312
2233
|
}
|
|
2313
2234
|
/**
|
|
2314
2235
|
*
|
|
2315
|
-
* @summary Close
|
|
2316
|
-
* @param {string} browserId
|
|
2236
|
+
* @summary Close browser instance
|
|
2237
|
+
* @param {string} browserId
|
|
2317
2238
|
* @param {*} [options] Override http request option.
|
|
2318
2239
|
* @throws {RequiredError}
|
|
2319
2240
|
*/
|
|
@@ -2322,8 +2243,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2322
2243
|
}
|
|
2323
2244
|
/**
|
|
2324
2245
|
*
|
|
2325
|
-
* @summary
|
|
2326
|
-
* @param {string} browserId
|
|
2246
|
+
* @summary Console logs: get or clear
|
|
2247
|
+
* @param {string} browserId
|
|
2327
2248
|
* @param {ConsoleLogsRequest} payload
|
|
2328
2249
|
* @param {*} [options] Override http request option.
|
|
2329
2250
|
* @throws {RequiredError}
|
|
@@ -2333,8 +2254,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2333
2254
|
}
|
|
2334
2255
|
/**
|
|
2335
2256
|
*
|
|
2336
|
-
* @summary Create
|
|
2337
|
-
* @param {
|
|
2257
|
+
* @summary Create browser instance with optional persistent profile
|
|
2258
|
+
* @param {CreateBrowserRequest} payload
|
|
2338
2259
|
* @param {*} [options] Override http request option.
|
|
2339
2260
|
* @throws {RequiredError}
|
|
2340
2261
|
*/
|
|
@@ -2342,19 +2263,9 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2342
2263
|
return (0, exports.BrowserApiFp)(this.configuration).createBrowser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
2343
2264
|
}
|
|
2344
2265
|
/**
|
|
2345
|
-
*
|
|
2346
|
-
* @summary
|
|
2347
|
-
* @param {string} browserId
|
|
2348
|
-
* @param {*} [options] Override http request option.
|
|
2349
|
-
* @throws {RequiredError}
|
|
2350
|
-
*/
|
|
2351
|
-
deleteBrowser(browserId, options) {
|
|
2352
|
-
return (0, exports.BrowserApiFp)(this.configuration).deleteBrowser(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
2353
|
-
}
|
|
2354
|
-
/**
|
|
2355
|
-
*
|
|
2356
|
-
* @summary Detect element coordinates using AI vision
|
|
2357
|
-
* @param {string} browserId Unique browser identifier
|
|
2266
|
+
* 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).
|
|
2267
|
+
* @summary Detect element coordinates using vision
|
|
2268
|
+
* @param {string} browserId
|
|
2358
2269
|
* @param {DetectCoordinatesRequest} payload
|
|
2359
2270
|
* @param {*} [options] Override http request option.
|
|
2360
2271
|
* @throws {RequiredError}
|
|
@@ -2364,9 +2275,9 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2364
2275
|
}
|
|
2365
2276
|
/**
|
|
2366
2277
|
*
|
|
2367
|
-
* @summary
|
|
2368
|
-
* @param {string} browserId
|
|
2369
|
-
* @param {
|
|
2278
|
+
* @summary Dialogs: get, accept, dismiss
|
|
2279
|
+
* @param {string} browserId
|
|
2280
|
+
* @param {DialogRequest} payload
|
|
2370
2281
|
* @param {*} [options] Override http request option.
|
|
2371
2282
|
* @throws {RequiredError}
|
|
2372
2283
|
*/
|
|
@@ -2375,9 +2286,9 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2375
2286
|
}
|
|
2376
2287
|
/**
|
|
2377
2288
|
*
|
|
2378
|
-
* @summary
|
|
2379
|
-
* @param {string} browserId
|
|
2380
|
-
* @param {
|
|
2289
|
+
* @summary Emulation: set, clear, list_devices
|
|
2290
|
+
* @param {string} browserId
|
|
2291
|
+
* @param {EmulateRequest} payload
|
|
2381
2292
|
* @param {*} [options] Override http request option.
|
|
2382
2293
|
* @throws {RequiredError}
|
|
2383
2294
|
*/
|
|
@@ -2387,8 +2298,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2387
2298
|
/**
|
|
2388
2299
|
*
|
|
2389
2300
|
* @summary Execute JavaScript
|
|
2390
|
-
* @param {string} browserId
|
|
2391
|
-
* @param {
|
|
2301
|
+
* @param {string} browserId
|
|
2302
|
+
* @param {ExecuteScriptRequest} payload
|
|
2392
2303
|
* @param {*} [options] Override http request option.
|
|
2393
2304
|
* @throws {RequiredError}
|
|
2394
2305
|
*/
|
|
@@ -2398,7 +2309,7 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2398
2309
|
/**
|
|
2399
2310
|
*
|
|
2400
2311
|
* @summary Fill multiple form fields
|
|
2401
|
-
* @param {string} browserId
|
|
2312
|
+
* @param {string} browserId
|
|
2402
2313
|
* @param {FillFormRequest} payload
|
|
2403
2314
|
* @param {*} [options] Override http request option.
|
|
2404
2315
|
* @throws {RequiredError}
|
|
@@ -2408,79 +2319,86 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2408
2319
|
}
|
|
2409
2320
|
/**
|
|
2410
2321
|
*
|
|
2411
|
-
* @summary Get
|
|
2412
|
-
* @param {string} browserId
|
|
2322
|
+
* @summary Get page HTML
|
|
2323
|
+
* @param {string} browserId
|
|
2413
2324
|
* @param {*} [options] Override http request option.
|
|
2414
2325
|
* @throws {RequiredError}
|
|
2415
2326
|
*/
|
|
2416
|
-
|
|
2417
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2327
|
+
getContent(browserId, options) {
|
|
2328
|
+
return (0, exports.BrowserApiFp)(this.configuration).getContent(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
2418
2329
|
}
|
|
2419
2330
|
/**
|
|
2420
2331
|
*
|
|
2421
|
-
* @summary Get
|
|
2422
|
-
* @param {string} browserId
|
|
2332
|
+
* @summary Get element text, attribute, or property
|
|
2333
|
+
* @param {string} browserId
|
|
2334
|
+
* @param {string} selector selector
|
|
2335
|
+
* @param {string} dataType data_type
|
|
2336
|
+
* @param {string} [name] name
|
|
2337
|
+
* @param {string} [by] by
|
|
2423
2338
|
* @param {*} [options] Override http request option.
|
|
2424
2339
|
* @throws {RequiredError}
|
|
2425
2340
|
*/
|
|
2426
|
-
|
|
2427
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2341
|
+
getElementData(browserId, selector, dataType, name, by, options) {
|
|
2342
|
+
return (0, exports.BrowserApiFp)(this.configuration).getElementData(browserId, selector, dataType, name, by, options).then((request) => request(this.axios, this.basePath));
|
|
2428
2343
|
}
|
|
2429
2344
|
/**
|
|
2430
2345
|
*
|
|
2431
|
-
* @summary Get
|
|
2432
|
-
* @param {string} browserId
|
|
2346
|
+
* @summary Get current URL
|
|
2347
|
+
* @param {string} browserId
|
|
2433
2348
|
* @param {*} [options] Override http request option.
|
|
2434
2349
|
* @throws {RequiredError}
|
|
2435
2350
|
*/
|
|
2436
|
-
|
|
2437
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2351
|
+
getUrl(browserId, options) {
|
|
2352
|
+
return (0, exports.BrowserApiFp)(this.configuration).getUrl(browserId, options).then((request) => request(this.axios, this.basePath));
|
|
2438
2353
|
}
|
|
2439
2354
|
/**
|
|
2440
2355
|
*
|
|
2441
|
-
* @summary
|
|
2442
|
-
* @param {string} browserId
|
|
2443
|
-
* @param {
|
|
2356
|
+
* @summary GUI click by selector or coordinates
|
|
2357
|
+
* @param {string} browserId
|
|
2358
|
+
* @param {GuiClickRequest} payload
|
|
2444
2359
|
* @param {*} [options] Override http request option.
|
|
2445
2360
|
* @throws {RequiredError}
|
|
2446
2361
|
*/
|
|
2447
|
-
|
|
2448
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2362
|
+
guiClick(browserId, payload, options) {
|
|
2363
|
+
return (0, exports.BrowserApiFp)(this.configuration).guiClick(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2449
2364
|
}
|
|
2450
2365
|
/**
|
|
2451
2366
|
*
|
|
2452
|
-
* @summary
|
|
2367
|
+
* @summary GUI hover at coordinates
|
|
2368
|
+
* @param {string} browserId
|
|
2369
|
+
* @param {GuiHoverXyRequest} payload
|
|
2453
2370
|
* @param {*} [options] Override http request option.
|
|
2454
2371
|
* @throws {RequiredError}
|
|
2455
2372
|
*/
|
|
2456
|
-
|
|
2457
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2373
|
+
guiHoverXy(browserId, payload, options) {
|
|
2374
|
+
return (0, exports.BrowserApiFp)(this.configuration).guiHoverXy(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2458
2375
|
}
|
|
2459
2376
|
/**
|
|
2460
2377
|
*
|
|
2461
|
-
* @summary
|
|
2462
|
-
* @param {string} browserId
|
|
2378
|
+
* @summary Press keys at coordinates (click to focus, then send keys)
|
|
2379
|
+
* @param {string} browserId
|
|
2380
|
+
* @param {GuiPressKeysXyRequest} payload
|
|
2463
2381
|
* @param {*} [options] Override http request option.
|
|
2464
2382
|
* @throws {RequiredError}
|
|
2465
2383
|
*/
|
|
2466
|
-
|
|
2467
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2384
|
+
guiPressKeysXy(browserId, payload, options) {
|
|
2385
|
+
return (0, exports.BrowserApiFp)(this.configuration).guiPressKeysXy(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2468
2386
|
}
|
|
2469
2387
|
/**
|
|
2470
2388
|
*
|
|
2471
|
-
* @summary
|
|
2472
|
-
* @param {string} browserId
|
|
2473
|
-
* @param {
|
|
2389
|
+
* @summary GUI type at coordinates - clicks then types text
|
|
2390
|
+
* @param {string} browserId
|
|
2391
|
+
* @param {GuiTypeXyRequest} payload
|
|
2474
2392
|
* @param {*} [options] Override http request option.
|
|
2475
2393
|
* @throws {RequiredError}
|
|
2476
2394
|
*/
|
|
2477
|
-
|
|
2478
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2395
|
+
guiTypeXy(browserId, payload, options) {
|
|
2396
|
+
return (0, exports.BrowserApiFp)(this.configuration).guiTypeXy(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2479
2397
|
}
|
|
2480
2398
|
/**
|
|
2481
2399
|
*
|
|
2482
|
-
* @summary
|
|
2483
|
-
* @param {string} browserId
|
|
2400
|
+
* @summary History: back, forward, or refresh
|
|
2401
|
+
* @param {string} browserId
|
|
2484
2402
|
* @param {HistoryRequest} payload
|
|
2485
2403
|
* @param {*} [options] Override http request option.
|
|
2486
2404
|
* @throws {RequiredError}
|
|
@@ -2490,17 +2408,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2490
2408
|
}
|
|
2491
2409
|
/**
|
|
2492
2410
|
*
|
|
2493
|
-
* @summary
|
|
2494
|
-
* @param {
|
|
2495
|
-
* @throws {RequiredError}
|
|
2496
|
-
*/
|
|
2497
|
-
listBrowsers(options) {
|
|
2498
|
-
return (0, exports.BrowserApiFp)(this.configuration).listBrowsers(options).then((request) => request(this.axios, this.basePath));
|
|
2499
|
-
}
|
|
2500
|
-
/**
|
|
2501
|
-
*
|
|
2502
|
-
* @summary Mouse action: hover or drag
|
|
2503
|
-
* @param {string} browserId Unique browser identifier
|
|
2411
|
+
* @summary Mouse: hover or drag
|
|
2412
|
+
* @param {string} browserId
|
|
2504
2413
|
* @param {MouseRequest} payload
|
|
2505
2414
|
* @param {*} [options] Override http request option.
|
|
2506
2415
|
* @throws {RequiredError}
|
|
@@ -2510,9 +2419,9 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2510
2419
|
}
|
|
2511
2420
|
/**
|
|
2512
2421
|
*
|
|
2513
|
-
* @summary Navigate to
|
|
2514
|
-
* @param {string} browserId
|
|
2515
|
-
* @param {
|
|
2422
|
+
* @summary Navigate to URL
|
|
2423
|
+
* @param {string} browserId
|
|
2424
|
+
* @param {NavigateBrowserRequest} payload
|
|
2516
2425
|
* @param {*} [options] Override http request option.
|
|
2517
2426
|
* @throws {RequiredError}
|
|
2518
2427
|
*/
|
|
@@ -2521,8 +2430,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2521
2430
|
}
|
|
2522
2431
|
/**
|
|
2523
2432
|
*
|
|
2524
|
-
* @summary
|
|
2525
|
-
* @param {string} browserId
|
|
2433
|
+
* @summary Network logs: get or clear
|
|
2434
|
+
* @param {string} browserId
|
|
2526
2435
|
* @param {NetworkLogsRequest} payload
|
|
2527
2436
|
* @param {*} [options] Override http request option.
|
|
2528
2437
|
* @throws {RequiredError}
|
|
@@ -2532,8 +2441,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2532
2441
|
}
|
|
2533
2442
|
/**
|
|
2534
2443
|
*
|
|
2535
|
-
* @summary
|
|
2536
|
-
* @param {string} browserId
|
|
2444
|
+
* @summary Performance: start_trace, stop_trace, metrics, analyze
|
|
2445
|
+
* @param {string} browserId
|
|
2537
2446
|
* @param {PerformanceRequest} payload
|
|
2538
2447
|
* @param {*} [options] Override http request option.
|
|
2539
2448
|
* @throws {RequiredError}
|
|
@@ -2543,8 +2452,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2543
2452
|
}
|
|
2544
2453
|
/**
|
|
2545
2454
|
*
|
|
2546
|
-
* @summary Press keys
|
|
2547
|
-
* @param {string} browserId
|
|
2455
|
+
* @summary Press keyboard keys
|
|
2456
|
+
* @param {string} browserId
|
|
2548
2457
|
* @param {PressKeysRequest} payload
|
|
2549
2458
|
* @param {*} [options] Override http request option.
|
|
2550
2459
|
* @throws {RequiredError}
|
|
@@ -2555,7 +2464,7 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2555
2464
|
/**
|
|
2556
2465
|
*
|
|
2557
2466
|
* @summary Resize viewport
|
|
2558
|
-
* @param {string} browserId
|
|
2467
|
+
* @param {string} browserId
|
|
2559
2468
|
* @param {ResizeRequest} payload
|
|
2560
2469
|
* @param {*} [options] Override http request option.
|
|
2561
2470
|
* @throws {RequiredError}
|
|
@@ -2565,9 +2474,9 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2565
2474
|
}
|
|
2566
2475
|
/**
|
|
2567
2476
|
*
|
|
2568
|
-
* @summary Scroll to element/
|
|
2569
|
-
* @param {string} browserId
|
|
2570
|
-
* @param {
|
|
2477
|
+
* @summary Scroll to element/coords or by delta
|
|
2478
|
+
* @param {string} browserId
|
|
2479
|
+
* @param {ScrollRequest} payload
|
|
2571
2480
|
* @param {*} [options] Override http request option.
|
|
2572
2481
|
* @throws {RequiredError}
|
|
2573
2482
|
*/
|
|
@@ -2577,7 +2486,7 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2577
2486
|
/**
|
|
2578
2487
|
*
|
|
2579
2488
|
* @summary Select dropdown: select option or get options
|
|
2580
|
-
* @param {string} browserId
|
|
2489
|
+
* @param {string} browserId
|
|
2581
2490
|
* @param {SelectRequest} payload
|
|
2582
2491
|
* @param {*} [options] Override http request option.
|
|
2583
2492
|
* @throws {RequiredError}
|
|
@@ -2587,41 +2496,42 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2587
2496
|
}
|
|
2588
2497
|
/**
|
|
2589
2498
|
*
|
|
2590
|
-
* @summary
|
|
2591
|
-
* @param {string} browserId
|
|
2592
|
-
* @param {
|
|
2499
|
+
* @summary DOM or accessibility snapshot
|
|
2500
|
+
* @param {string} browserId
|
|
2501
|
+
* @param {SnapshotRequest} payload
|
|
2593
2502
|
* @param {*} [options] Override http request option.
|
|
2594
2503
|
* @throws {RequiredError}
|
|
2595
2504
|
*/
|
|
2596
|
-
|
|
2597
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2505
|
+
snapshot(browserId, payload, options) {
|
|
2506
|
+
return (0, exports.BrowserApiFp)(this.configuration).snapshot(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2598
2507
|
}
|
|
2599
2508
|
/**
|
|
2600
2509
|
*
|
|
2601
|
-
* @summary
|
|
2602
|
-
* @param {string} browserId
|
|
2510
|
+
* @summary Tabs: list, new, switch, close, current
|
|
2511
|
+
* @param {string} browserId
|
|
2512
|
+
* @param {TabsRequest} payload
|
|
2603
2513
|
* @param {*} [options] Override http request option.
|
|
2604
2514
|
* @throws {RequiredError}
|
|
2605
2515
|
*/
|
|
2606
|
-
|
|
2607
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2516
|
+
tabs(browserId, payload, options) {
|
|
2517
|
+
return (0, exports.BrowserApiFp)(this.configuration).tabs(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2608
2518
|
}
|
|
2609
2519
|
/**
|
|
2610
2520
|
*
|
|
2611
|
-
* @summary Take
|
|
2612
|
-
* @param {string} browserId
|
|
2613
|
-
* @param {
|
|
2521
|
+
* @summary Take screenshot
|
|
2522
|
+
* @param {string} browserId
|
|
2523
|
+
* @param {TakeScreenshotRequest} payload
|
|
2614
2524
|
* @param {*} [options] Override http request option.
|
|
2615
2525
|
* @throws {RequiredError}
|
|
2616
2526
|
*/
|
|
2617
|
-
|
|
2618
|
-
return (0, exports.BrowserApiFp)(this.configuration).
|
|
2527
|
+
takeScreenshot(browserId, payload, options) {
|
|
2528
|
+
return (0, exports.BrowserApiFp)(this.configuration).takeScreenshot(browserId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
2619
2529
|
}
|
|
2620
2530
|
/**
|
|
2621
2531
|
*
|
|
2622
|
-
* @summary Type text into
|
|
2623
|
-
* @param {string} browserId
|
|
2624
|
-
* @param {
|
|
2532
|
+
* @summary Type text into element
|
|
2533
|
+
* @param {string} browserId
|
|
2534
|
+
* @param {TypeTextRequest} payload
|
|
2625
2535
|
* @param {*} [options] Override http request option.
|
|
2626
2536
|
* @throws {RequiredError}
|
|
2627
2537
|
*/
|
|
@@ -2630,8 +2540,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2630
2540
|
}
|
|
2631
2541
|
/**
|
|
2632
2542
|
*
|
|
2633
|
-
* @summary Upload
|
|
2634
|
-
* @param {string} browserId
|
|
2543
|
+
* @summary Upload file to input
|
|
2544
|
+
* @param {string} browserId
|
|
2635
2545
|
* @param {UploadFileRequest} payload
|
|
2636
2546
|
* @param {*} [options] Override http request option.
|
|
2637
2547
|
* @throws {RequiredError}
|
|
@@ -2641,8 +2551,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2641
2551
|
}
|
|
2642
2552
|
/**
|
|
2643
2553
|
*
|
|
2644
|
-
* @summary Wait for element to
|
|
2645
|
-
* @param {string} browserId
|
|
2554
|
+
* @summary Wait for element to be visible or hidden
|
|
2555
|
+
* @param {string} browserId
|
|
2646
2556
|
* @param {WaitElementRequest} payload
|
|
2647
2557
|
* @param {*} [options] Override http request option.
|
|
2648
2558
|
* @throws {RequiredError}
|
|
@@ -2652,8 +2562,8 @@ class BrowserApi extends base_1.BaseAPI {
|
|
|
2652
2562
|
}
|
|
2653
2563
|
/**
|
|
2654
2564
|
*
|
|
2655
|
-
* @summary
|
|
2656
|
-
* @param {string} browserId
|
|
2565
|
+
* @summary AI page analysis - what\'s visible
|
|
2566
|
+
* @param {string} browserId
|
|
2657
2567
|
* @param {*} [options] Override http request option.
|
|
2658
2568
|
* @throws {RequiredError}
|
|
2659
2569
|
*/
|