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.
Files changed (49) hide show
  1. package/CHANGES.md +16 -0
  2. package/bidi/generated/bluetooth.d.ts +199 -37
  3. package/bidi/generated/bluetooth.js +212 -106
  4. package/bidi/generated/browser.d.ts +81 -28
  5. package/bidi/generated/browser.js +97 -69
  6. package/bidi/generated/browsing_context.d.ts +269 -87
  7. package/bidi/generated/browsing_context.js +328 -241
  8. package/bidi/generated/common.d.ts +105 -21
  9. package/bidi/generated/common.js +64 -15
  10. package/bidi/generated/digital_credentials.d.ts +41 -0
  11. package/bidi/generated/digital_credentials.js +54 -0
  12. package/bidi/generated/emulation.d.ts +347 -77
  13. package/bidi/generated/emulation.js +262 -101
  14. package/bidi/generated/input.d.ts +63 -35
  15. package/bidi/generated/input.js +77 -51
  16. package/bidi/generated/log.d.ts +39 -18
  17. package/bidi/generated/log.js +23 -43
  18. package/bidi/generated/network.d.ts +248 -76
  19. package/bidi/generated/network.js +247 -181
  20. package/bidi/generated/permissions.d.ts +22 -4
  21. package/bidi/generated/permissions.js +31 -17
  22. package/bidi/generated/script.d.ts +166 -70
  23. package/bidi/generated/script.js +203 -116
  24. package/bidi/generated/session.d.ts +76 -36
  25. package/bidi/generated/session.js +81 -48
  26. package/bidi/generated/speculation.d.ts +15 -5
  27. package/bidi/generated/speculation.js +20 -16
  28. package/bidi/generated/storage.d.ts +41 -17
  29. package/bidi/generated/storage.js +58 -40
  30. package/bidi/generated/user_agent_client_hints.d.ts +25 -13
  31. package/bidi/generated/user_agent_client_hints.js +29 -18
  32. package/bidi/generated/webextension.d.ts +24 -10
  33. package/bidi/generated/webextension.js +39 -25
  34. package/bidi/serialization/enum.js +6 -3
  35. package/bidi/serialization/record.js +34 -29
  36. package/bin/linux-arm64/selenium-manager +0 -0
  37. package/bin/linux-x86_64/selenium-manager +0 -0
  38. package/bin/macos/selenium-manager +0 -0
  39. package/bin/selenium-manager-THIRD-PARTY-NOTICES.txt +74 -43
  40. package/bin/selenium-manager.cdx.json +421 -421
  41. package/bin/windows/selenium-manager.exe +0 -0
  42. package/eslint.config.js +2 -1
  43. package/firefox.js +7 -104
  44. package/index.js +8 -0
  45. package/lib/atoms/find-elements.js +14 -2
  46. package/package.json +9 -9
  47. package/remote/index.js +12 -3
  48. package/remote/util.js +5 -5
  49. package/testing/index.js +84 -1
