selenium-webdriver 4.45.0 → 4.46.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +7 -0
  3. data/bin/linux/selenium-manager +0 -0
  4. data/bin/macos/selenium-manager +0 -0
  5. data/bin/windows/selenium-manager.exe +0 -0
  6. data/lib/selenium/webdriver/bidi/protocol/bluetooth.rb +465 -0
  7. data/lib/selenium/webdriver/bidi/protocol/browser.rb +222 -0
  8. data/lib/selenium/webdriver/bidi/protocol/browsing_context.rb +694 -0
  9. data/lib/selenium/webdriver/bidi/protocol/domain.rb +40 -0
  10. data/lib/selenium/webdriver/bidi/protocol/emulation.rb +334 -0
  11. data/lib/selenium/webdriver/bidi/protocol/input.rb +281 -0
  12. data/lib/selenium/webdriver/bidi/protocol/log.rb +104 -0
  13. data/lib/selenium/webdriver/bidi/protocol/network.rb +637 -0
  14. data/lib/selenium/webdriver/bidi/protocol/permissions.rb +73 -0
  15. data/lib/selenium/webdriver/bidi/protocol/script.rb +874 -0
  16. data/lib/selenium/webdriver/bidi/protocol/session.rb +241 -0
  17. data/lib/selenium/webdriver/bidi/protocol/speculation.rb +56 -0
  18. data/lib/selenium/webdriver/bidi/protocol/storage.rb +157 -0
  19. data/lib/selenium/webdriver/bidi/protocol/user_agent_client_hints.rb +83 -0
  20. data/lib/selenium/webdriver/bidi/protocol/web_extension.rb +93 -0
  21. data/lib/selenium/webdriver/bidi/protocol.rb +39 -0
  22. data/lib/selenium/webdriver/bidi/serialization/record.rb +226 -0
  23. data/lib/selenium/webdriver/bidi/serialization/union.rb +114 -0
  24. data/lib/selenium/webdriver/bidi/serialization.rb +78 -0
  25. data/lib/selenium/webdriver/bidi/support/bidi_generate.rb +936 -0
  26. data/lib/selenium/webdriver/bidi/support/check_generated.rb +55 -0
  27. data/lib/selenium/webdriver/bidi/transport.rb +52 -0
  28. data/lib/selenium/webdriver/bidi.rb +3 -0
  29. data/lib/selenium/webdriver/chrome/driver.rb +3 -3
  30. data/lib/selenium/webdriver/common/client_config.rb +97 -0
  31. data/lib/selenium/webdriver/common/driver.rb +2 -2
  32. data/lib/selenium/webdriver/common/local_driver.rb +15 -4
  33. data/lib/selenium/webdriver/common/proxy.rb +1 -1
  34. data/lib/selenium/webdriver/common.rb +1 -0
  35. data/lib/selenium/webdriver/edge/driver.rb +3 -3
  36. data/lib/selenium/webdriver/firefox/driver.rb +3 -3
  37. data/lib/selenium/webdriver/ie/driver.rb +3 -3
  38. data/lib/selenium/webdriver/remote/bidi_bridge.rb +6 -1
  39. data/lib/selenium/webdriver/remote/bridge.rb +8 -10
  40. data/lib/selenium/webdriver/remote/driver.rb +12 -4
  41. data/lib/selenium/webdriver/remote/http/common.rb +25 -12
  42. data/lib/selenium/webdriver/remote/http/default.rb +56 -39
  43. data/lib/selenium/webdriver/safari/driver.rb +3 -3
  44. data/lib/selenium/webdriver/version.rb +1 -1
  45. metadata +25 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b441a6e8d993250a3931dd136edc5749b16ab9b0b08bdb673d1e8b4f734418f0
4
- data.tar.gz: 784b3693ca66a564c57d68cab9b132e84c44225fb5615fb6d4587d9abaf2643c
3
+ metadata.gz: 9d03f884adcdabb6068889ee0577895c33f364516e508bb86835ca45ec01e4c0
4
+ data.tar.gz: ade817163210a4a54cbfdf3e12a5821c4aafa8bd1e7a4c061567b354521c9b22
5
5
  SHA512:
