selenium-webdriver 4.49.0 → 4.50.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/CHANGES.md +16 -0
- package/bidi/generated/bluetooth.d.ts +199 -37
- package/bidi/generated/bluetooth.js +212 -106
- package/bidi/generated/browser.d.ts +81 -28
- package/bidi/generated/browser.js +97 -69
- package/bidi/generated/browsing_context.d.ts +269 -87
- package/bidi/generated/browsing_context.js +328 -241
- package/bidi/generated/common.d.ts +105 -21
- package/bidi/generated/common.js +64 -15
- package/bidi/generated/digital_credentials.d.ts +41 -0
- package/bidi/generated/digital_credentials.js +54 -0
- package/bidi/generated/emulation.d.ts +347 -77
- package/bidi/generated/emulation.js +262 -101
- package/bidi/generated/input.d.ts +63 -35
- package/bidi/generated/input.js +77 -51
- package/bidi/generated/log.d.ts +39 -18
- package/bidi/generated/log.js +23 -43
- package/bidi/generated/network.d.ts +248 -76
- package/bidi/generated/network.js +247 -181
- package/bidi/generated/permissions.d.ts +22 -4
- package/bidi/generated/permissions.js +31 -17
- package/bidi/generated/script.d.ts +166 -70
- package/bidi/generated/script.js +203 -116
- package/bidi/generated/session.d.ts +76 -36
- package/bidi/generated/session.js +81 -48
- package/bidi/generated/speculation.d.ts +15 -5
- package/bidi/generated/speculation.js +20 -16
- package/bidi/generated/storage.d.ts +41 -17
- package/bidi/generated/storage.js +58 -40
- package/bidi/generated/user_agent_client_hints.d.ts +25 -13
- package/bidi/generated/user_agent_client_hints.js +29 -18
- package/bidi/generated/webextension.d.ts +24 -10
- package/bidi/generated/webextension.js +39 -25
- package/bidi/serialization/enum.js +6 -3
- package/bidi/serialization/record.js +34 -29
- package/bin/linux-arm64/selenium-manager +0 -0
- package/bin/linux-x86_64/selenium-manager +0 -0
- package/bin/macos/selenium-manager +0 -0
- package/bin/selenium-manager-THIRD-PARTY-NOTICES.txt +74 -43
- package/bin/selenium-manager.cdx.json +421 -421
- package/bin/windows/selenium-manager.exe +0 -0
- package/eslint.config.js +2 -1
- package/firefox.js +7 -104
- package/index.js +8 -0
- package/lib/atoms/find-elements.js +14 -2
- package/package.json +9 -9
- package/remote/index.js +12 -3
- package/remote/util.js +5 -5
- package/testing/index.js +84 -1
package/CHANGES.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 4.50.0
|
|
2
|
+
|
|
3
|
+
- Support CDP versions: v152, v153, v154
|
|
4
|
+
- [build] Automated Dependency Update (#18032)
|
|
5
|
+
- [build] generate webref_cddl.bzl from the BiDi spec's external specifications list (#18055)
|
|
6
|
+
- [build] replace the BiDi KNOWN_INCOMPLETE allowlist with spec-shaped CDDL overlays (#18057)
|
|
7
|
+
- [build] Automated Dependency Update (#18061)
|
|
8
|
+
- [build] generate the BiDi schema vendor section from Mozilla's Firefox CDDL (#18060)
|
|
9
|
+
- remove deprecated Firefox profile extension and cert methods (#18066)
|
|
10
|
+
- [build] add support for Mozilla's Commands fragment in the BiDi schema (#18071)
|
|
11
|
+
- Align BiDi Generator with the low-level contract (#17973)
|
|
12
|
+
- [build] Automated Browser Version Update (major) with CDP (#18067)
|
|
13
|
+
- [build] Automated CDDL Spec Update (#18075)
|
|
14
|
+
- [build] Automated Dependency Update (#18082)
|
|
15
|
+
- Run tests on Grid, MacOS and Windows (#18081)
|
|
16
|
+
|
|
1
17
|
## 4.49.0
|
|
2
18
|
|
|
3
19
|
- Support CDP versions: v151, v152, v153
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Domain, type EventDescriptor } from '../domain.js';
|
|
1
2
|
export type BluetoothBluetoothUuid = string;
|
|
2
3
|
export interface BluetoothBluetoothManufacturerData {
|
|
3
4
|
key: number;
|
|
@@ -21,26 +22,15 @@ export interface BluetoothRequestDeviceInfo {
|
|
|
21
22
|
export type BluetoothRequestDevicePrompt = string;
|
|
22
23
|
export interface BluetoothScanRecord {
|
|
23
24
|
name?: string;
|
|
24
|
-
uuids?: BluetoothBluetoothUuid
|
|
25
|
-
appearance?:
|
|
26
|
-
manufacturerData?: BluetoothBluetoothManufacturerData
|
|
25
|
+
uuids?: Array<BluetoothBluetoothUuid>;
|
|
26
|
+
appearance?: number;
|
|
27
|
+
manufacturerData?: Array<BluetoothBluetoothManufacturerData>;
|
|
27
28
|
}
|
|
28
|
-
export type BluetoothCommand = BluetoothHandleRequestDevicePrompt | BluetoothSimulateAdapter | BluetoothDisableSimulation | BluetoothSimulatePreconnectedPeripheral | BluetoothSimulateAdvertisement | BluetoothSimulateGattConnectionResponse | BluetoothSimulateGattDisconnection | BluetoothSimulateService | BluetoothSimulateCharacteristic | BluetoothSimulateCharacteristicResponse | BluetoothSimulateDescriptor | BluetoothSimulateDescriptorResponse;
|
|
29
29
|
export interface BluetoothHandleRequestDevicePrompt {
|
|
30
30
|
method: "bluetooth.handleRequestDevicePrompt";
|
|
31
31
|
params: BluetoothHandleRequestDevicePromptParameters;
|
|
32
32
|
}
|
|
33
|
-
export type BluetoothHandleRequestDevicePromptParameters =
|
|
34
|
-
context: string;
|
|
35
|
-
prompt: BluetoothRequestDevicePrompt;
|
|
36
|
-
};
|
|
37
|
-
export interface BluetoothHandleRequestDevicePromptAcceptParameters {
|
|
38
|
-
accept: true;
|
|
39
|
-
device: BluetoothRequestDevice;
|
|
40
|
-
}
|
|
41
|
-
export interface BluetoothHandleRequestDevicePromptCancelParameters {
|
|
42
|
-
accept: false;
|
|
43
|
-
}
|
|
33
|
+
export type BluetoothHandleRequestDevicePromptParameters = BluetoothHandleRequestDevicePromptParameters_AcceptParameters | BluetoothHandleRequestDevicePromptParameters_CancelParameters;
|
|
44
34
|
export interface BluetoothSimulateAdapter {
|
|
45
35
|
method: "bluetooth.simulateAdapter";
|
|
46
36
|
params: BluetoothSimulateAdapterParameters;
|
|
@@ -48,7 +38,7 @@ export interface BluetoothSimulateAdapter {
|
|
|
48
38
|
export interface BluetoothSimulateAdapterParameters {
|
|
49
39
|
context: string;
|
|
50
40
|
leSupported?: boolean;
|
|
51
|
-
state:
|
|
41
|
+
state: BluetoothSimulateAdapterParametersState;
|
|
52
42
|
}
|
|
53
43
|
export interface BluetoothDisableSimulation {
|
|
54
44
|
method: "bluetooth.disableSimulation";
|
|
@@ -65,8 +55,8 @@ export interface BluetoothSimulatePreconnectedPeripheralParameters {
|
|
|
65
55
|
context: string;
|
|
66
56
|
address: string;
|
|
67
57
|
name: string;
|
|
68
|
-
manufacturerData: BluetoothBluetoothManufacturerData
|
|
69
|
-
knownServiceUuids: BluetoothBluetoothUuid
|
|
58
|
+
manufacturerData: Array<BluetoothBluetoothManufacturerData>;
|
|
59
|
+
knownServiceUuids: Array<BluetoothBluetoothUuid>;
|
|
70
60
|
}
|
|
71
61
|
export interface BluetoothSimulateAdvertisement {
|
|
72
62
|
method: "bluetooth.simulateAdvertisement";
|
|
@@ -78,7 +68,7 @@ export interface BluetoothSimulateAdvertisementParameters {
|
|
|
78
68
|
}
|
|
79
69
|
export interface BluetoothSimulateAdvertisementScanEntryParameters {
|
|
80
70
|
deviceAddress: string;
|
|
81
|
-
rssi:
|
|
71
|
+
rssi: number;
|
|
82
72
|
scanRecord: BluetoothScanRecord;
|
|
83
73
|
}
|
|
84
74
|
export interface BluetoothSimulateGattConnectionResponse {
|
|
@@ -106,7 +96,7 @@ export interface BluetoothSimulateServiceParameters {
|
|
|
106
96
|
context: string;
|
|
107
97
|
address: string;
|
|
108
98
|
uuid: BluetoothBluetoothUuid;
|
|
109
|
-
type:
|
|
99
|
+
type: BluetoothSimulateServiceParametersType;
|
|
110
100
|
}
|
|
111
101
|
export interface BluetoothSimulateCharacteristic {
|
|
112
102
|
method: "bluetooth.simulateCharacteristic";
|
|
@@ -118,7 +108,7 @@ export interface BluetoothSimulateCharacteristicParameters {
|
|
|
118
108
|
serviceUuid: BluetoothBluetoothUuid;
|
|
119
109
|
characteristicUuid: BluetoothBluetoothUuid;
|
|
120
110
|
characteristicProperties?: BluetoothCharacteristicProperties;
|
|
121
|
-
type:
|
|
111
|
+
type: BluetoothSimulateCharacteristicParametersType;
|
|
122
112
|
}
|
|
123
113
|
export interface BluetoothSimulateCharacteristicResponse {
|
|
124
114
|
method: "bluetooth.simulateCharacteristicResponse";
|
|
@@ -129,9 +119,9 @@ export interface BluetoothSimulateCharacteristicResponseParameters {
|
|
|
129
119
|
address: string;
|
|
130
120
|
serviceUuid: BluetoothBluetoothUuid;
|
|
131
121
|
characteristicUuid: BluetoothBluetoothUuid;
|
|
132
|
-
type:
|
|
122
|
+
type: BluetoothSimulateCharacteristicResponseParametersType;
|
|
133
123
|
code: number;
|
|
134
|
-
data?: number
|
|
124
|
+
data?: Array<number>;
|
|
135
125
|
}
|
|
136
126
|
export interface BluetoothSimulateDescriptor {
|
|
137
127
|
method: "bluetooth.simulateDescriptor";
|
|
@@ -143,7 +133,7 @@ export interface BluetoothSimulateDescriptorParameters {
|
|
|
143
133
|
serviceUuid: BluetoothBluetoothUuid;
|
|
144
134
|
characteristicUuid: BluetoothBluetoothUuid;
|
|
145
135
|
descriptorUuid: BluetoothBluetoothUuid;
|
|
146
|
-
type:
|
|
136
|
+
type: BluetoothSimulateDescriptorParametersType;
|
|
147
137
|
}
|
|
148
138
|
export interface BluetoothSimulateDescriptorResponse {
|
|
149
139
|
method: "bluetooth.simulateDescriptorResponse";
|
|
@@ -155,11 +145,10 @@ export interface BluetoothSimulateDescriptorResponseParameters {
|
|
|
155
145
|
serviceUuid: BluetoothBluetoothUuid;
|
|
156
146
|
characteristicUuid: BluetoothBluetoothUuid;
|
|
157
147
|
descriptorUuid: BluetoothBluetoothUuid;
|
|
158
|
-
type:
|
|
148
|
+
type: BluetoothSimulateDescriptorResponseParametersType;
|
|
159
149
|
code: number;
|
|
160
|
-
data?: number
|
|
150
|
+
data?: Array<number>;
|
|
161
151
|
}
|
|
162
|
-
export type BluetoothEvent = BluetoothRequestDevicePromptUpdated | BluetoothGattConnectionAttempted;
|
|
163
152
|
export interface BluetoothRequestDevicePromptUpdated {
|
|
164
153
|
method: "bluetooth.requestDevicePromptUpdated";
|
|
165
154
|
params: BluetoothRequestDevicePromptUpdatedParameters;
|
|
@@ -167,7 +156,7 @@ export interface BluetoothRequestDevicePromptUpdated {
|
|
|
167
156
|
export interface BluetoothRequestDevicePromptUpdatedParameters {
|
|
168
157
|
context: string;
|
|
169
158
|
prompt: BluetoothRequestDevicePrompt;
|
|
170
|
-
devices: BluetoothRequestDeviceInfo
|
|
159
|
+
devices: Array<BluetoothRequestDeviceInfo>;
|
|
171
160
|
}
|
|
172
161
|
export interface BluetoothGattConnectionAttempted {
|
|
173
162
|
method: "bluetooth.gattConnectionAttempted";
|
|
@@ -186,8 +175,8 @@ export interface BluetoothCharacteristicEventGeneratedParameters {
|
|
|
186
175
|
address: string;
|
|
187
176
|
serviceUuid: BluetoothBluetoothUuid;
|
|
188
177
|
characteristicUuid: BluetoothBluetoothUuid;
|
|
189
|
-
type:
|
|
190
|
-
data?: number
|
|
178
|
+
type: BluetoothCharacteristicEventGeneratedParametersType;
|
|
179
|
+
data?: Array<number>;
|
|
191
180
|
}
|
|
192
181
|
export interface BluetoothDescriptorEventGenerated {
|
|
193
182
|
method: "bluetooth.descriptorEventGenerated";
|
|
@@ -199,25 +188,198 @@ export interface BluetoothDescriptorEventGeneratedParameters {
|
|
|
199
188
|
serviceUuid: BluetoothBluetoothUuid;
|
|
200
189
|
characteristicUuid: BluetoothBluetoothUuid;
|
|
201
190
|
descriptorUuid: BluetoothBluetoothUuid;
|
|
202
|
-
type:
|
|
203
|
-
data?: number
|
|
191
|
+
type: BluetoothDescriptorEventGeneratedParametersType;
|
|
192
|
+
data?: Array<number>;
|
|
193
|
+
}
|
|
194
|
+
export type BluetoothSimulateAdapterParametersState = "absent" | "powered-off" | "powered-on";
|
|
195
|
+
export type BluetoothSimulateServiceParametersType = "add" | "remove";
|
|
196
|
+
export type BluetoothSimulateCharacteristicParametersType = "add" | "remove";
|
|
197
|
+
export type BluetoothSimulateCharacteristicResponseParametersType = "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications";
|
|
198
|
+
export type BluetoothSimulateDescriptorParametersType = "add" | "remove";
|
|
199
|
+
export type BluetoothSimulateDescriptorResponseParametersType = "read" | "write";
|
|
200
|
+
export type BluetoothCharacteristicEventGeneratedParametersType = "read" | "write-with-response" | "write-without-response" | "subscribe-to-notifications" | "unsubscribe-from-notifications";
|
|
201
|
+
export type BluetoothDescriptorEventGeneratedParametersType = "read" | "write";
|
|
202
|
+
export interface BluetoothHandleRequestDevicePromptParameters_AcceptParameters {
|
|
203
|
+
context: string;
|
|
204
|
+
prompt: BluetoothRequestDevicePrompt;
|
|
205
|
+
accept: true;
|
|
206
|
+
device: BluetoothRequestDevice;
|
|
207
|
+
}
|
|
208
|
+
export interface BluetoothHandleRequestDevicePromptParameters_CancelParameters {
|
|
209
|
+
context: string;
|
|
210
|
+
prompt: BluetoothRequestDevicePrompt;
|
|
211
|
+
accept: false;
|
|
204
212
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
/**
|
|
214
|
+
* This is an unsupported API. No compatibility guarantees are provided.
|
|
215
|
+
* It tracks the W3C WebDriver BiDi specification directly. As the specification
|
|
216
|
+
* evolves, this API will change or be removed without prior notice.
|
|
217
|
+
*/
|
|
218
|
+
export declare class Bluetooth extends Domain {
|
|
219
|
+
/** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-requestDevicePromptUpdated */
|
|
220
|
+
static readonly REQUEST_DEVICE_PROMPT_UPDATED: EventDescriptor<BluetoothRequestDevicePromptUpdatedParameters>;
|
|
221
|
+
/** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-gattConnectionAttempted */
|
|
222
|
+
static readonly GATT_CONNECTION_ATTEMPTED: EventDescriptor<BluetoothGattConnectionAttemptedParameters>;
|
|
223
|
+
/** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-characteristicEventGenerated */
|
|
224
|
+
static readonly CHARACTERISTIC_EVENT_GENERATED: EventDescriptor<BluetoothCharacteristicEventGeneratedParameters>;
|
|
225
|
+
/** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-descriptorEventGenerated */
|
|
226
|
+
static readonly DESCRIPTOR_EVENT_GENERATED: EventDescriptor<BluetoothDescriptorEventGeneratedParameters>;
|
|
227
|
+
static readonly SimulateAdapterParametersState: Readonly<{
|
|
228
|
+
readonly ABSENT: "absent";
|
|
229
|
+
readonly POWERED_OFF: "powered-off";
|
|
230
|
+
readonly POWERED_ON: "powered-on";
|
|
231
|
+
}>;
|
|
232
|
+
static readonly SimulateServiceParametersType: Readonly<{
|
|
233
|
+
readonly ADD: "add";
|
|
234
|
+
readonly REMOVE: "remove";
|
|
235
|
+
}>;
|
|
236
|
+
static readonly SimulateCharacteristicParametersType: Readonly<{
|
|
237
|
+
readonly ADD: "add";
|
|
238
|
+
readonly REMOVE: "remove";
|
|
239
|
+
}>;
|
|
240
|
+
static readonly SimulateCharacteristicResponseParametersType: Readonly<{
|
|
241
|
+
readonly READ: "read";
|
|
242
|
+
readonly WRITE: "write";
|
|
243
|
+
readonly SUBSCRIBE_TO_NOTIFICATIONS: "subscribe-to-notifications";
|
|
244
|
+
readonly UNSUBSCRIBE_FROM_NOTIFICATIONS: "unsubscribe-from-notifications";
|
|
245
|
+
}>;
|
|
246
|
+
static readonly SimulateDescriptorParametersType: Readonly<{
|
|
247
|
+
readonly ADD: "add";
|
|
248
|
+
readonly REMOVE: "remove";
|
|
249
|
+
}>;
|
|
250
|
+
static readonly SimulateDescriptorResponseParametersType: Readonly<{
|
|
251
|
+
readonly READ: "read";
|
|
252
|
+
readonly WRITE: "write";
|
|
253
|
+
}>;
|
|
254
|
+
static readonly CharacteristicEventGeneratedParametersType: Readonly<{
|
|
255
|
+
readonly READ: "read";
|
|
256
|
+
readonly WRITE_WITH_RESPONSE: "write-with-response";
|
|
257
|
+
readonly WRITE_WITHOUT_RESPONSE: "write-without-response";
|
|
258
|
+
readonly SUBSCRIBE_TO_NOTIFICATIONS: "subscribe-to-notifications";
|
|
259
|
+
readonly UNSUBSCRIBE_FROM_NOTIFICATIONS: "unsubscribe-from-notifications";
|
|
260
|
+
}>;
|
|
261
|
+
static readonly DescriptorEventGeneratedParametersType: Readonly<{
|
|
262
|
+
readonly READ: "read";
|
|
263
|
+
readonly WRITE: "write";
|
|
264
|
+
}>;
|
|
208
265
|
static create(driver: unknown): Promise<Bluetooth>;
|
|
266
|
+
/**
|
|
267
|
+
* @param {BluetoothHandleRequestDevicePromptParameters} params
|
|
268
|
+
* @returns {Promise<void>}
|
|
269
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-handleRequestDevicePrompt
|
|
270
|
+
*/
|
|
209
271
|
handleRequestDevicePrompt(params: BluetoothHandleRequestDevicePromptParameters): Promise<void>;
|
|
272
|
+
/**
|
|
273
|
+
* @param {BluetoothSimulateAdapterParameters} params
|
|
274
|
+
* @param {string} params.context
|
|
275
|
+
* @param {boolean} [params.leSupported]
|
|
276
|
+
* @param {BluetoothSimulateAdapterParametersState} params.state
|
|
277
|
+
* @returns {Promise<void>}
|
|
278
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateAdapter
|
|
279
|
+
*/
|
|
210
280
|
simulateAdapter(params: BluetoothSimulateAdapterParameters): Promise<void>;
|
|
281
|
+
/**
|
|
282
|
+
* @param {BluetoothDisableSimulationParameters} params
|
|
283
|
+
* @param {string} params.context
|
|
284
|
+
* @returns {Promise<void>}
|
|
285
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-disableSimulation
|
|
286
|
+
*/
|
|
211
287
|
disableSimulation(params: BluetoothDisableSimulationParameters): Promise<void>;
|
|
288
|
+
/**
|
|
289
|
+
* @param {BluetoothSimulatePreconnectedPeripheralParameters} params
|
|
290
|
+
* @param {string} params.context
|
|
291
|
+
* @param {string} params.address
|
|
292
|
+
* @param {string} params.name
|
|
293
|
+
* @param {Array<BluetoothBluetoothManufacturerData>} params.manufacturerData
|
|
294
|
+
* @param {Array<BluetoothBluetoothUuid>} params.knownServiceUuids
|
|
295
|
+
* @returns {Promise<void>}
|
|
296
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulatePreconnectedPeripheral
|
|
297
|
+
*/
|
|
212
298
|
simulatePreconnectedPeripheral(params: BluetoothSimulatePreconnectedPeripheralParameters): Promise<void>;
|
|
299
|
+
/**
|
|
300
|
+
* @param {BluetoothSimulateAdvertisementParameters} params
|
|
301
|
+
* @param {string} params.context
|
|
302
|
+
* @param {BluetoothSimulateAdvertisementScanEntryParameters} params.scanEntry
|
|
303
|
+
* @returns {Promise<void>}
|
|
304
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateAdvertisement
|
|
305
|
+
*/
|
|
213
306
|
simulateAdvertisement(params: BluetoothSimulateAdvertisementParameters): Promise<void>;
|
|
307
|
+
/**
|
|
308
|
+
* @param {BluetoothSimulateGattConnectionResponseParameters} params
|
|
309
|
+
* @param {string} params.context
|
|
310
|
+
* @param {string} params.address
|
|
311
|
+
* @param {number} params.code
|
|
312
|
+
* @returns {Promise<void>}
|
|
313
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateGattConnectionResponse
|
|
314
|
+
*/
|
|
214
315
|
simulateGattConnectionResponse(params: BluetoothSimulateGattConnectionResponseParameters): Promise<void>;
|
|
316
|
+
/**
|
|
317
|
+
* @param {BluetoothSimulateGattDisconnectionParameters} params
|
|
318
|
+
* @param {string} params.context
|
|
319
|
+
* @param {string} params.address
|
|
320
|
+
* @returns {Promise<void>}
|
|
321
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateGattDisconnection
|
|
322
|
+
*/
|
|
215
323
|
simulateGattDisconnection(params: BluetoothSimulateGattDisconnectionParameters): Promise<void>;
|
|
324
|
+
/**
|
|
325
|
+
* @param {BluetoothSimulateServiceParameters} params
|
|
326
|
+
* @param {string} params.context
|
|
327
|
+
* @param {string} params.address
|
|
328
|
+
* @param {BluetoothBluetoothUuid} params.uuid
|
|
329
|
+
* @param {BluetoothSimulateServiceParametersType} params.type
|
|
330
|
+
* @returns {Promise<void>}
|
|
331
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateService
|
|
332
|
+
*/
|
|
216
333
|
simulateService(params: BluetoothSimulateServiceParameters): Promise<void>;
|
|
334
|
+
/**
|
|
335
|
+
* @param {BluetoothSimulateCharacteristicParameters} params
|
|
336
|
+
* @param {string} params.context
|
|
337
|
+
* @param {string} params.address
|
|
338
|
+
* @param {BluetoothBluetoothUuid} params.serviceUuid
|
|
339
|
+
* @param {BluetoothBluetoothUuid} params.characteristicUuid
|
|
340
|
+
* @param {BluetoothCharacteristicProperties} [params.characteristicProperties]
|
|
341
|
+
* @param {BluetoothSimulateCharacteristicParametersType} params.type
|
|
342
|
+
* @returns {Promise<void>}
|
|
343
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateCharacteristic
|
|
344
|
+
*/
|
|
217
345
|
simulateCharacteristic(params: BluetoothSimulateCharacteristicParameters): Promise<void>;
|
|
346
|
+
/**
|
|
347
|
+
* @param {BluetoothSimulateCharacteristicResponseParameters} params
|
|
348
|
+
* @param {string} params.context
|
|
349
|
+
* @param {string} params.address
|
|
350
|
+
* @param {BluetoothBluetoothUuid} params.serviceUuid
|
|
351
|
+
* @param {BluetoothBluetoothUuid} params.characteristicUuid
|
|
352
|
+
* @param {BluetoothSimulateCharacteristicResponseParametersType} params.type
|
|
353
|
+
* @param {number} params.code
|
|
354
|
+
* @param {Array<number>} [params.data]
|
|
355
|
+
* @returns {Promise<void>}
|
|
356
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateCharacteristicResponse
|
|
357
|
+
*/
|
|
218
358
|
simulateCharacteristicResponse(params: BluetoothSimulateCharacteristicResponseParameters): Promise<void>;
|
|
359
|
+
/**
|
|
360
|
+
* @param {BluetoothSimulateDescriptorParameters} params
|
|
361
|
+
* @param {string} params.context
|
|
362
|
+
* @param {string} params.address
|
|
363
|
+
* @param {BluetoothBluetoothUuid} params.serviceUuid
|
|
364
|
+
* @param {BluetoothBluetoothUuid} params.characteristicUuid
|
|
365
|
+
* @param {BluetoothBluetoothUuid} params.descriptorUuid
|
|
366
|
+
* @param {BluetoothSimulateDescriptorParametersType} params.type
|
|
367
|
+
* @returns {Promise<void>}
|
|
368
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateDescriptor
|
|
369
|
+
*/
|
|
219
370
|
simulateDescriptor(params: BluetoothSimulateDescriptorParameters): Promise<void>;
|
|
371
|
+
/**
|
|
372
|
+
* @param {BluetoothSimulateDescriptorResponseParameters} params
|
|
373
|
+
* @param {string} params.context
|
|
374
|
+
* @param {string} params.address
|
|
375
|
+
* @param {BluetoothBluetoothUuid} params.serviceUuid
|
|
376
|
+
* @param {BluetoothBluetoothUuid} params.characteristicUuid
|
|
377
|
+
* @param {BluetoothBluetoothUuid} params.descriptorUuid
|
|
378
|
+
* @param {BluetoothSimulateDescriptorResponseParametersType} params.type
|
|
379
|
+
* @param {number} params.code
|
|
380
|
+
* @param {Array<number>} [params.data]
|
|
381
|
+
* @returns {Promise<void>}
|
|
382
|
+
* @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateDescriptorResponse
|
|
383
|
+
*/
|
|
220
384
|
simulateDescriptorResponse(params: BluetoothSimulateDescriptorResponseParameters): Promise<void>;
|
|
221
|
-
onRequestDevicePromptUpdated(callback: (params: BluetoothRequestDevicePromptUpdatedParameters) => void): Promise<void>;
|
|
222
|
-
onGattConnectionAttempted(callback: (params: BluetoothGattConnectionAttemptedParameters) => void): Promise<void>;
|
|
223
385
|
}
|