@@ -17,138 +17,244 @@
17
17
  // under the License.
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.Bluetooth = void 0;
20
+ // DO NOT EDIT! This file is generated by javascript/selenium-webdriver/generate_bidi.mjs.
21
+ // Regenerate with: `bazel build //javascript/selenium-webdriver:create-bidi-src`
22
+ // Built from the WebDriver BiDi CDDL spec (v1.0).
23
+ // Source: https://github.com/w3c/webref/tree/main/ed/cddl
24
+ const record_js_1 = require("../serialization/record.js");
25
+ const enum_js_1 = require("../serialization/enum.js");
26
+ const union_js_1 = require("../serialization/union.js");
27
+ const domain_js_1 = require("../domain.js");
28
+ (0, record_js_1.defineAlias)('bluetooth.BluetoothUuid', { "primitive": "string" });
29
+ const BluetoothBluetoothManufacturerData = (0, record_js_1.defineRecord)('bluetooth.BluetoothManufacturerData', [{ "name": "key", "wire": "key", "required": true, "type": { "primitive": "integer" } }, { "name": "data", "wire": "data", "required": true, "type": { "primitive": "string" } }]);
30
+ const BluetoothCharacteristicProperties = (0, record_js_1.defineRecord)('bluetooth.CharacteristicProperties', [{ "name": "broadcast", "wire": "broadcast", "required": false, "type": { "primitive": "boolean" } }, { "name": "read", "wire": "read", "required": false, "type": { "primitive": "boolean" } }, { "name": "writeWithoutResponse", "wire": "writeWithoutResponse", "required": false, "type": { "primitive": "boolean" } }, { "name": "write", "wire": "write", "required": false, "type": { "primitive": "boolean" } }, { "name": "notify", "wire": "notify", "required": false, "type": { "primitive": "boolean" } }, { "name": "indicate", "wire": "indicate", "required": false, "type": { "primitive": "boolean" } }, { "name": "authenticatedSignedWrites", "wire": "authenticatedSignedWrites", "required": false, "type": { "primitive": "boolean" } }, { "name": "extendedProperties", "wire": "extendedProperties", "required": false, "type": { "primitive": "boolean" } }]);
31
+ (0, record_js_1.defineAlias)('bluetooth.RequestDevice', { "primitive": "string" });
32
+ const BluetoothRequestDeviceInfo = (0, record_js_1.defineRecord)('bluetooth.RequestDeviceInfo', [{ "name": "id", "wire": "id", "required": true, "type": { "ref": "bluetooth.RequestDevice" } }, { "name": "name", "wire": "name", "required": true, "type": { "primitive": "string", "nullable": true } }]);
33
+ (0, record_js_1.defineAlias)('bluetooth.RequestDevicePrompt', { "primitive": "string" });
34
+ const BluetoothScanRecord = (0, record_js_1.defineRecord)('bluetooth.ScanRecord', [{ "name": "name", "wire": "name", "required": false, "type": { "primitive": "string" } }, { "name": "uuids", "wire": "uuids", "required": false, "type": { "list": { "ref": "bluetooth.BluetoothUuid" } } }, { "name": "appearance", "wire": "appearance", "required": false, "type": { "primitive": "number" } }, { "name": "manufacturerData", "wire": "manufacturerData", "required": false, "type": { "list": { "ref": "bluetooth.BluetoothManufacturerData" } } }]);
35
+ const BluetoothHandleRequestDevicePrompt = (0, record_js_1.defineRecord)('bluetooth.HandleRequestDevicePrompt', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.handleRequestDevicePrompt" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.HandleRequestDevicePromptParameters" } }]);
36
+ const BluetoothHandleRequestDevicePromptParametersUnion = (0, union_js_1.defineUnion)('bluetooth.HandleRequestDevicePromptParameters', { "by": "accept", "variants": [{ "value": true, "ref": "bluetooth.HandleRequestDevicePromptParameters_AcceptParameters" }, { "value": false, "ref": "bluetooth.HandleRequestDevicePromptParameters_CancelParameters" }] }, { "objectOnly": true });
37
+ const BluetoothSimulateAdapter = (0, record_js_1.defineRecord)('bluetooth.SimulateAdapter', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateAdapter" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateAdapterParameters" } }]);
38
+ const BluetoothSimulateAdapterParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateAdapterParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "leSupported", "wire": "leSupported", "required": false, "type": { "primitive": "boolean" } }, { "name": "state", "wire": "state", "required": true, "type": { "ref": "bluetooth.SimulateAdapterParametersState" } }]);
39
+ const BluetoothDisableSimulation = (0, record_js_1.defineRecord)('bluetooth.DisableSimulation', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.disableSimulation" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.DisableSimulationParameters" } }]);
40
+ const BluetoothDisableSimulationParameters = (0, record_js_1.defineRecord)('bluetooth.DisableSimulationParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }]);
41
+ const BluetoothSimulatePreconnectedPeripheral = (0, record_js_1.defineRecord)('bluetooth.SimulatePreconnectedPeripheral', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulatePreconnectedPeripheral" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulatePreconnectedPeripheralParameters" } }]);
42
+ const BluetoothSimulatePreconnectedPeripheralParameters = (0, record_js_1.defineRecord)('bluetooth.SimulatePreconnectedPeripheralParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "name", "wire": "name", "required": true, "type": { "primitive": "string" } }, { "name": "manufacturerData", "wire": "manufacturerData", "required": true, "type": { "list": { "ref": "bluetooth.BluetoothManufacturerData" } } }, { "name": "knownServiceUuids", "wire": "knownServiceUuids", "required": true, "type": { "list": { "ref": "bluetooth.BluetoothUuid" } } }]);
43
+ const BluetoothSimulateAdvertisement = (0, record_js_1.defineRecord)('bluetooth.SimulateAdvertisement', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateAdvertisement" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateAdvertisementParameters" } }]);
44
+ const BluetoothSimulateAdvertisementParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateAdvertisementParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "scanEntry", "wire": "scanEntry", "required": true, "type": { "ref": "bluetooth.SimulateAdvertisementScanEntryParameters" } }]);
45
+ const BluetoothSimulateAdvertisementScanEntryParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateAdvertisementScanEntryParameters', [{ "name": "deviceAddress", "wire": "deviceAddress", "required": true, "type": { "primitive": "string" } }, { "name": "rssi", "wire": "rssi", "required": true, "type": { "primitive": "number" } }, { "name": "scanRecord", "wire": "scanRecord", "required": true, "type": { "ref": "bluetooth.ScanRecord" } }]);
46
+ const BluetoothSimulateGattConnectionResponse = (0, record_js_1.defineRecord)('bluetooth.SimulateGattConnectionResponse', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateGattConnectionResponse" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateGattConnectionResponseParameters" } }]);
47
+ const BluetoothSimulateGattConnectionResponseParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateGattConnectionResponseParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "code", "wire": "code", "required": true, "type": { "primitive": "integer" } }]);
48
+ const BluetoothSimulateGattDisconnection = (0, record_js_1.defineRecord)('bluetooth.SimulateGattDisconnection', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateGattDisconnection" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateGattDisconnectionParameters" } }]);
49
+ const BluetoothSimulateGattDisconnectionParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateGattDisconnectionParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }]);
50
+ const BluetoothSimulateService = (0, record_js_1.defineRecord)('bluetooth.SimulateService', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateService" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateServiceParameters" } }]);
51
+ const BluetoothSimulateServiceParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateServiceParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "uuid", "wire": "uuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "type", "wire": "type", "required": true, "type": { "ref": "bluetooth.SimulateServiceParametersType" } }]);
52
+ const BluetoothSimulateCharacteristic = (0, record_js_1.defineRecord)('bluetooth.SimulateCharacteristic', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateCharacteristic" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateCharacteristicParameters" } }]);
53
+ const BluetoothSimulateCharacteristicParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateCharacteristicParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "serviceUuid", "wire": "serviceUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "characteristicUuid", "wire": "characteristicUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "characteristicProperties", "wire": "characteristicProperties", "required": false, "type": { "ref": "bluetooth.CharacteristicProperties" } }, { "name": "type", "wire": "type", "required": true, "type": { "ref": "bluetooth.SimulateCharacteristicParametersType" } }]);
54
+ const BluetoothSimulateCharacteristicResponse = (0, record_js_1.defineRecord)('bluetooth.SimulateCharacteristicResponse', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateCharacteristicResponse" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateCharacteristicResponseParameters" } }]);
55
+ const BluetoothSimulateCharacteristicResponseParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateCharacteristicResponseParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "serviceUuid", "wire": "serviceUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "characteristicUuid", "wire": "characteristicUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "type", "wire": "type", "required": true, "type": { "ref": "bluetooth.SimulateCharacteristicResponseParametersType" } }, { "name": "code", "wire": "code", "required": true, "type": { "primitive": "integer" } }, { "name": "data", "wire": "data", "required": false, "type": { "list": { "primitive": "integer" } } }]);
56
+ const BluetoothSimulateDescriptor = (0, record_js_1.defineRecord)('bluetooth.SimulateDescriptor', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateDescriptor" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateDescriptorParameters" } }]);
57
+ const BluetoothSimulateDescriptorParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateDescriptorParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "serviceUuid", "wire": "serviceUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "characteristicUuid", "wire": "characteristicUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "descriptorUuid", "wire": "descriptorUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "type", "wire": "type", "required": true, "type": { "ref": "bluetooth.SimulateDescriptorParametersType" } }]);
58
+ const BluetoothSimulateDescriptorResponse = (0, record_js_1.defineRecord)('bluetooth.SimulateDescriptorResponse', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.simulateDescriptorResponse" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.SimulateDescriptorResponseParameters" } }]);
59
+ const BluetoothSimulateDescriptorResponseParameters = (0, record_js_1.defineRecord)('bluetooth.SimulateDescriptorResponseParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "serviceUuid", "wire": "serviceUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "characteristicUuid", "wire": "characteristicUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "descriptorUuid", "wire": "descriptorUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "type", "wire": "type", "required": true, "type": { "ref": "bluetooth.SimulateDescriptorResponseParametersType" } }, { "name": "code", "wire": "code", "required": true, "type": { "primitive": "integer" } }, { "name": "data", "wire": "data", "required": false, "type": { "list": { "primitive": "integer" } } }]);
60
+ const BluetoothRequestDevicePromptUpdated = (0, record_js_1.defineRecord)('bluetooth.RequestDevicePromptUpdated', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.requestDevicePromptUpdated" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.RequestDevicePromptUpdatedParameters" } }]);
61
+ const BluetoothRequestDevicePromptUpdatedParameters = (0, record_js_1.defineRecord)('bluetooth.RequestDevicePromptUpdatedParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "prompt", "wire": "prompt", "required": true, "type": { "ref": "bluetooth.RequestDevicePrompt" } }, { "name": "devices", "wire": "devices", "required": true, "type": { "list": { "ref": "bluetooth.RequestDeviceInfo" } } }]);
62
+ const BluetoothGattConnectionAttempted = (0, record_js_1.defineRecord)('bluetooth.GattConnectionAttempted', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.gattConnectionAttempted" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.GattConnectionAttemptedParameters" } }]);
63
+ const BluetoothGattConnectionAttemptedParameters = (0, record_js_1.defineRecord)('bluetooth.GattConnectionAttemptedParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }]);
64
+ const BluetoothCharacteristicEventGenerated = (0, record_js_1.defineRecord)('bluetooth.CharacteristicEventGenerated', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.characteristicEventGenerated" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.CharacteristicEventGeneratedParameters" } }]);
65
+ const BluetoothCharacteristicEventGeneratedParameters = (0, record_js_1.defineRecord)('bluetooth.CharacteristicEventGeneratedParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "serviceUuid", "wire": "serviceUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "characteristicUuid", "wire": "characteristicUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "type", "wire": "type", "required": true, "type": { "ref": "bluetooth.CharacteristicEventGeneratedParametersType" } }, { "name": "data", "wire": "data", "required": false, "type": { "list": { "primitive": "integer" } } }]);
66
+ const BluetoothDescriptorEventGenerated = (0, record_js_1.defineRecord)('bluetooth.DescriptorEventGenerated', [{ "name": "method", "wire": "method", "required": true, "type": { "const": "bluetooth.descriptorEventGenerated" } }, { "name": "params", "wire": "params", "required": true, "type": { "ref": "bluetooth.DescriptorEventGeneratedParameters" } }]);
67
+ const BluetoothDescriptorEventGeneratedParameters = (0, record_js_1.defineRecord)('bluetooth.DescriptorEventGeneratedParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "address", "wire": "address", "required": true, "type": { "primitive": "string" } }, { "name": "serviceUuid", "wire": "serviceUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "characteristicUuid", "wire": "characteristicUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "descriptorUuid", "wire": "descriptorUuid", "required": true, "type": { "ref": "bluetooth.BluetoothUuid" } }, { "name": "type", "wire": "type", "required": true, "type": { "ref": "bluetooth.DescriptorEventGeneratedParametersType" } }, { "name": "data", "wire": "data", "required": false, "type": { "list": { "primitive": "integer" } } }]);
68
+ const BluetoothSimulateAdapterParametersStateEnum = (0, enum_js_1.defineEnum)('bluetooth.SimulateAdapterParametersState', ["absent", "powered-off", "powered-on"]);
69
+ const BluetoothSimulateServiceParametersTypeEnum = (0, enum_js_1.defineEnum)('bluetooth.SimulateServiceParametersType', ["add", "remove"]);
70
+ const BluetoothSimulateCharacteristicParametersTypeEnum = (0, enum_js_1.defineEnum)('bluetooth.SimulateCharacteristicParametersType', ["add", "remove"]);
71
+ const BluetoothSimulateCharacteristicResponseParametersTypeEnum = (0, enum_js_1.defineEnum)('bluetooth.SimulateCharacteristicResponseParametersType', ["read", "write", "subscribe-to-notifications", "unsubscribe-from-notifications"]);
72
+ const BluetoothSimulateDescriptorParametersTypeEnum = (0, enum_js_1.defineEnum)('bluetooth.SimulateDescriptorParametersType', ["add", "remove"]);
73
+ const BluetoothSimulateDescriptorResponseParametersTypeEnum = (0, enum_js_1.defineEnum)('bluetooth.SimulateDescriptorResponseParametersType', ["read", "write"]);
74
+ const BluetoothCharacteristicEventGeneratedParametersTypeEnum = (0, enum_js_1.defineEnum)('bluetooth.CharacteristicEventGeneratedParametersType', ["read", "write-with-response", "write-without-response", "subscribe-to-notifications", "unsubscribe-from-notifications"]);
75
+ const BluetoothDescriptorEventGeneratedParametersTypeEnum = (0, enum_js_1.defineEnum)('bluetooth.DescriptorEventGeneratedParametersType', ["read", "write"]);
76
+ const BluetoothHandleRequestDevicePromptParameters_AcceptParameters = (0, record_js_1.defineRecord)('bluetooth.HandleRequestDevicePromptParameters_AcceptParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "prompt", "wire": "prompt", "required": true, "type": { "ref": "bluetooth.RequestDevicePrompt" } }, { "name": "accept", "wire": "accept", "required": true, "type": { "const": true } }, { "name": "device", "wire": "device", "required": true, "type": { "ref": "bluetooth.RequestDevice" } }]);
77
+ const BluetoothHandleRequestDevicePromptParameters_CancelParameters = (0, record_js_1.defineRecord)('bluetooth.HandleRequestDevicePromptParameters_CancelParameters', [{ "name": "context", "wire": "context", "required": true, "type": { "primitive": "string" } }, { "name": "prompt", "wire": "prompt", "required": true, "type": { "ref": "bluetooth.RequestDevicePrompt" } }, { "name": "accept", "wire": "accept", "required": true, "type": { "const": false } }]);
20
78
  // --- Implementation ---
21
- class Bluetooth {
22
- constructor(bidi) {
23
- this.bidi = bidi;
24
- }
79
+ /**
80
+ * This is an unsupported API. No compatibility guarantees are provided.
81
+ * It tracks the W3C WebDriver BiDi specification directly. As the specification
82
+ * evolves, this API will change or be removed without prior notice.
83
+ */
84
+ class Bluetooth extends domain_js_1.Domain {
25
85
  static async create(driver) {
26
- const caps = await driver.getCapabilities();
27
- if (!caps.get('webSocketUrl')) {
28
- throw new Error('WebDriver instance must support BiDi protocol');
29
- }
30
- const bidi = await driver.getBidi();
31
- return new Bluetooth(bidi);
86
+ return new Bluetooth(await domain_js_1.Domain.connect(driver), domain_js_1.DOMAIN_TOKEN);
32
87
  }
88
+ /**
89
+ * @param {BluetoothHandleRequestDevicePromptParameters} params
90
+ * @returns {Promise<void>}
91
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-handleRequestDevicePrompt
92
+ */
33
93
  async handleRequestDevicePrompt(params) {
34
- const response = await this.bidi.send({
35
- method: 'bluetooth.handleRequestDevicePrompt',
36
- params: params,
37
- });
38
- if (response['type'] === 'error') {
39
- throw new Error(`${response['error']}: ${response['message']}`);
40
- }
94
+ const validatedParams = BluetoothHandleRequestDevicePromptParametersUnion.build(params);
95
+ await this.send('bluetooth.handleRequestDevicePrompt', validatedParams);
41
96
  }
97
+ /**
98
+ * @param {BluetoothSimulateAdapterParameters} params
99
+ * @param {string} params.context
100
+ * @param {boolean} [params.leSupported]
101
+ * @param {BluetoothSimulateAdapterParametersState} params.state
102
+ * @returns {Promise<void>}
103
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateAdapter
104
+ */
42
105
  async simulateAdapter(params) {
43
- const response = await this.bidi.send({
44
- method: 'bluetooth.simulateAdapter',
45
- params: params,
46
- });
47
- if (response['type'] === 'error') {
48
- throw new Error(`${response['error']}: ${response['message']}`);
49
- }
106
+ const validatedParams = new BluetoothSimulateAdapterParameters(params);
107
+ await this.send('bluetooth.simulateAdapter', validatedParams);
50
108
  }
109
+ /**
110
+ * @param {BluetoothDisableSimulationParameters} params
111
+ * @param {string} params.context
112
+ * @returns {Promise<void>}
113
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-disableSimulation
114
+ */
51
115
  async disableSimulation(params) {
52
- const response = await this.bidi.send({
53
- method: 'bluetooth.disableSimulation',
54
- params: params,
55
- });
56
- if (response['type'] === 'error') {
57
- throw new Error(`${response['error']}: ${response['message']}`);
58
- }
116
+ const validatedParams = new BluetoothDisableSimulationParameters(params);
117
+ await this.send('bluetooth.disableSimulation', validatedParams);
59
118
  }
119
+ /**
120
+ * @param {BluetoothSimulatePreconnectedPeripheralParameters} params
121
+ * @param {string} params.context
122
+ * @param {string} params.address
123
+ * @param {string} params.name
124
+ * @param {Array<BluetoothBluetoothManufacturerData>} params.manufacturerData
125
+ * @param {Array<BluetoothBluetoothUuid>} params.knownServiceUuids
126
+ * @returns {Promise<void>}
127
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulatePreconnectedPeripheral
128
+ */
60
129
  async simulatePreconnectedPeripheral(params) {
61
- const response = await this.bidi.send({
62
- method: 'bluetooth.simulatePreconnectedPeripheral',
63
- params: params,
64
- });
65
- if (response['type'] === 'error') {
66
- throw new Error(`${response['error']}: ${response['message']}`);
67
- }
130
+ const validatedParams = new BluetoothSimulatePreconnectedPeripheralParameters(params);
131
+ await this.send('bluetooth.simulatePreconnectedPeripheral', validatedParams);
68
132
  }
133
+ /**
134
+ * @param {BluetoothSimulateAdvertisementParameters} params
135
+ * @param {string} params.context
136
+ * @param {BluetoothSimulateAdvertisementScanEntryParameters} params.scanEntry
137
+ * @returns {Promise<void>}
138
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateAdvertisement
139
+ */
69
140
  async simulateAdvertisement(params) {
70
- const response = await this.bidi.send({
71
- method: 'bluetooth.simulateAdvertisement',
72
- params: params,
73
- });
74
- if (response['type'] === 'error') {
75
- throw new Error(`${response['error']}: ${response['message']}`);
76
- }
141
+ const validatedParams = new BluetoothSimulateAdvertisementParameters(params);
142
+ await this.send('bluetooth.simulateAdvertisement', validatedParams);
77
143
  }
144
+ /**
145
+ * @param {BluetoothSimulateGattConnectionResponseParameters} params
146
+ * @param {string} params.context
147
+ * @param {string} params.address
148
+ * @param {number} params.code
149
+ * @returns {Promise<void>}
150
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateGattConnectionResponse
151
+ */
78
152
  async simulateGattConnectionResponse(params) {
79
- const response = await this.bidi.send({
80
- method: 'bluetooth.simulateGattConnectionResponse',
81
- params: params,
82
- });
83
- if (response['type'] === 'error') {
84
- throw new Error(`${response['error']}: ${response['message']}`);
85
- }
153
+ const validatedParams = new BluetoothSimulateGattConnectionResponseParameters(params);
154
+ await this.send('bluetooth.simulateGattConnectionResponse', validatedParams);
86
155
  }
156
+ /**
157
+ * @param {BluetoothSimulateGattDisconnectionParameters} params
158
+ * @param {string} params.context
159
+ * @param {string} params.address
160
+ * @returns {Promise<void>}
161
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateGattDisconnection
162
+ */
87
163
  async simulateGattDisconnection(params) {
88
- const response = await this.bidi.send({
89
- method: 'bluetooth.simulateGattDisconnection',
90
- params: params,
91
- });
92
- if (response['type'] === 'error') {
93
- throw new Error(`${response['error']}: ${response['message']}`);
94
- }
164
+ const validatedParams = new BluetoothSimulateGattDisconnectionParameters(params);
165
+ await this.send('bluetooth.simulateGattDisconnection', validatedParams);
95
166
  }
167
+ /**
168
+ * @param {BluetoothSimulateServiceParameters} params
169
+ * @param {string} params.context
170
+ * @param {string} params.address
171
+ * @param {BluetoothBluetoothUuid} params.uuid
172
+ * @param {BluetoothSimulateServiceParametersType} params.type
173
+ * @returns {Promise<void>}
174
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateService
175
+ */
96
176
  async simulateService(params) {
97
- const response = await this.bidi.send({
98
- method: 'bluetooth.simulateService',
99
- params: params,
100
- });
101
- if (response['type'] === 'error') {
102
- throw new Error(`${response['error']}: ${response['message']}`);
103
- }
177
+ const validatedParams = new BluetoothSimulateServiceParameters(params);
178
+ await this.send('bluetooth.simulateService', validatedParams);
104
179
  }
180
+ /**
181
+ * @param {BluetoothSimulateCharacteristicParameters} params
182
+ * @param {string} params.context
183
+ * @param {string} params.address
184
+ * @param {BluetoothBluetoothUuid} params.serviceUuid
185
+ * @param {BluetoothBluetoothUuid} params.characteristicUuid
186
+ * @param {BluetoothCharacteristicProperties} [params.characteristicProperties]
187
+ * @param {BluetoothSimulateCharacteristicParametersType} params.type
188
+ * @returns {Promise<void>}
189
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateCharacteristic
190
+ */
105
191
  async simulateCharacteristic(params) {
106
- const response = await this.bidi.send({
107
- method: 'bluetooth.simulateCharacteristic',
108
- params: params,
109
- });
110
- if (response['type'] === 'error') {
111
- throw new Error(`${response['error']}: ${response['message']}`);
112
- }
192
+ const validatedParams = new BluetoothSimulateCharacteristicParameters(params);
193
+ await this.send('bluetooth.simulateCharacteristic', validatedParams);
113
194
  }
195
+ /**
196
+ * @param {BluetoothSimulateCharacteristicResponseParameters} params
197
+ * @param {string} params.context
198
+ * @param {string} params.address
199
+ * @param {BluetoothBluetoothUuid} params.serviceUuid
200
+ * @param {BluetoothBluetoothUuid} params.characteristicUuid
201
+ * @param {BluetoothSimulateCharacteristicResponseParametersType} params.type
202
+ * @param {number} params.code
203
+ * @param {Array<number>} [params.data]
204
+ * @returns {Promise<void>}
205
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateCharacteristicResponse
206
+ */
114
207
  async simulateCharacteristicResponse(params) {
115
- const response = await this.bidi.send({
116
- method: 'bluetooth.simulateCharacteristicResponse',
117
- params: params,
118
- });
119
- if (response['type'] === 'error') {
120
- throw new Error(`${response['error']}: ${response['message']}`);
121
- }
208
+ const validatedParams = new BluetoothSimulateCharacteristicResponseParameters(params);
209
+ await this.send('bluetooth.simulateCharacteristicResponse', validatedParams);
122
210
  }
211
+ /**
212
+ * @param {BluetoothSimulateDescriptorParameters} params
213
+ * @param {string} params.context
214
+ * @param {string} params.address
215
+ * @param {BluetoothBluetoothUuid} params.serviceUuid
216
+ * @param {BluetoothBluetoothUuid} params.characteristicUuid
217
+ * @param {BluetoothBluetoothUuid} params.descriptorUuid
218
+ * @param {BluetoothSimulateDescriptorParametersType} params.type
219
+ * @returns {Promise<void>}
220
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateDescriptor
221
+ */
123
222
  async simulateDescriptor(params) {
124
- const response = await this.bidi.send({
125
- method: 'bluetooth.simulateDescriptor',
126
- params: params,
127
- });
128
- if (response['type'] === 'error') {
129
- throw new Error(`${response['error']}: ${response['message']}`);
130
- }
223
+ const validatedParams = new BluetoothSimulateDescriptorParameters(params);
224
+ await this.send('bluetooth.simulateDescriptor', validatedParams);
131
225
  }
226
+ /**
227
+ * @param {BluetoothSimulateDescriptorResponseParameters} params
228
+ * @param {string} params.context
229
+ * @param {string} params.address
230
+ * @param {BluetoothBluetoothUuid} params.serviceUuid
231
+ * @param {BluetoothBluetoothUuid} params.characteristicUuid
232
+ * @param {BluetoothBluetoothUuid} params.descriptorUuid
233
+ * @param {BluetoothSimulateDescriptorResponseParametersType} params.type
234
+ * @param {number} params.code
235
+ * @param {Array<number>} [params.data]
236
+ * @returns {Promise<void>}
237
+ * @see https://w3c.github.io/webdriver-bidi/#command-bluetooth-simulateDescriptorResponse
238
+ */
132
239
  async simulateDescriptorResponse(params) {
133
- const response = await this.bidi.send({
134
- method: 'bluetooth.simulateDescriptorResponse',
135
- params: params,
136
- });
137
- if (response['type'] === 'error') {
138
- throw new Error(`${response['error']}: ${response['message']}`);
139
- }
140
- }
141
- async onRequestDevicePromptUpdated(callback) {
142
- await this.bidi.subscribe('bluetooth.requestDevicePromptUpdated');
143
- this.bidi.on('bluetooth.requestDevicePromptUpdated', (params) => {
144
- callback(params);
145
- });
146
- }
147
- async onGattConnectionAttempted(callback) {
148
- await this.bidi.subscribe('bluetooth.gattConnectionAttempted');
149
- this.bidi.on('bluetooth.gattConnectionAttempted', (params) => {
150
- callback(params);
151
- });
240
+ const validatedParams = new BluetoothSimulateDescriptorResponseParameters(params);
241
+ await this.send('bluetooth.simulateDescriptorResponse', validatedParams);
152
242
  }
153
243
  }
154
244
  exports.Bluetooth = Bluetooth;
245
+ /** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-requestDevicePromptUpdated */
246
+ Bluetooth.REQUEST_DEVICE_PROMPT_UPDATED = (0, domain_js_1.event)('bluetooth.requestDevicePromptUpdated', BluetoothRequestDevicePromptUpdatedParameters);
247
+ /** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-gattConnectionAttempted */
248
+ Bluetooth.GATT_CONNECTION_ATTEMPTED = (0, domain_js_1.event)('bluetooth.gattConnectionAttempted', BluetoothGattConnectionAttemptedParameters);
249
+ /** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-characteristicEventGenerated */
250
+ Bluetooth.CHARACTERISTIC_EVENT_GENERATED = (0, domain_js_1.event)('bluetooth.characteristicEventGenerated', BluetoothCharacteristicEventGeneratedParameters);
251
+ /** @see https://w3c.github.io/webdriver-bidi/#event-bluetooth-descriptorEventGenerated */
252
+ Bluetooth.DESCRIPTOR_EVENT_GENERATED = (0, domain_js_1.event)('bluetooth.descriptorEventGenerated', BluetoothDescriptorEventGeneratedParameters);
253
+ Bluetooth.SimulateAdapterParametersState = Object.freeze({ ABSENT: "absent", POWERED_OFF: "powered-off", POWERED_ON: "powered-on" });
254
+ Bluetooth.SimulateServiceParametersType = Object.freeze({ ADD: "add", REMOVE: "remove" });
255
+ Bluetooth.SimulateCharacteristicParametersType = Object.freeze({ ADD: "add", REMOVE: "remove" });
256
+ Bluetooth.SimulateCharacteristicResponseParametersType = Object.freeze({ READ: "read", WRITE: "write", SUBSCRIBE_TO_NOTIFICATIONS: "subscribe-to-notifications", UNSUBSCRIBE_FROM_NOTIFICATIONS: "unsubscribe-from-notifications" });
257
+ Bluetooth.SimulateDescriptorParametersType = Object.freeze({ ADD: "add", REMOVE: "remove" });
258
+ Bluetooth.SimulateDescriptorResponseParametersType = Object.freeze({ READ: "read", WRITE: "write" });
259
+ Bluetooth.CharacteristicEventGeneratedParametersType = Object.freeze({ READ: "read", WRITE_WITH_RESPONSE: "write-with-response", WRITE_WITHOUT_RESPONSE: "write-without-response", SUBSCRIBE_TO_NOTIFICATIONS: "subscribe-to-notifications", UNSUBSCRIBE_FROM_NOTIFICATIONS: "unsubscribe-from-notifications" });
260
+ Bluetooth.DescriptorEventGeneratedParametersType = Object.freeze({ READ: "read", WRITE: "write" });
@@ -1,13 +1,14 @@
1
1
  import type { EmptyParams, EmptyResult, JsInt, JsUint } from './common.js';
2
+ import './common.js';
2
3
  import type { SessionProxyConfiguration, SessionUserPromptHandler } from './session.js';
3
- export type BrowserCommand = BrowserClose | BrowserCreateUserContext | BrowserGetClientWindows | BrowserGetUserContexts | BrowserRemoveUserContext | BrowserSetClientWindowState | BrowserSetDownloadBehavior;
4
- export type BrowserResult = BrowserCloseResult | BrowserCreateUserContextResult | BrowserGetClientWindowsResult | BrowserGetUserContextsResult | BrowserRemoveUserContextResult | BrowserSetClientWindowStateResult | BrowserSetDownloadBehaviorResult;
4
+ import './session.js';
5
+ import { Domain } from '../domain.js';
5
6
  export type BrowserClientWindow = string;
6
7
  export interface BrowserClientWindowInfo {
7
8
  active: boolean;
8
9
  clientWindow: BrowserClientWindow;
9
10
  height: JsUint;
10
- state: "fullscreen" | "maximized" | "minimized" | "normal";
11
+ state: BrowserClientWindowInfoState;
11
12
  width: JsUint;
12
13
  x: JsInt;
13
14
  y: JsInt;
@@ -36,14 +37,14 @@ export interface BrowserGetClientWindows {
36
37
  params: EmptyParams;
37
38
  }
38
39
  export interface BrowserGetClientWindowsResult {
39
- clientWindows: BrowserClientWindowInfo[];
40
+ clientWindows: Array<BrowserClientWindowInfo>;
40
41
  }
41
42
  export interface BrowserGetUserContexts {
42
43
  method: "browser.getUserContexts";
43
44
  params: EmptyParams;
44
45
  }
45
46
  export interface BrowserGetUserContextsResult {
46
- userContexts: BrowserUserContextInfo[];
47
+ userContexts: Array<BrowserUserContextInfo>;
47
48
  }
48
49
  export interface BrowserRemoveUserContext {
49
50
  method: "browser.removeUserContext";
@@ -57,19 +58,7 @@ export interface BrowserSetClientWindowState {
57
58
  method: "browser.setClientWindowState";
58
59
  params: BrowserSetClientWindowStateParameters;
59
60
  }
60
- export type BrowserSetClientWindowStateParameters = (BrowserClientWindowNamedState | BrowserClientWindowRectState) & {
61
- clientWindow: BrowserClientWindow;
62
- };
63
- export interface BrowserClientWindowNamedState {
64
- state: "fullscreen" | "maximized" | "minimized";
65
- }
66
- export interface BrowserClientWindowRectState {
67
- state: "normal";
68
- width?: JsUint;
69
- height?: JsUint;
70
- x?: JsInt;
71
- y?: JsInt;
72
- }
61
+ export type BrowserSetClientWindowStateParameters = BrowserSetClientWindowStateParameters_ClientWindowNamedState | BrowserSetClientWindowStateParameters_ClientWindowRectState;
73
62
  export type BrowserSetClientWindowStateResult = BrowserClientWindowInfo;
74
63
  export interface BrowserSetDownloadBehavior {
75
64
  method: "browser.setDownloadBehavior";
@@ -77,28 +66,92 @@ export interface BrowserSetDownloadBehavior {
77
66
  }
78
67
  export interface BrowserSetDownloadBehaviorParameters {
79
68
  downloadBehavior: BrowserDownloadBehavior | null;
80
- userContexts?: BrowserUserContext[];
69
+ userContexts?: Array<BrowserUserContext>;
81
70
  }
82
- export type BrowserDownloadBehavior = (BrowserDownloadBehaviorAllowed | BrowserDownloadBehaviorDenied);
83
- export interface BrowserDownloadBehaviorAllowed {
71
+ export type BrowserDownloadBehavior = BrowserDownloadBehavior_Allowed | BrowserDownloadBehavior_Denied;
72
+ export type BrowserSetDownloadBehaviorResult = EmptyResult;
73
+ export type BrowserClientWindowInfoState = "fullscreen" | "maximized" | "minimized" | "normal";
74
+ export type BrowserClientWindowNamedStateState = "fullscreen" | "maximized" | "minimized";
75
+ export interface BrowserSetClientWindowStateParameters_ClientWindowNamedState {
76
+ clientWindow: BrowserClientWindow;
77
+ state: BrowserClientWindowNamedStateState;
78
+ }
79
+ export interface BrowserSetClientWindowStateParameters_ClientWindowRectState {
80
+ clientWindow: BrowserClientWindow;
81
+ state: "normal";
82
+ width?: JsUint;
83
+ height?: JsUint;
84
+ x?: JsInt;
85
+ y?: JsInt;
86
+ }
87
+ export interface BrowserDownloadBehavior_Allowed {
84
88
  type: "allowed";
85
89
  destinationFolder: string;
86
90
  }
87
- export interface BrowserDownloadBehaviorDenied {
91
+ export interface BrowserDownloadBehavior_Denied {
88
92
  type: "denied";
89
93
  }
90
- export type BrowserSetDownloadBehaviorResult = EmptyResult;
91
- /** @deprecated Use {@link Browser.create} instead — will be removed in a future major version. */
92
- export declare function getBrowserInstance(driver: unknown): Promise<Browser>;
93
- export declare class Browser {
94
- private readonly bidi;
95
- private constructor();
94
+ /**
95
+ * This is an unsupported API. No compatibility guarantees are provided.
96
+ * It tracks the W3C WebDriver BiDi specification directly. As the specification
97
+ * evolves, this API will change or be removed without prior notice.
98
+ */
99
+ export declare class Browser extends Domain {
100
+ static readonly ClientWindowInfoState: Readonly<{
101
+ readonly FULLSCREEN: "fullscreen";
102
+ readonly MAXIMIZED: "maximized";
103
+ readonly MINIMIZED: "minimized";
104
+ readonly NORMAL: "normal";
105
+ }>;
106
+ static readonly ClientWindowNamedStateState: Readonly<{
107
+ readonly FULLSCREEN: "fullscreen";
108
+ readonly MAXIMIZED: "maximized";
109
+ readonly MINIMIZED: "minimized";
110
+ }>;
96
111
  static create(driver: unknown): Promise<Browser>;
112
+ /**
113
+ * @returns {Promise<void>}
114
+ * @see https://w3c.github.io/webdriver-bidi/#command-browser-close
115
+ */
97
116
  close(): Promise<void>;
117
+ /**
118
+ * @param {BrowserCreateUserContextParameters} params
119
+ * @param {boolean} [params.acceptInsecureCerts]
120
+ * @param {SessionProxyConfiguration} [params.proxy]
121
+ * @param {SessionUserPromptHandler} [params.unhandledPromptBehavior]
122
+ * @returns {Promise<BrowserCreateUserContextResult>}
123
+ * @see https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext
124
+ */
98
125
  createUserContext(params: BrowserCreateUserContextParameters): Promise<BrowserCreateUserContextResult>;
126
+ /**
127
+ * @returns {Promise<BrowserGetClientWindowsResult>}
128
+ * @see https://w3c.github.io/webdriver-bidi/#command-browser-getClientWindows
129
+ */
99
130
  getClientWindows(): Promise<BrowserGetClientWindowsResult>;
131
+ /**
132
+ * @returns {Promise<BrowserGetUserContextsResult>}
133
+ * @see https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts
134
+ */
100
135
  getUserContexts(): Promise<BrowserGetUserContextsResult>;
136
+ /**
137
+ * @param {BrowserRemoveUserContextParameters} params
138
+ * @param {BrowserUserContext} params.userContext
139
+ * @returns {Promise<void>}
140
+ * @see https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext
141
+ */
101
142
  removeUserContext(params: BrowserRemoveUserContextParameters): Promise<void>;
143
+ /**
144
+ * @param {BrowserSetClientWindowStateParameters} params
145
+ * @returns {Promise<BrowserSetClientWindowStateResult>}
146
+ * @see https://w3c.github.io/webdriver-bidi/#command-browser-setClientWindowState
147
+ */
102
148
  setClientWindowState(params: BrowserSetClientWindowStateParameters): Promise<BrowserSetClientWindowStateResult>;
149
+ /**
150
+ * @param {BrowserSetDownloadBehaviorParameters} params
151
+ * @param {BrowserDownloadBehavior | null} params.downloadBehavior
152
+ * @param {Array<BrowserUserContext>} [params.userContexts]
153
+ * @returns {Promise<void>}
154
+ * @see https://w3c.github.io/webdriver-bidi/#command-browser-setDownloadBehavior
155
+ */
103
156
  setDownloadBehavior(params: BrowserSetDownloadBehaviorParameters): Promise<void>;
104
157
  }