selenium-devtools 0.137.0 → 0.139.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.
- checksums.yaml +4 -4
- data/lib/selenium/devtools/{v136 → v138}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/animation.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/audits.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/autofill.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/bluetooth_emulation.rb +39 -9
- data/lib/selenium/devtools/{v136 → v138}/browser.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/cast.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/console.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/css.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/device_access.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/dom.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/emulation.rb +20 -4
- data/lib/selenium/devtools/{v135 → v138}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/extensions.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/fed_cm.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/file_system.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/input.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/io.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/log.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/media.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/memory.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/network.rb +13 -4
- data/lib/selenium/devtools/{v135 → v138}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/page.rb +7 -6
- data/lib/selenium/devtools/{v135 → v138}/performance.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/preload.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v136 → v138}/pwa.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/schema.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/security.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/storage.rb +11 -2
- data/lib/selenium/devtools/{v135 → v138}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/target.rb +5 -4
- data/lib/selenium/devtools/{v135 → v138}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v135 → v138}/web_authn.rb +2 -2
- data/lib/selenium/devtools/{v135.rb → v138.rb} +3 -3
- data/lib/selenium/devtools/{v135 → v139}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/animation.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/audits.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/autofill.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/background_service.rb +2 -2
- data/lib/selenium/devtools/v139/bluetooth_emulation.rb +133 -0
- data/lib/selenium/devtools/{v135 → v139}/browser.rb +10 -2
- data/lib/selenium/devtools/{v136 → v139}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/cast.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/console.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/css.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/device_access.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/dom.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/emulation.rb +39 -4
- data/lib/selenium/devtools/{v136 → v139}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/extensions.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/fed_cm.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/file_system.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/input.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/io.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/log.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/media.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/memory.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/network.rb +17 -4
- data/lib/selenium/devtools/{v136 → v139}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/page.rb +4 -4
- data/lib/selenium/devtools/{v136 → v139}/performance.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/preload.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v135 → v139}/pwa.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/schema.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/security.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/storage.rb +12 -2
- data/lib/selenium/devtools/{v136 → v139}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/target.rb +5 -4
- data/lib/selenium/devtools/{v136 → v139}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v136 → v139}/web_authn.rb +2 -2
- data/lib/selenium/devtools/{v136.rb → v139.rb} +3 -3
- data/lib/selenium/devtools/version.rb +1 -1
- metadata +110 -110
- data/lib/selenium/devtools/v135/bluetooth_emulation.rb +0 -60
@@ -0,0 +1,133 @@
|
|
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. Any changes will be lost!
|
21
|
+
module Selenium
|
22
|
+
module DevTools
|
23
|
+
module V139
|
24
|
+
class BluetoothEmulation
|
25
|
+
EVENTS = {
|
26
|
+
gatt_operation_received: 'gattOperationReceived',
|
27
|
+
characteristic_operation_received: 'characteristicOperationReceived',
|
28
|
+
descriptor_operation_received: 'descriptorOperationReceived',
|
29
|
+
}.freeze
|
30
|
+
|
31
|
+
def initialize(devtools)
|
32
|
+
@devtools = devtools
|
33
|
+
end
|
34
|
+
|
35
|
+
def on(event, &block)
|
36
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
37
|
+
@devtools.callbacks["BluetoothEmulation.#{event}"] << block
|
38
|
+
end
|
39
|
+
|
40
|
+
def enable(state:, le_supported:)
|
41
|
+
@devtools.send_cmd('BluetoothEmulation.enable',
|
42
|
+
state: state,
|
43
|
+
leSupported: le_supported)
|
44
|
+
end
|
45
|
+
|
46
|
+
def set_simulated_central_state(state:)
|
47
|
+
@devtools.send_cmd('BluetoothEmulation.setSimulatedCentralState',
|
48
|
+
state: state)
|
49
|
+
end
|
50
|
+
|
51
|
+
def disable
|
52
|
+
@devtools.send_cmd('BluetoothEmulation.disable')
|
53
|
+
end
|
54
|
+
|
55
|
+
def simulate_preconnected_peripheral(address:, name:, manufacturer_data:, known_service_uuids:)
|
56
|
+
@devtools.send_cmd('BluetoothEmulation.simulatePreconnectedPeripheral',
|
57
|
+
address: address,
|
58
|
+
name: name,
|
59
|
+
manufacturerData: manufacturer_data,
|
60
|
+
knownServiceUuids: known_service_uuids)
|
61
|
+
end
|
62
|
+
|
63
|
+
def simulate_advertisement(entry:)
|
64
|
+
@devtools.send_cmd('BluetoothEmulation.simulateAdvertisement',
|
65
|
+
entry: entry)
|
66
|
+
end
|
67
|
+
|
68
|
+
def simulate_gatt_operation_response(address:, type:, code:)
|
69
|
+
@devtools.send_cmd('BluetoothEmulation.simulateGATTOperationResponse',
|
70
|
+
address: address,
|
71
|
+
type: type,
|
72
|
+
code: code)
|
73
|
+
end
|
74
|
+
|
75
|
+
def simulate_characteristic_operation_response(characteristic_id:, type:, code:, data: nil)
|
76
|
+
@devtools.send_cmd('BluetoothEmulation.simulateCharacteristicOperationResponse',
|
77
|
+
characteristicId: characteristic_id,
|
78
|
+
type: type,
|
79
|
+
code: code,
|
80
|
+
data: data)
|
81
|
+
end
|
82
|
+
|
83
|
+
def simulate_descriptor_operation_response(descriptor_id:, type:, code:, data: nil)
|
84
|
+
@devtools.send_cmd('BluetoothEmulation.simulateDescriptorOperationResponse',
|
85
|
+
descriptorId: descriptor_id,
|
86
|
+
type: type,
|
87
|
+
code: code,
|
88
|
+
data: data)
|
89
|
+
end
|
90
|
+
|
91
|
+
def add_service(address:, service_uuid:)
|
92
|
+
@devtools.send_cmd('BluetoothEmulation.addService',
|
93
|
+
address: address,
|
94
|
+
serviceUuid: service_uuid)
|
95
|
+
end
|
96
|
+
|
97
|
+
def remove_service(service_id:)
|
98
|
+
@devtools.send_cmd('BluetoothEmulation.removeService',
|
99
|
+
serviceId: service_id)
|
100
|
+
end
|
101
|
+
|
102
|
+
def add_characteristic(service_id:, characteristic_uuid:, properties:)
|
103
|
+
@devtools.send_cmd('BluetoothEmulation.addCharacteristic',
|
104
|
+
serviceId: service_id,
|
105
|
+
characteristicUuid: characteristic_uuid,
|
106
|
+
properties: properties)
|
107
|
+
end
|
108
|
+
|
109
|
+
def remove_characteristic(characteristic_id:)
|
110
|
+
@devtools.send_cmd('BluetoothEmulation.removeCharacteristic',
|
111
|
+
characteristicId: characteristic_id)
|
112
|
+
end
|
113
|
+
|
114
|
+
def add_descriptor(characteristic_id:, descriptor_uuid:)
|
115
|
+
@devtools.send_cmd('BluetoothEmulation.addDescriptor',
|
116
|
+
characteristicId: characteristic_id,
|
117
|
+
descriptorUuid: descriptor_uuid)
|
118
|
+
end
|
119
|
+
|
120
|
+
def remove_descriptor(descriptor_id:)
|
121
|
+
@devtools.send_cmd('BluetoothEmulation.removeDescriptor',
|
122
|
+
descriptorId: descriptor_id)
|
123
|
+
end
|
124
|
+
|
125
|
+
def simulate_gatt_disconnection(address:)
|
126
|
+
@devtools.send_cmd('BluetoothEmulation.simulateGATTDisconnection',
|
127
|
+
address: address)
|
128
|
+
end
|
129
|
+
|
130
|
+
end # BluetoothEmulation
|
131
|
+
end # V139
|
132
|
+
end # DevTools
|
133
|
+
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Browser
|
25
25
|
EVENTS = {
|
26
26
|
download_will_begin: 'downloadWillBegin',
|
@@ -134,7 +134,15 @@ module Selenium
|
|
134
134
|
url: url)
|
135
135
|
end
|
136
136
|
|
137
|
+
def add_privacy_sandbox_coordinator_key_config(api:, coordinator_origin:, key_config:, browser_context_id: nil)
|
138
|
+
@devtools.send_cmd('Browser.addPrivacySandboxCoordinatorKeyConfig',
|
139
|
+
api: api,
|
140
|
+
coordinatorOrigin: coordinator_origin,
|
141
|
+
keyConfig: key_config,
|
142
|
+
browserContextId: browser_context_id)
|
143
|
+
end
|
144
|
+
|
137
145
|
end # Browser
|
138
|
-
end #
|
146
|
+
end # V139
|
139
147
|
end # DevTools
|
140
148
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class CacheStorage
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -66,6 +66,6 @@ module Selenium
|
|
66
66
|
end
|
67
67
|
|
68
68
|
end # CacheStorage
|
69
|
-
end #
|
69
|
+
end # V139
|
70
70
|
end # DevTools
|
71
71
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Cast
|
25
25
|
EVENTS = {
|
26
26
|
sinks_updated: 'sinksUpdated',
|
@@ -66,6 +66,6 @@ module Selenium
|
|
66
66
|
end
|
67
67
|
|
68
68
|
end # Cast
|
69
|
-
end #
|
69
|
+
end # V139
|
70
70
|
end # DevTools
|
71
71
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Console
|
25
25
|
EVENTS = {
|
26
26
|
message_added: 'messageAdded',
|
@@ -48,6 +48,6 @@ module Selenium
|
|
48
48
|
end
|
49
49
|
|
50
50
|
end # Console
|
51
|
-
end #
|
51
|
+
end # V139
|
52
52
|
end # DevTools
|
53
53
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class CSS
|
25
25
|
EVENTS = {
|
26
26
|
fonts_updated: 'fontsUpdated',
|
@@ -244,6 +244,6 @@ module Selenium
|
|
244
244
|
end
|
245
245
|
|
246
246
|
end # CSS
|
247
|
-
end #
|
247
|
+
end # V139
|
248
248
|
end # DevTools
|
249
249
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Debugger
|
25
25
|
EVENTS = {
|
26
26
|
breakpoint_resolved: 'breakpointResolved',
|
@@ -233,6 +233,6 @@ module Selenium
|
|
233
233
|
end
|
234
234
|
|
235
235
|
end # Debugger
|
236
|
-
end #
|
236
|
+
end # V139
|
237
237
|
end # DevTools
|
238
238
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class DeviceAccess
|
25
25
|
EVENTS = {
|
26
26
|
device_request_prompted: 'deviceRequestPrompted',
|
@@ -55,6 +55,6 @@ module Selenium
|
|
55
55
|
end
|
56
56
|
|
57
57
|
end # DeviceAccess
|
58
|
-
end #
|
58
|
+
end # V139
|
59
59
|
end # DevTools
|
60
60
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class DeviceOrientation
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -44,6 +44,6 @@ module Selenium
|
|
44
44
|
end
|
45
45
|
|
46
46
|
end # DeviceOrientation
|
47
|
-
end #
|
47
|
+
end # V139
|
48
48
|
end # DevTools
|
49
49
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class DOM
|
25
25
|
EVENTS = {
|
26
26
|
attribute_modified: 'attributeModified',
|
@@ -355,6 +355,6 @@ module Selenium
|
|
355
355
|
end
|
356
356
|
|
357
357
|
end # DOM
|
358
|
-
end #
|
358
|
+
end # V139
|
359
359
|
end # DevTools
|
360
360
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class DOMDebugger
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -89,6 +89,6 @@ module Selenium
|
|
89
89
|
end
|
90
90
|
|
91
91
|
end # DOMDebugger
|
92
|
-
end #
|
92
|
+
end # V139
|
93
93
|
end # DevTools
|
94
94
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class DOMSnapshot
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -58,6 +58,6 @@ module Selenium
|
|
58
58
|
end
|
59
59
|
|
60
60
|
end # DOMSnapshot
|
61
|
-
end #
|
61
|
+
end # V139
|
62
62
|
end # DevTools
|
63
63
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class DOMStorage
|
25
25
|
EVENTS = {
|
26
26
|
dom_storage_item_added: 'domStorageItemAdded',
|
@@ -70,6 +70,6 @@ module Selenium
|
|
70
70
|
end
|
71
71
|
|
72
72
|
end # DOMStorage
|
73
|
-
end #
|
73
|
+
end # V139
|
74
74
|
end # DevTools
|
75
75
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Emulation
|
25
25
|
EVENTS = {
|
26
26
|
virtual_time_budget_expired: 'virtualTimeBudgetExpired',
|
@@ -71,6 +71,11 @@ module Selenium
|
|
71
71
|
color: color)
|
72
72
|
end
|
73
73
|
|
74
|
+
def set_safe_area_insets_override(insets:)
|
75
|
+
@devtools.send_cmd('Emulation.setSafeAreaInsetsOverride',
|
76
|
+
insets: insets)
|
77
|
+
end
|
78
|
+
|
74
79
|
def set_device_metrics_override(width:, height:, device_scale_factor:, mobile:, scale: nil, screen_width: nil, screen_height: nil, position_x: nil, position_y: nil, dont_set_visible_size: nil, screen_orientation: nil, viewport: nil, display_feature: nil, device_posture: nil)
|
75
80
|
@devtools.send_cmd('Emulation.setDeviceMetricsOverride',
|
76
81
|
width: width,
|
@@ -98,6 +103,15 @@ module Selenium
|
|
98
103
|
@devtools.send_cmd('Emulation.clearDevicePostureOverride')
|
99
104
|
end
|
100
105
|
|
106
|
+
def set_display_features_override(features:)
|
107
|
+
@devtools.send_cmd('Emulation.setDisplayFeaturesOverride',
|
108
|
+
features: features)
|
109
|
+
end
|
110
|
+
|
111
|
+
def clear_display_features_override
|
112
|
+
@devtools.send_cmd('Emulation.clearDisplayFeaturesOverride')
|
113
|
+
end
|
114
|
+
|
101
115
|
def set_scrollbars_hidden(hidden:)
|
102
116
|
@devtools.send_cmd('Emulation.setScrollbarsHidden',
|
103
117
|
hidden: hidden)
|
@@ -125,11 +139,20 @@ module Selenium
|
|
125
139
|
type: type)
|
126
140
|
end
|
127
141
|
|
128
|
-
def
|
142
|
+
def set_emulated_os_text_scale(scale: nil)
|
143
|
+
@devtools.send_cmd('Emulation.setEmulatedOSTextScale',
|
144
|
+
scale: scale)
|
145
|
+
end
|
146
|
+
|
147
|
+
def set_geolocation_override(latitude: nil, longitude: nil, accuracy: nil, altitude: nil, altitude_accuracy: nil, heading: nil, speed: nil)
|
129
148
|
@devtools.send_cmd('Emulation.setGeolocationOverride',
|
130
149
|
latitude: latitude,
|
131
150
|
longitude: longitude,
|
132
|
-
accuracy: accuracy
|
151
|
+
accuracy: accuracy,
|
152
|
+
altitude: altitude,
|
153
|
+
altitudeAccuracy: altitude_accuracy,
|
154
|
+
heading: heading,
|
155
|
+
speed: speed)
|
133
156
|
end
|
134
157
|
|
135
158
|
def get_overridden_sensor_information(type:)
|
@@ -163,6 +186,13 @@ module Selenium
|
|
163
186
|
state: state)
|
164
187
|
end
|
165
188
|
|
189
|
+
def set_pressure_data_override(source:, state:, own_contribution_estimate: nil)
|
190
|
+
@devtools.send_cmd('Emulation.setPressureDataOverride',
|
191
|
+
source: source,
|
192
|
+
state: state,
|
193
|
+
ownContributionEstimate: own_contribution_estimate)
|
194
|
+
end
|
195
|
+
|
166
196
|
def set_idle_override(is_user_active:, is_screen_unlocked:)
|
167
197
|
@devtools.send_cmd('Emulation.setIdleOverride',
|
168
198
|
isUserActive: is_user_active,
|
@@ -241,7 +271,12 @@ module Selenium
|
|
241
271
|
enabled: enabled)
|
242
272
|
end
|
243
273
|
|
274
|
+
def set_small_viewport_height_difference_override(difference:)
|
275
|
+
@devtools.send_cmd('Emulation.setSmallViewportHeightDifferenceOverride',
|
276
|
+
difference: difference)
|
277
|
+
end
|
278
|
+
|
244
279
|
end # Emulation
|
245
|
-
end #
|
280
|
+
end # V139
|
246
281
|
end # DevTools
|
247
282
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class EventBreakpoints
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -47,6 +47,6 @@ module Selenium
|
|
47
47
|
end
|
48
48
|
|
49
49
|
end # EventBreakpoints
|
50
|
-
end #
|
50
|
+
end # V139
|
51
51
|
end # DevTools
|
52
52
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Extensions
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -70,6 +70,6 @@ module Selenium
|
|
70
70
|
end
|
71
71
|
|
72
72
|
end # Extensions
|
73
|
-
end #
|
73
|
+
end # V139
|
74
74
|
end # DevTools
|
75
75
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class FedCm
|
25
25
|
EVENTS = {
|
26
26
|
dialog_shown: 'dialogShown',
|
@@ -75,6 +75,6 @@ module Selenium
|
|
75
75
|
end
|
76
76
|
|
77
77
|
end # FedCm
|
78
|
-
end #
|
78
|
+
end # V139
|
79
79
|
end # DevTools
|
80
80
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Fetch
|
25
25
|
EVENTS = {
|
26
26
|
request_paused: 'requestPaused',
|
@@ -98,6 +98,6 @@ module Selenium
|
|
98
98
|
end
|
99
99
|
|
100
100
|
end # Fetch
|
101
|
-
end #
|
101
|
+
end # V139
|
102
102
|
end # DevTools
|
103
103
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class FileSystem
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -38,6 +38,6 @@ module Selenium
|
|
38
38
|
end
|
39
39
|
|
40
40
|
end # FileSystem
|
41
|
-
end #
|
41
|
+
end # V139
|
42
42
|
end # DevTools
|
43
43
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class HeadlessExperimental
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -49,6 +49,6 @@ module Selenium
|
|
49
49
|
end
|
50
50
|
|
51
51
|
end # HeadlessExperimental
|
52
|
-
end #
|
52
|
+
end # V139
|
53
53
|
end # DevTools
|
54
54
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class HeapProfiler
|
25
25
|
EVENTS = {
|
26
26
|
add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
|
@@ -104,6 +104,6 @@ module Selenium
|
|
104
104
|
end
|
105
105
|
|
106
106
|
end # HeapProfiler
|
107
|
-
end #
|
107
|
+
end # V139
|
108
108
|
end # DevTools
|
109
109
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class IndexedDB
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -105,6 +105,6 @@ module Selenium
|
|
105
105
|
end
|
106
106
|
|
107
107
|
end # IndexedDB
|
108
|
-
end #
|
108
|
+
end # V139
|
109
109
|
end # DevTools
|
110
110
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Input
|
25
25
|
EVENTS = {
|
26
26
|
drag_intercepted: 'dragIntercepted',
|
@@ -167,6 +167,6 @@ module Selenium
|
|
167
167
|
end
|
168
168
|
|
169
169
|
end # Input
|
170
|
-
end #
|
170
|
+
end # V139
|
171
171
|
end # DevTools
|
172
172
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Inspector
|
25
25
|
EVENTS = {
|
26
26
|
detached: 'detached',
|
@@ -46,6 +46,6 @@ module Selenium
|
|
46
46
|
end
|
47
47
|
|
48
48
|
end # Inspector
|
49
|
-
end #
|
49
|
+
end # V139
|
50
50
|
end # DevTools
|
51
51
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class IO
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -50,6 +50,6 @@ module Selenium
|
|
50
50
|
end
|
51
51
|
|
52
52
|
end # IO
|
53
|
-
end #
|
53
|
+
end # V139
|
54
54
|
end # DevTools
|
55
55
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class LayerTree
|
25
25
|
EVENTS = {
|
26
26
|
layer_painted: 'layerPainted',
|
@@ -86,6 +86,6 @@ module Selenium
|
|
86
86
|
end
|
87
87
|
|
88
88
|
end # LayerTree
|
89
|
-
end #
|
89
|
+
end # V139
|
90
90
|
end # DevTools
|
91
91
|
end # Selenium
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
22
|
module DevTools
|
23
|
-
module
|
23
|
+
module V139
|
24
24
|
class Log
|
25
25
|
EVENTS = {
|
26
26
|
entry_added: 'entryAdded',
|
@@ -57,6 +57,6 @@ module Selenium
|
|
57
57
|
end
|
58
58
|
|
59
59
|
end # Log
|
60
|
-
end #
|
60
|
+
end # V139
|
61
61
|
end # DevTools
|
62
62
|
end # Selenium
|