selenium-devtools 0.146.0 → 0.147.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/{v144 → v147}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/animation.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/audits.rb +2 -7
- data/lib/selenium/devtools/{v144 → v147}/autofill.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/bluetooth_emulation.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/browser.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/cast.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/console.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/css.rb +9 -2
- data/lib/selenium/devtools/{v144 → v147}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/device_access.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/dom.rb +3 -2
- data/lib/selenium/devtools/{v144 → v147}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/emulation.rb +27 -4
- data/lib/selenium/devtools/{v144 → v147}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/extensions.rb +15 -4
- data/lib/selenium/devtools/{v144 → v147}/fed_cm.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/file_system.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/input.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/io.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/log.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/media.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/memory.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/network.rb +21 -4
- data/lib/selenium/devtools/{v144 → v147}/overlay.rb +9 -2
- data/lib/selenium/devtools/{v144 → v147}/page.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/performance.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/preload.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/pwa.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/schema.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/security.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/service_worker.rb +2 -2
- data/lib/selenium/devtools/v147/smart_card_emulation.rb +124 -0
- data/lib/selenium/devtools/{v144 → v147}/storage.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/target.rb +5 -4
- data/lib/selenium/devtools/{v144 → v147}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/tracing.rb +6 -2
- data/lib/selenium/devtools/{v144 → v147}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v144 → v147}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v147/web_mcp.rb +46 -0
- data/lib/selenium/devtools/{v144.rb → v147.rb} +5 -3
- data/lib/selenium/devtools/version.rb +1 -1
- metadata +58 -56
|
@@ -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 V147
|
|
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 # V147
|
|
61
61
|
end # DevTools
|
|
62
62
|
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 V147
|
|
24
24
|
class Media
|
|
25
25
|
EVENTS = {
|
|
26
26
|
player_properties_changed: 'playerPropertiesChanged',
|
|
@@ -48,6 +48,6 @@ module Selenium
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
end # Media
|
|
51
|
-
end #
|
|
51
|
+
end # V147
|
|
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 V147
|
|
24
24
|
class Memory
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -81,6 +81,6 @@ module Selenium
|
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
end # Memory
|
|
84
|
-
end #
|
|
84
|
+
end # V147
|
|
85
85
|
end # DevTools
|
|
86
86
|
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 V147
|
|
24
24
|
class Network
|
|
25
25
|
EVENTS = {
|
|
26
26
|
data_received: 'dataReceived',
|
|
@@ -65,6 +65,8 @@ module Selenium
|
|
|
65
65
|
reporting_api_report_added: 'reportingApiReportAdded',
|
|
66
66
|
reporting_api_report_updated: 'reportingApiReportUpdated',
|
|
67
67
|
reporting_api_endpoints_changed_for_origin: 'reportingApiEndpointsChangedForOrigin',
|
|
68
|
+
device_bound_sessions_added: 'deviceBoundSessionsAdded',
|
|
69
|
+
device_bound_session_event_occurred: 'deviceBoundSessionEventOccurred',
|
|
68
70
|
}.freeze
|
|
69
71
|
|
|
70
72
|
def initialize(devtools)
|
|
@@ -166,6 +168,12 @@ module Selenium
|
|
|
166
168
|
enableDurableMessages: enable_durable_messages)
|
|
167
169
|
end
|
|
168
170
|
|
|
171
|
+
def configure_durable_messages(max_total_buffer_size: nil, max_resource_buffer_size: nil)
|
|
172
|
+
@devtools.send_cmd('Network.configureDurableMessages',
|
|
173
|
+
maxTotalBufferSize: max_total_buffer_size,
|
|
174
|
+
maxResourceBufferSize: max_resource_buffer_size)
|
|
175
|
+
end
|
|
176
|
+
|
|
169
177
|
def get_all_cookies
|
|
170
178
|
@devtools.send_cmd('Network.getAllCookies')
|
|
171
179
|
end
|
|
@@ -229,7 +237,7 @@ module Selenium
|
|
|
229
237
|
cacheDisabled: cache_disabled)
|
|
230
238
|
end
|
|
231
239
|
|
|
232
|
-
def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil,
|
|
240
|
+
def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil, source_scheme: nil, source_port: nil, partition_key: nil)
|
|
233
241
|
@devtools.send_cmd('Network.setCookie',
|
|
234
242
|
name: name,
|
|
235
243
|
value: value,
|
|
@@ -241,7 +249,6 @@ module Selenium
|
|
|
241
249
|
sameSite: same_site,
|
|
242
250
|
expires: expires,
|
|
243
251
|
priority: priority,
|
|
244
|
-
sameParty: same_party,
|
|
245
252
|
sourceScheme: source_scheme,
|
|
246
253
|
sourcePort: source_port,
|
|
247
254
|
partitionKey: partition_key)
|
|
@@ -290,6 +297,16 @@ module Selenium
|
|
|
290
297
|
enable: enable)
|
|
291
298
|
end
|
|
292
299
|
|
|
300
|
+
def enable_device_bound_sessions(enable:)
|
|
301
|
+
@devtools.send_cmd('Network.enableDeviceBoundSessions',
|
|
302
|
+
enable: enable)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
def fetch_schemeful_site(origin:)
|
|
306
|
+
@devtools.send_cmd('Network.fetchSchemefulSite',
|
|
307
|
+
origin: origin)
|
|
308
|
+
end
|
|
309
|
+
|
|
293
310
|
def load_network_resource(frame_id: nil, url:, options:)
|
|
294
311
|
@devtools.send_cmd('Network.loadNetworkResource',
|
|
295
312
|
frameId: frame_id,
|
|
@@ -305,6 +322,6 @@ module Selenium
|
|
|
305
322
|
end
|
|
306
323
|
|
|
307
324
|
end # Network
|
|
308
|
-
end #
|
|
325
|
+
end # V147
|
|
309
326
|
end # DevTools
|
|
310
327
|
end # Selenium
|
|
@@ -20,12 +20,14 @@
|
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
|
21
21
|
module Selenium
|
|
22
22
|
module DevTools
|
|
23
|
-
module
|
|
23
|
+
module V147
|
|
24
24
|
class Overlay
|
|
25
25
|
EVENTS = {
|
|
26
26
|
inspect_node_requested: 'inspectNodeRequested',
|
|
27
27
|
node_highlight_requested: 'nodeHighlightRequested',
|
|
28
28
|
screenshot_requested: 'screenshotRequested',
|
|
29
|
+
inspect_panel_show_requested: 'inspectPanelShowRequested',
|
|
30
|
+
inspected_element_window_restored: 'inspectedElementWindowRestored',
|
|
29
31
|
inspect_mode_canceled: 'inspectModeCanceled',
|
|
30
32
|
}.freeze
|
|
31
33
|
|
|
@@ -156,6 +158,11 @@ module Selenium
|
|
|
156
158
|
containerQueryHighlightConfigs: container_query_highlight_configs)
|
|
157
159
|
end
|
|
158
160
|
|
|
161
|
+
def set_show_inspected_element_anchor(inspected_element_anchor_config:)
|
|
162
|
+
@devtools.send_cmd('Overlay.setShowInspectedElementAnchor',
|
|
163
|
+
inspectedElementAnchorConfig: inspected_element_anchor_config)
|
|
164
|
+
end
|
|
165
|
+
|
|
159
166
|
def set_show_paint_rects(result:)
|
|
160
167
|
@devtools.send_cmd('Overlay.setShowPaintRects',
|
|
161
168
|
result: result)
|
|
@@ -202,6 +209,6 @@ module Selenium
|
|
|
202
209
|
end
|
|
203
210
|
|
|
204
211
|
end # Overlay
|
|
205
|
-
end #
|
|
212
|
+
end # V147
|
|
206
213
|
end # DevTools
|
|
207
214
|
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 V147
|
|
24
24
|
class Page
|
|
25
25
|
EVENTS = {
|
|
26
26
|
dom_content_event_fired: 'domContentEventFired',
|
|
@@ -414,6 +414,6 @@ module Selenium
|
|
|
414
414
|
end
|
|
415
415
|
|
|
416
416
|
end # Page
|
|
417
|
-
end #
|
|
417
|
+
end # V147
|
|
418
418
|
end # DevTools
|
|
419
419
|
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 V147
|
|
24
24
|
class Performance
|
|
25
25
|
EVENTS = {
|
|
26
26
|
metrics: 'metrics',
|
|
@@ -54,6 +54,6 @@ module Selenium
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
end # Performance
|
|
57
|
-
end #
|
|
57
|
+
end # V147
|
|
58
58
|
end # DevTools
|
|
59
59
|
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 V147
|
|
24
24
|
class PerformanceTimeline
|
|
25
25
|
EVENTS = {
|
|
26
26
|
timeline_event_added: 'timelineEventAdded',
|
|
@@ -41,6 +41,6 @@ module Selenium
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
end # PerformanceTimeline
|
|
44
|
-
end #
|
|
44
|
+
end # V147
|
|
45
45
|
end # DevTools
|
|
46
46
|
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 V147
|
|
24
24
|
class Preload
|
|
25
25
|
EVENTS = {
|
|
26
26
|
rule_set_updated: 'ruleSetUpdated',
|
|
@@ -49,6 +49,6 @@ module Selenium
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
end # Preload
|
|
52
|
-
end #
|
|
52
|
+
end # V147
|
|
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 V147
|
|
24
24
|
class Profiler
|
|
25
25
|
EVENTS = {
|
|
26
26
|
console_profile_finished: 'consoleProfileFinished',
|
|
@@ -78,6 +78,6 @@ module Selenium
|
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
end # Profiler
|
|
81
|
-
end #
|
|
81
|
+
end # V147
|
|
82
82
|
end # DevTools
|
|
83
83
|
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 V147
|
|
24
24
|
class PWA
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -73,6 +73,6 @@ module Selenium
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
end # PWA
|
|
76
|
-
end #
|
|
76
|
+
end # V147
|
|
77
77
|
end # DevTools
|
|
78
78
|
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 V147
|
|
24
24
|
class Runtime
|
|
25
25
|
EVENTS = {
|
|
26
26
|
binding_called: 'bindingCalled',
|
|
@@ -197,6 +197,6 @@ module Selenium
|
|
|
197
197
|
end
|
|
198
198
|
|
|
199
199
|
end # Runtime
|
|
200
|
-
end #
|
|
200
|
+
end # V147
|
|
201
201
|
end # DevTools
|
|
202
202
|
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 V147
|
|
24
24
|
class Schema
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -37,6 +37,6 @@ module Selenium
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
end # Schema
|
|
40
|
-
end #
|
|
40
|
+
end # V147
|
|
41
41
|
end # DevTools
|
|
42
42
|
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 V147
|
|
24
24
|
class Security
|
|
25
25
|
EVENTS = {
|
|
26
26
|
certificate_error: 'certificateError',
|
|
@@ -62,6 +62,6 @@ module Selenium
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
end # Security
|
|
65
|
-
end #
|
|
65
|
+
end # V147
|
|
66
66
|
end # DevTools
|
|
67
67
|
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 V147
|
|
24
24
|
class ServiceWorker
|
|
25
25
|
EVENTS = {
|
|
26
26
|
worker_error_reported: 'workerErrorReported',
|
|
@@ -102,6 +102,6 @@ module Selenium
|
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
end # ServiceWorker
|
|
105
|
-
end #
|
|
105
|
+
end # V147
|
|
106
106
|
end # DevTools
|
|
107
107
|
end # Selenium
|
|
@@ -0,0 +1,124 @@
|
|
|
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 V147
|
|
24
|
+
class SmartCardEmulation
|
|
25
|
+
EVENTS = {
|
|
26
|
+
establish_context_requested: 'establishContextRequested',
|
|
27
|
+
release_context_requested: 'releaseContextRequested',
|
|
28
|
+
list_readers_requested: 'listReadersRequested',
|
|
29
|
+
get_status_change_requested: 'getStatusChangeRequested',
|
|
30
|
+
cancel_requested: 'cancelRequested',
|
|
31
|
+
connect_requested: 'connectRequested',
|
|
32
|
+
disconnect_requested: 'disconnectRequested',
|
|
33
|
+
transmit_requested: 'transmitRequested',
|
|
34
|
+
control_requested: 'controlRequested',
|
|
35
|
+
get_attrib_requested: 'getAttribRequested',
|
|
36
|
+
set_attrib_requested: 'setAttribRequested',
|
|
37
|
+
status_requested: 'statusRequested',
|
|
38
|
+
begin_transaction_requested: 'beginTransactionRequested',
|
|
39
|
+
end_transaction_requested: 'endTransactionRequested',
|
|
40
|
+
}.freeze
|
|
41
|
+
|
|
42
|
+
def initialize(devtools)
|
|
43
|
+
@devtools = devtools
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def on(event, &block)
|
|
47
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
|
48
|
+
@devtools.callbacks["SmartCardEmulation.#{event}"] << block
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def enable
|
|
52
|
+
@devtools.send_cmd('SmartCardEmulation.enable')
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def disable
|
|
56
|
+
@devtools.send_cmd('SmartCardEmulation.disable')
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def report_establish_context_result(request_id:, context_id:)
|
|
60
|
+
@devtools.send_cmd('SmartCardEmulation.reportEstablishContextResult',
|
|
61
|
+
requestId: request_id,
|
|
62
|
+
contextId: context_id)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def report_release_context_result(request_id:)
|
|
66
|
+
@devtools.send_cmd('SmartCardEmulation.reportReleaseContextResult',
|
|
67
|
+
requestId: request_id)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def report_list_readers_result(request_id:, readers:)
|
|
71
|
+
@devtools.send_cmd('SmartCardEmulation.reportListReadersResult',
|
|
72
|
+
requestId: request_id,
|
|
73
|
+
readers: readers)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def report_get_status_change_result(request_id:, reader_states:)
|
|
77
|
+
@devtools.send_cmd('SmartCardEmulation.reportGetStatusChangeResult',
|
|
78
|
+
requestId: request_id,
|
|
79
|
+
readerStates: reader_states)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def report_begin_transaction_result(request_id:, handle:)
|
|
83
|
+
@devtools.send_cmd('SmartCardEmulation.reportBeginTransactionResult',
|
|
84
|
+
requestId: request_id,
|
|
85
|
+
handle: handle)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def report_plain_result(request_id:)
|
|
89
|
+
@devtools.send_cmd('SmartCardEmulation.reportPlainResult',
|
|
90
|
+
requestId: request_id)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def report_connect_result(request_id:, handle:, active_protocol: nil)
|
|
94
|
+
@devtools.send_cmd('SmartCardEmulation.reportConnectResult',
|
|
95
|
+
requestId: request_id,
|
|
96
|
+
handle: handle,
|
|
97
|
+
activeProtocol: active_protocol)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
def report_data_result(request_id:, data:)
|
|
101
|
+
@devtools.send_cmd('SmartCardEmulation.reportDataResult',
|
|
102
|
+
requestId: request_id,
|
|
103
|
+
data: data)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def report_status_result(request_id:, reader_name:, state:, atr:, protocol: nil)
|
|
107
|
+
@devtools.send_cmd('SmartCardEmulation.reportStatusResult',
|
|
108
|
+
requestId: request_id,
|
|
109
|
+
readerName: reader_name,
|
|
110
|
+
state: state,
|
|
111
|
+
atr: atr,
|
|
112
|
+
protocol: protocol)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def report_error(request_id:, result_code:)
|
|
116
|
+
@devtools.send_cmd('SmartCardEmulation.reportError',
|
|
117
|
+
requestId: request_id,
|
|
118
|
+
resultCode: result_code)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
end # SmartCardEmulation
|
|
122
|
+
end # V147
|
|
123
|
+
end # DevTools
|
|
124
|
+
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 V147
|
|
24
24
|
class Storage
|
|
25
25
|
EVENTS = {
|
|
26
26
|
cache_storage_content_updated: 'cacheStorageContentUpdated',
|
|
@@ -249,6 +249,6 @@ module Selenium
|
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
end # Storage
|
|
252
|
-
end #
|
|
252
|
+
end # V147
|
|
253
253
|
end # DevTools
|
|
254
254
|
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 V147
|
|
24
24
|
class SystemInfo
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -46,6 +46,6 @@ module Selenium
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
end # SystemInfo
|
|
49
|
-
end #
|
|
49
|
+
end # V147
|
|
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 V147
|
|
24
24
|
class Target
|
|
25
25
|
EVENTS = {
|
|
26
26
|
attached_to_target: 'attachedToTarget',
|
|
@@ -80,7 +80,7 @@ module Selenium
|
|
|
80
80
|
@devtools.send_cmd('Target.getBrowserContexts')
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
def create_target(url:, left: nil, top: nil, width: nil, height: nil, window_state: nil, browser_context_id: nil, enable_begin_frame_control: nil, new_window: nil, background: nil, for_tab: nil, hidden: nil)
|
|
83
|
+
def create_target(url:, left: nil, top: nil, width: nil, height: nil, window_state: nil, browser_context_id: nil, enable_begin_frame_control: nil, new_window: nil, background: nil, for_tab: nil, hidden: nil, focus: nil)
|
|
84
84
|
@devtools.send_cmd('Target.createTarget',
|
|
85
85
|
url: url,
|
|
86
86
|
left: left,
|
|
@@ -93,7 +93,8 @@ module Selenium
|
|
|
93
93
|
newWindow: new_window,
|
|
94
94
|
background: background,
|
|
95
95
|
forTab: for_tab,
|
|
96
|
-
hidden: hidden
|
|
96
|
+
hidden: hidden,
|
|
97
|
+
focus: focus)
|
|
97
98
|
end
|
|
98
99
|
|
|
99
100
|
def detach_from_target(session_id: nil, target_id: nil)
|
|
@@ -162,6 +163,6 @@ module Selenium
|
|
|
162
163
|
end
|
|
163
164
|
|
|
164
165
|
end # Target
|
|
165
|
-
end #
|
|
166
|
+
end # V147
|
|
166
167
|
end # DevTools
|
|
167
168
|
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 V147
|
|
24
24
|
class Tethering
|
|
25
25
|
EVENTS = {
|
|
26
26
|
accepted: 'accepted',
|
|
@@ -46,6 +46,6 @@ module Selenium
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
end # Tethering
|
|
49
|
-
end #
|
|
49
|
+
end # V147
|
|
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 V147
|
|
24
24
|
class Tracing
|
|
25
25
|
EVENTS = {
|
|
26
26
|
buffer_usage: 'bufferUsage',
|
|
@@ -45,6 +45,10 @@ module Selenium
|
|
|
45
45
|
@devtools.send_cmd('Tracing.getCategories')
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
def get_track_event_descriptor
|
|
49
|
+
@devtools.send_cmd('Tracing.getTrackEventDescriptor')
|
|
50
|
+
end
|
|
51
|
+
|
|
48
52
|
def record_clock_sync_marker(sync_id:)
|
|
49
53
|
@devtools.send_cmd('Tracing.recordClockSyncMarker',
|
|
50
54
|
syncId: sync_id)
|
|
@@ -70,6 +74,6 @@ module Selenium
|
|
|
70
74
|
end
|
|
71
75
|
|
|
72
76
|
end # Tracing
|
|
73
|
-
end #
|
|
77
|
+
end # V147
|
|
74
78
|
end # DevTools
|
|
75
79
|
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 V147
|
|
24
24
|
class WebAudio
|
|
25
25
|
EVENTS = {
|
|
26
26
|
context_created: 'contextCreated',
|
|
@@ -61,6 +61,6 @@ module Selenium
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
end # WebAudio
|
|
64
|
-
end #
|
|
64
|
+
end # V147
|
|
65
65
|
end # DevTools
|
|
66
66
|
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 V147
|
|
24
24
|
class WebAuthn
|
|
25
25
|
EVENTS = {
|
|
26
26
|
credential_added: 'credentialAdded',
|
|
@@ -114,6 +114,6 @@ module Selenium
|
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
end # WebAuthn
|
|
117
|
-
end #
|
|
117
|
+
end # V147
|
|
118
118
|
end # DevTools
|
|
119
119
|
end # Selenium
|
|
@@ -0,0 +1,46 @@
|
|
|
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 V147
|
|
24
|
+
class WebMCP
|
|
25
|
+
EVENTS = {
|
|
26
|
+
tools_added: 'toolsAdded',
|
|
27
|
+
tools_removed: 'toolsRemoved',
|
|
28
|
+
}.freeze
|
|
29
|
+
|
|
30
|
+
def initialize(devtools)
|
|
31
|
+
@devtools = devtools
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def on(event, &block)
|
|
35
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
|
36
|
+
@devtools.callbacks["WebMCP.#{event}"] << block
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def enable
|
|
40
|
+
@devtools.send_cmd('WebMCP.enable')
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
end # WebMCP
|
|
44
|
+
end # V147
|
|
45
|
+
end # DevTools
|
|
46
|
+
end # Selenium
|