6
- metadata.gz: e317799f8e4cae55972263b3c866f08d48cf9029df08e3d1263cebc65da213e5e5758637d38edbf27fd36fe8f7c852b7358022e4ab8b860438fa41d1dbf465a2
7
- data.tar.gz: 94213e5c29e70daf13fc950994531983e1e453ebe169f8e43888e76dfa5a85ea1ee854653b516456547f467ce3ca7bb1c7e6d5e9a41380e1de55ced708f79c54
6
+ metadata.gz: e8601acb5590468cca756c57a25b2d7ec70167c70d6f27117d6cc14f3813113091912a156bc32f672679c041fc42b98a0130c4c38323695a71271e3c1d48f590
7
+ data.tar.gz: 0b1fd1623bf371bc602dc19e15b055fb2002e80615f50c07b4c559823a276d17eebf2921c6324fa487cdf3a29054d7f911eced1441a59823b0322c1cf63c9b77
data/CHANGES CHANGED
@@ -1,3 +1,10 @@
1
+ 4.46.0 (2026-07-10)
2
+ =========================
3
+ * Support CDP versions: v148, v149, v150
4
+ * trim whitespace around NO_PROXY entries (#17565)
5
+ * add ClientConfig for HTTP client customization (#17699)
6
+ * generate the BiDi protocol layer from the shared binding-neutral schema (#17731)
7
+
1
8
  4.45.0 (2026-06-15)
2
9
  =========================
3
10
  * Support CDP versions: v147, v148, v149
Binary file
Binary file
Binary file
@@ -0,0 +1,465 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Licensed to the Software Freedom Conservancy (SFC) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The SFC licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+
20
+ # This file is automatically generated. DO NOT EDIT!
21
+ # Regenerate with: bazel run //rb/lib/selenium/webdriver:bidi-generate
22
+
23
+ module Selenium
24
+ module WebDriver
25
+ class BiDi
26
+ module Protocol
27
+ # @api private
28
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
29
+ class Bluetooth < Domain
30
+ EVENTS = {
31
+ request_device_prompt_updated: 'bluetooth.requestDevicePromptUpdated',
32
+ gatt_connection_attempted: 'bluetooth.gattConnectionAttempted'
33
+ }.freeze
34
+
35
+ SIMULATE_ADAPTER_PARAMETERS_STATE = {
36
+ absent: 'absent',
37
+ powered_off: 'powered-off',
38
+ powered_on: 'powered-on'
39
+ }.freeze
40
+
41
+ SIMULATE_SERVICE_PARAMETERS_TYPE = {
42
+ add: 'add',
43
+ remove: 'remove'
44
+ }.freeze
45
+
46
+ SIMULATE_CHARACTERISTIC_PARAMETERS_TYPE = {
47
+ add: 'add',
48
+ remove: 'remove'
49
+ }.freeze
50
+
51
+ SIMULATE_CHARACTERISTIC_RESPONSE_PARAMETERS_TYPE = {
52
+ read: 'read',
53
+ write: 'write',
54
+ subscribe_to_notifications: 'subscribe-to-notifications',
55
+ unsubscribe_from_notifications: 'unsubscribe-from-notifications'
56
+ }.freeze
57
+
58
+ SIMULATE_DESCRIPTOR_PARAMETERS_TYPE = {
59
+ add: 'add',
60
+ remove: 'remove'
61
+ }.freeze
62
+
63
+ SIMULATE_DESCRIPTOR_RESPONSE_PARAMETERS_TYPE = {
64
+ read: 'read',
65
+ write: 'write'
66
+ }.freeze
67
+
68
+ CHARACTERISTIC_EVENT_GENERATED_PARAMETERS_TYPE = {
69
+ read: 'read',
70
+ write_with_response: 'write-with-response',
71
+ write_without_response: 'write-without-response',
72
+ subscribe_to_notifications: 'subscribe-to-notifications',
73
+ unsubscribe_from_notifications: 'unsubscribe-from-notifications'
74
+ }.freeze
75
+
76
+ DESCRIPTOR_EVENT_GENERATED_PARAMETERS_TYPE = {
77
+ read: 'read',
78
+ write: 'write'
79
+ }.freeze
80
+
81
+ # @api private
82
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
83
+ BluetoothManufacturerData = Serialization::Record.define(
84
+ key: {wire_key: 'key', primitive: 'integer'},
85
+ data: {wire_key: 'data', primitive: 'string'}
86
+ )
87
+
88
+ # @api private
89
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
90
+ CharacteristicProperties = Serialization::Record.define(
91
+ broadcast: {wire_key: 'broadcast', required: false, primitive: 'boolean'},
92
+ read: {wire_key: 'read', required: false, primitive: 'boolean'},
93
+ write_without_response: {wire_key: 'writeWithoutResponse', required: false, primitive: 'boolean'},
94
+ write: {wire_key: 'write', required: false, primitive: 'boolean'},
95
+ notify: {wire_key: 'notify', required: false, primitive: 'boolean'},
96
+ indicate: {wire_key: 'indicate', required: false, primitive: 'boolean'},
97
+ authenticated_signed_writes: {wire_key: 'authenticatedSignedWrites', required: false, primitive: 'boolean'},
98
+ extended_properties: {wire_key: 'extendedProperties', required: false, primitive: 'boolean'}
99
+ )
100
+
101
+ # @api private
102
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
103
+ RequestDeviceInfo = Serialization::Record.define(
104
+ id: 'id',
105
+ name: {wire_key: 'name', nullable: true, primitive: 'string'}
106
+ )
107
+
108
+ # @api private
109
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
110
+ ScanRecord = Serialization::Record.define(
111
+ name: {wire_key: 'name', required: false, primitive: 'string'},
112
+ uuids: {wire_key: 'uuids', required: false, list: true},
113
+ appearance: {wire_key: 'appearance', required: false, primitive: 'number'},
114
+ manufacturer_data: {
115
+ wire_key: 'manufacturerData',
116
+ required: false,
117
+ ref: 'Bluetooth::BluetoothManufacturerData',
118
+ list: true
119
+ }
120
+ )
121
+
122
+ # @api private
123
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
124
+ class HandleRequestDevicePromptParameters < Serialization::Union
125
+ discriminator 'accept'
126
+ variants(
127
+ true => 'Bluetooth::HandleRequestDevicePromptParameters::AcceptParameters',
128
+ false => 'Bluetooth::HandleRequestDevicePromptParameters::CancelParameters'
129
+ )
130
+
131
+ # @api private
132
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
133
+ AcceptParameters = Serialization::Record.define(
134
+ accept: {fixed: true},
135
+ context: {wire_key: 'context', primitive: 'string'},
136
+ prompt: 'prompt',
137
+ device: 'device'
138
+ )
139
+
140
+ # @api private
141
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
142
+ CancelParameters = Serialization::Record.define(
143
+ accept: {fixed: false},
144
+ context: {wire_key: 'context', primitive: 'string'},
145
+ prompt: 'prompt'
146
+ )
147
+ end
148
+
149
+ # @api private
150
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
151
+ SimulateAdapterParameters = Serialization::Record.define(
152
+ context: {wire_key: 'context', primitive: 'string'},
153
+ le_supported: {wire_key: 'leSupported', required: false, primitive: 'boolean'},
154
+ state: {wire_key: 'state', enum: 'Bluetooth::SIMULATE_ADAPTER_PARAMETERS_STATE'}
155
+ )
156
+
157
+ # @api private
158
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
159
+ DisableSimulationParameters = Serialization::Record.define(
160
+ context: {wire_key: 'context', primitive: 'string'}
161
+ )
162
+
163
+ # @api private
164
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
165
+ SimulatePreconnectedPeripheralParameters = Serialization::Record.define(
166
+ context: {wire_key: 'context', primitive: 'string'},
167
+ address: {wire_key: 'address', primitive: 'string'},
168
+ name: {wire_key: 'name', primitive: 'string'},
169
+ manufacturer_data: {wire_key: 'manufacturerData', ref: 'Bluetooth::BluetoothManufacturerData', list: true},
170
+ known_service_uuids: {wire_key: 'knownServiceUuids', list: true}
171
+ )
172
+
173
+ # @api private
174
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
175
+ SimulateAdvertisementParameters = Serialization::Record.define(
176
+ context: {wire_key: 'context', primitive: 'string'},
177
+ scan_entry: {wire_key: 'scanEntry', ref: 'Bluetooth::SimulateAdvertisementScanEntryParameters'}
178
+ )
179
+
180
+ # @api private
181
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
182
+ SimulateAdvertisementScanEntryParameters = Serialization::Record.define(
183
+ device_address: {wire_key: 'deviceAddress', primitive: 'string'},
184
+ rssi: {wire_key: 'rssi', primitive: 'number'},
185
+ scan_record: {wire_key: 'scanRecord', ref: 'Bluetooth::ScanRecord'}
186
+ )
187
+
188
+ # @api private
189
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
190
+ SimulateGattConnectionResponseParameters = Serialization::Record.define(
191
+ context: {wire_key: 'context', primitive: 'string'},
192
+ address: {wire_key: 'address', primitive: 'string'},
193
+ code: {wire_key: 'code', primitive: 'integer'}
194
+ )
195
+
196
+ # @api private
197
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
198
+ SimulateGattDisconnectionParameters = Serialization::Record.define(
199
+ context: {wire_key: 'context', primitive: 'string'},
200
+ address: {wire_key: 'address', primitive: 'string'}
201
+ )
202
+
203
+ # @api private
204
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
205
+ SimulateServiceParameters = Serialization::Record.define(
206
+ context: {wire_key: 'context', primitive: 'string'},
207
+ address: {wire_key: 'address', primitive: 'string'},
208
+ uuid: 'uuid',
209
+ type: {wire_key: 'type', enum: 'Bluetooth::SIMULATE_SERVICE_PARAMETERS_TYPE'}
210
+ )
211
+
212
+ # @api private
213
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
214
+ SimulateCharacteristicParameters = Serialization::Record.define(
215
+ context: {wire_key: 'context', primitive: 'string'},
216
+ address: {wire_key: 'address', primitive: 'string'},
217
+ service_uuid: 'serviceUuid',
218
+ characteristic_uuid: 'characteristicUuid',
219
+ characteristic_properties: {
220
+ wire_key: 'characteristicProperties',
221
+ required: false,
222
+ ref: 'Bluetooth::CharacteristicProperties'
223
+ },
224
+ type: {wire_key: 'type', enum: 'Bluetooth::SIMULATE_CHARACTERISTIC_PARAMETERS_TYPE'}
225
+ )
226
+
227
+ # @api private
228
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
229
+ SimulateCharacteristicResponseParameters = Serialization::Record.define(
230
+ context: {wire_key: 'context', primitive: 'string'},
231
+ address: {wire_key: 'address', primitive: 'string'},
232
+ service_uuid: 'serviceUuid',
233
+ characteristic_uuid: 'characteristicUuid',
234
+ type: {wire_key: 'type', enum: 'Bluetooth::SIMULATE_CHARACTERISTIC_RESPONSE_PARAMETERS_TYPE'},
235
+ code: {wire_key: 'code', primitive: 'integer'},
236
+ data: {wire_key: 'data', required: false, list: true}
237
+ )
238
+
239
+ # @api private
240
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
241
+ SimulateDescriptorParameters = Serialization::Record.define(
242
+ context: {wire_key: 'context', primitive: 'string'},
243
+ address: {wire_key: 'address', primitive: 'string'},
244
+ service_uuid: 'serviceUuid',
245
+ characteristic_uuid: 'characteristicUuid',
246
+ descriptor_uuid: 'descriptorUuid',
247
+ type: {wire_key: 'type', enum: 'Bluetooth::SIMULATE_DESCRIPTOR_PARAMETERS_TYPE'}
248
+ )
249
+
250
+ # @api private
251
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
252
+ SimulateDescriptorResponseParameters = Serialization::Record.define(
253
+ context: {wire_key: 'context', primitive: 'string'},
254
+ address: {wire_key: 'address', primitive: 'string'},
255
+ service_uuid: 'serviceUuid',
256
+ characteristic_uuid: 'characteristicUuid',
257
+ descriptor_uuid: 'descriptorUuid',
258
+ type: {wire_key: 'type', enum: 'Bluetooth::SIMULATE_DESCRIPTOR_RESPONSE_PARAMETERS_TYPE'},
259
+ code: {wire_key: 'code', primitive: 'integer'},
260
+ data: {wire_key: 'data', required: false, list: true}
261
+ )
262
+
263
+ # @api private
264
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
265
+ RequestDevicePromptUpdatedParameters = Serialization::Record.define(
266
+ context: {wire_key: 'context', primitive: 'string'},
267
+ prompt: 'prompt',
268
+ devices: {wire_key: 'devices', ref: 'Bluetooth::RequestDeviceInfo', list: true}
269
+ )
270
+
271
+ # @api private
272
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
273
+ GattConnectionAttemptedParameters = Serialization::Record.define(
274
+ context: {wire_key: 'context', primitive: 'string'},
275
+ address: {wire_key: 'address', primitive: 'string'}
276
+ )
277
+
278
+ # @api private
279
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
280
+ CharacteristicEventGeneratedParameters = Serialization::Record.define(
281
+ context: {wire_key: 'context', primitive: 'string'},
282
+ address: {wire_key: 'address', primitive: 'string'},
283
+ service_uuid: 'serviceUuid',
284
+ characteristic_uuid: 'characteristicUuid',
285
+ type: {wire_key: 'type', enum: 'Bluetooth::CHARACTERISTIC_EVENT_GENERATED_PARAMETERS_TYPE'},
286
+ data: {wire_key: 'data', required: false, list: true}
287
+ )
288
+
289
+ # @api private
290
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
291
+ DescriptorEventGeneratedParameters = Serialization::Record.define(
292
+ context: {wire_key: 'context', primitive: 'string'},
293
+ address: {wire_key: 'address', primitive: 'string'},
294
+ service_uuid: 'serviceUuid',
295
+ characteristic_uuid: 'characteristicUuid',
296
+ descriptor_uuid: 'descriptorUuid',
297
+ type: {wire_key: 'type', enum: 'Bluetooth::DESCRIPTOR_EVENT_GENERATED_PARAMETERS_TYPE'},
298
+ data: {wire_key: 'data', required: false, list: true}
299
+ )
300
+
301
+ EVENT_TYPES = {
302
+ 'bluetooth.requestDevicePromptUpdated' => Bluetooth::RequestDevicePromptUpdatedParameters,
303
+ 'bluetooth.gattConnectionAttempted' => Bluetooth::GattConnectionAttemptedParameters
304
+ }.freeze
305
+
306
+ # @api private
307
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
308
+ def handle_request_device_prompt(context:, prompt:, accept:, device: Serialization::UNSET)
309
+ params = HandleRequestDevicePromptParameters.build(
310
+ context: context,
311
+ prompt: prompt,
312
+ accept: accept,
313
+ device: device
314
+ )
315
+ execute(cmd: 'bluetooth.handleRequestDevicePrompt', params: params)
316
+ end
317
+
318
+ # @api private
319
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
320
+ def simulate_adapter(context:, state:, le_supported: Serialization::UNSET)
321
+ Serialization.validate!('state', state, Bluetooth::SIMULATE_ADAPTER_PARAMETERS_STATE)
322
+ params = SimulateAdapterParameters.new(context: context, le_supported: le_supported, state: state)
323
+ execute(cmd: 'bluetooth.simulateAdapter', params: params)
324
+ end
325
+
326
+ # @api private
327
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
328
+ def disable_simulation(context:)
329
+ params = DisableSimulationParameters.new(context: context)
330
+ execute(cmd: 'bluetooth.disableSimulation', params: params)
331
+ end
332
+
333
+ # @api private
334
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
335
+ def simulate_preconnected_peripheral(context:, address:, name:, manufacturer_data:, known_service_uuids:)
336
+ params = SimulatePreconnectedPeripheralParameters.new(
337
+ context: context,
338
+ address: address,
339
+ name: name,
340
+ manufacturer_data: manufacturer_data,
341
+ known_service_uuids: known_service_uuids
342
+ )
343
+ execute(cmd: 'bluetooth.simulatePreconnectedPeripheral', params: params)
344
+ end
345
+
346
+ # @api private
347
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
348
+ def simulate_advertisement(context:, scan_entry:)
349
+ params = SimulateAdvertisementParameters.new(context: context, scan_entry: scan_entry)
350
+ execute(cmd: 'bluetooth.simulateAdvertisement', params: params)
351
+ end
352
+
353
+ # @api private
354
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
355
+ def simulate_gatt_connection_response(context:, address:, code:)
356
+ params = SimulateGattConnectionResponseParameters.new(context: context, address: address, code: code)
357
+ execute(cmd: 'bluetooth.simulateGattConnectionResponse', params: params)
358
+ end
359
+
360
+ # @api private
361
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
362
+ def simulate_gatt_disconnection(context:, address:)
363
+ params = SimulateGattDisconnectionParameters.new(context: context, address: address)
364
+ execute(cmd: 'bluetooth.simulateGattDisconnection', params: params)
365
+ end
366
+
367
+ # @api private
368
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
369
+ def simulate_service(context:, address:, uuid:, type:)
370
+ Serialization.validate!('type', type, Bluetooth::SIMULATE_SERVICE_PARAMETERS_TYPE)
371
+ params = SimulateServiceParameters.new(context: context, address: address, uuid: uuid, type: type)
372
+ execute(cmd: 'bluetooth.simulateService', params: params)
373
+ end
374
+
375
+ # @api private
376
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
377
+ def simulate_characteristic(
378
+ context:,
379
+ address:,
380
+ service_uuid:,
381
+ characteristic_uuid:,
382
+ type:,
383
+ characteristic_properties: Serialization::UNSET
384
+ )
385
+ Serialization.validate!('type', type, Bluetooth::SIMULATE_CHARACTERISTIC_PARAMETERS_TYPE)
386
+ params = SimulateCharacteristicParameters.new(
387
+ context: context,
388
+ address: address,
389
+ service_uuid: service_uuid,
390
+ characteristic_uuid: characteristic_uuid,
391
+ characteristic_properties: characteristic_properties,
392
+ type: type
393
+ )
394
+ execute(cmd: 'bluetooth.simulateCharacteristic', params: params)
395
+ end
396
+
397
+ # @api private
398
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
399
+ def simulate_characteristic_response(
400
+ context:,
401
+ address:,
402
+ service_uuid:,
403
+ characteristic_uuid:,
404
+ type:,
405
+ code:,
406
+ data: Serialization::UNSET
407
+ )
408
+ Serialization.validate!('type', type, Bluetooth::SIMULATE_CHARACTERISTIC_RESPONSE_PARAMETERS_TYPE)
409
+ params = SimulateCharacteristicResponseParameters.new(
410
+ context: context,
411
+ address: address,
412
+ service_uuid: service_uuid,
413
+ characteristic_uuid: characteristic_uuid,
414
+ type: type,
415
+ code: code,
416
+ data: data
417
+ )
418
+ execute(cmd: 'bluetooth.simulateCharacteristicResponse', params: params)
419
+ end
420
+
421
+ # @api private
422
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
423
+ def simulate_descriptor(context:, address:, service_uuid:, characteristic_uuid:, descriptor_uuid:, type:)
424
+ Serialization.validate!('type', type, Bluetooth::SIMULATE_DESCRIPTOR_PARAMETERS_TYPE)
425
+ params = SimulateDescriptorParameters.new(
426
+ context: context,
427
+ address: address,
428
+ service_uuid: service_uuid,
429
+ characteristic_uuid: characteristic_uuid,
430
+ descriptor_uuid: descriptor_uuid,
431
+ type: type
432
+ )
433
+ execute(cmd: 'bluetooth.simulateDescriptor', params: params)
434
+ end
435
+
436
+ # @api private
437
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
438
+ def simulate_descriptor_response(
439
+ context:,
440
+ address:,
441
+ service_uuid:,
442
+ characteristic_uuid:,
443
+ descriptor_uuid:,
444
+ type:,
445
+ code:,
446
+ data: Serialization::UNSET
447
+ )
448
+ Serialization.validate!('type', type, Bluetooth::SIMULATE_DESCRIPTOR_RESPONSE_PARAMETERS_TYPE)
449
+ params = SimulateDescriptorResponseParameters.new(
450
+ context: context,
451
+ address: address,
452
+ service_uuid: service_uuid,
453
+ characteristic_uuid: characteristic_uuid,
454
+ descriptor_uuid: descriptor_uuid,
455
+ type: type,
456
+ code: code,
457
+ data: data
458
+ )
459
+ execute(cmd: 'bluetooth.simulateDescriptorResponse', params: params)
460
+ end
461
+ end # Bluetooth
462
+ end # Protocol
463
+ end # BiDi
464
+ end # WebDriver
465
+ end # Selenium