selenium-devtools 0.92.0 → 0.96.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/selenium/devtools/{v92 → v93}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/animation.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/application_cache.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/audits.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/browser.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/cast.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/console.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/css.rb +9 -2
- data/lib/selenium/devtools/{v92 → v93}/database.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/dom.rb +8 -2
- data/lib/selenium/devtools/{v90 → v93}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/emulation.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/input.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/io.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/log.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/media.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/memory.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/network.rb +6 -8
- data/lib/selenium/devtools/{v91 → v93}/overlay.rb +7 -2
- data/lib/selenium/devtools/{v92 → v93}/page.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/performance.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/runtime.rb +5 -4
- data/lib/selenium/devtools/{v92 → v93}/schema.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/security.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/storage.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/target.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v91 → v93}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v90 → v93}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v92 → v93}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v93.rb +1 -0
- data/lib/selenium/devtools/{v91 → v94}/accessibility.rb +8 -6
- data/lib/selenium/devtools/{v92 → v94}/animation.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/application_cache.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/audits.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/browser.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/cast.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/console.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/css.rb +9 -2
- data/lib/selenium/devtools/{v90 → v94}/database.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/dom.rb +13 -2
- data/lib/selenium/devtools/{v92 → v94}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/dom_snapshot.rb +6 -4
- data/lib/selenium/devtools/{v90 → v94}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/emulation.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/fetch.rb +5 -4
- data/lib/selenium/devtools/{v92 → v94}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/heap_profiler.rb +8 -6
- data/lib/selenium/devtools/{v92 → v94}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/input.rb +11 -2
- data/lib/selenium/devtools/{v92 → v94}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/io.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/log.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/media.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/memory.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/network.rb +7 -9
- data/lib/selenium/devtools/{v92 → v94}/overlay.rb +7 -2
- data/lib/selenium/devtools/{v91 → v94}/page.rb +11 -4
- data/lib/selenium/devtools/{v92 → v94}/performance.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/runtime.rb +5 -4
- data/lib/selenium/devtools/{v91 → v94}/schema.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/security.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/storage.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/target.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v92 → v94}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v91 → v94}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v90 → v94}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v94.rb +1 -0
- data/lib/selenium/devtools/{v90 → v95}/accessibility.rb +9 -6
- data/lib/selenium/devtools/{v90 → v95}/animation.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/application_cache.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/audits.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/browser.rb +15 -4
- data/lib/selenium/devtools/{v92 → v95}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v92 → v95}/cast.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/console.rb +2 -2
- data/lib/selenium/devtools/{v92 → v95}/css.rb +9 -2
- data/lib/selenium/devtools/{v91 → v95}/database.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/dom.rb +13 -2
- data/lib/selenium/devtools/{v91 → v95}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/dom_snapshot.rb +6 -4
- data/lib/selenium/devtools/{v91 → v95}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/emulation.rb +7 -2
- data/lib/selenium/devtools/{v90 → v95}/fetch.rb +14 -4
- data/lib/selenium/devtools/{v90 → v95}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/heap_profiler.rb +8 -6
- data/lib/selenium/devtools/{v91 → v95}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/input.rb +28 -2
- data/lib/selenium/devtools/{v91 → v95}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/io.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/log.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/media.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/memory.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/network.rb +23 -9
- data/lib/selenium/devtools/{v90 → v95}/overlay.rb +12 -2
- data/lib/selenium/devtools/{v90 → v95}/page.rb +20 -4
- data/lib/selenium/devtools/{v91 → v95}/performance.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v92 → v95}/profiler.rb +2 -26
- data/lib/selenium/devtools/{v90 → v95}/runtime.rb +8 -6
- data/lib/selenium/devtools/{v90 → v95}/schema.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/security.rb +2 -2
- data/lib/selenium/devtools/{v92 → v95}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/storage.rb +7 -2
- data/lib/selenium/devtools/{v91 → v95}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/target.rb +8 -2
- data/lib/selenium/devtools/{v91 → v95}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v90 → v95}/tracing.rb +5 -4
- data/lib/selenium/devtools/{v92 → v95}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v91 → v95}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v95.rb +1 -0
- data/lib/selenium/devtools/v96/accessibility.rb +76 -0
- data/lib/selenium/devtools/v96/animation.rb +94 -0
- data/lib/selenium/devtools/v96/audits.rb +62 -0
- data/lib/selenium/devtools/v96/background_service.rb +63 -0
- data/lib/selenium/devtools/v96/browser.rb +135 -0
- data/lib/selenium/devtools/v96/cache_storage.rb +69 -0
- data/lib/selenium/devtools/v96/cast.rb +66 -0
- data/lib/selenium/devtools/v96/console.rb +53 -0
- data/lib/selenium/devtools/v96/css.rb +182 -0
- data/lib/selenium/devtools/v96/database.rb +60 -0
- data/lib/selenium/devtools/v96/debugger.rb +220 -0
- data/lib/selenium/devtools/v96/device_orientation.rb +49 -0
- data/lib/selenium/devtools/v96/dom.rb +334 -0
- data/lib/selenium/devtools/v96/dom_debugger.rb +94 -0
- data/lib/selenium/devtools/v96/dom_snapshot.rb +63 -0
- data/lib/selenium/devtools/v96/dom_storage.rb +75 -0
- data/lib/selenium/devtools/v96/emulation.rb +197 -0
- data/lib/selenium/devtools/v96/fetch.rb +103 -0
- data/lib/selenium/devtools/v96/headless_experimental.rb +57 -0
- data/lib/selenium/devtools/v96/heap_profiler.rb +105 -0
- data/lib/selenium/devtools/v96/indexed_db.rb +96 -0
- data/lib/selenium/devtools/v96/input.rb +168 -0
- data/lib/selenium/devtools/v96/inspector.rb +51 -0
- data/lib/selenium/devtools/v96/io.rb +55 -0
- data/lib/selenium/devtools/v96/layer_tree.rb +91 -0
- data/lib/selenium/devtools/v96/log.rb +62 -0
- data/lib/selenium/devtools/v96/media.rb +53 -0
- data/lib/selenium/devtools/v96/memory.rb +82 -0
- data/lib/selenium/devtools/v96/network.rb +262 -0
- data/lib/selenium/devtools/v96/overlay.rb +202 -0
- data/lib/selenium/devtools/v96/page.rb +393 -0
- data/lib/selenium/devtools/v96/performance.rb +59 -0
- data/lib/selenium/devtools/v96/performance_timeline.rb +46 -0
- data/lib/selenium/devtools/v96/profiler.rb +95 -0
- data/lib/selenium/devtools/v96/runtime.rb +194 -0
- data/lib/selenium/devtools/v96/schema.rb +42 -0
- data/lib/selenium/devtools/v96/security.rb +67 -0
- data/lib/selenium/devtools/v96/service_worker.rb +112 -0
- data/lib/selenium/devtools/v96/storage.rb +106 -0
- data/lib/selenium/devtools/v96/system_info.rb +46 -0
- data/lib/selenium/devtools/v96/target.rb +145 -0
- data/lib/selenium/devtools/v96/tethering.rb +51 -0
- data/lib/selenium/devtools/v96/tracing.rb +75 -0
- data/lib/selenium/devtools/v96/web_audio.rb +66 -0
- data/lib/selenium/devtools/v96/web_authn.rb +96 -0
- data/lib/selenium/devtools/v96.rb +1 -0
- data/lib/selenium/devtools/version.rb +1 -1
- data/selenium-devtools.gemspec +1 -1
- metadata +190 -144
- data/lib/selenium/devtools/v90.rb +0 -1
- data/lib/selenium/devtools/v91.rb +0 -1
- data/lib/selenium/devtools/v92.rb +0 -1
@@ -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 V95
|
24
24
|
class Network
|
25
25
|
EVENTS = {
|
26
26
|
data_received: 'dataReceived',
|
@@ -46,6 +46,12 @@ module Selenium
|
|
46
46
|
request_will_be_sent_extra_info: 'requestWillBeSentExtraInfo',
|
47
47
|
response_received_extra_info: 'responseReceivedExtraInfo',
|
48
48
|
trust_token_operation_done: 'trustTokenOperationDone',
|
49
|
+
subresource_web_bundle_metadata_received: 'subresourceWebBundleMetadataReceived',
|
50
|
+
subresource_web_bundle_metadata_error: 'subresourceWebBundleMetadataError',
|
51
|
+
subresource_web_bundle_inner_response_parsed: 'subresourceWebBundleInnerResponseParsed',
|
52
|
+
subresource_web_bundle_inner_response_error: 'subresourceWebBundleInnerResponseError',
|
53
|
+
reporting_api_report_added: 'reportingApiReportAdded',
|
54
|
+
reporting_api_report_updated: 'reportingApiReportUpdated',
|
49
55
|
}.freeze
|
50
56
|
|
51
57
|
def initialize(devtools)
|
@@ -57,6 +63,15 @@ module Selenium
|
|
57
63
|
@devtools.callbacks["Network.#{event}"] << block
|
58
64
|
end
|
59
65
|
|
66
|
+
def set_accepted_encodings(encodings:)
|
67
|
+
@devtools.send_cmd('Network.setAcceptedEncodings',
|
68
|
+
encodings: encodings)
|
69
|
+
end
|
70
|
+
|
71
|
+
def clear_accepted_encodings_override
|
72
|
+
@devtools.send_cmd('Network.clearAcceptedEncodingsOverride')
|
73
|
+
end
|
74
|
+
|
60
75
|
def can_clear_browser_cache
|
61
76
|
@devtools.send_cmd('Network.canClearBrowserCache')
|
62
77
|
end
|
@@ -201,12 +216,6 @@ module Selenium
|
|
201
216
|
cookies: cookies)
|
202
217
|
end
|
203
218
|
|
204
|
-
def set_data_size_limits_for_test(max_total_size:, max_resource_size:)
|
205
|
-
@devtools.send_cmd('Network.setDataSizeLimitsForTest',
|
206
|
-
maxTotalSize: max_total_size,
|
207
|
-
maxResourceSize: max_resource_size)
|
208
|
-
end
|
209
|
-
|
210
219
|
def set_extra_http_headers(headers:)
|
211
220
|
@devtools.send_cmd('Network.setExtraHTTPHeaders',
|
212
221
|
headers: headers)
|
@@ -235,7 +244,12 @@ module Selenium
|
|
235
244
|
frameId: frame_id)
|
236
245
|
end
|
237
246
|
|
238
|
-
def
|
247
|
+
def enable_reporting_api(enable:)
|
248
|
+
@devtools.send_cmd('Network.enableReportingApi',
|
249
|
+
enable: enable)
|
250
|
+
end
|
251
|
+
|
252
|
+
def load_network_resource(frame_id: nil, url:, options:)
|
239
253
|
@devtools.send_cmd('Network.loadNetworkResource',
|
240
254
|
frameId: frame_id,
|
241
255
|
url: url,
|
@@ -243,6 +257,6 @@ module Selenium
|
|
243
257
|
end
|
244
258
|
|
245
259
|
end # Network
|
246
|
-
end #
|
260
|
+
end # V95
|
247
261
|
end # DevTools
|
248
262
|
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 V95
|
24
24
|
class Overlay
|
25
25
|
EVENTS = {
|
26
26
|
inspect_node_requested: 'inspectNodeRequested',
|
@@ -146,6 +146,16 @@ module Selenium
|
|
146
146
|
flexNodeHighlightConfigs: flex_node_highlight_configs)
|
147
147
|
end
|
148
148
|
|
149
|
+
def set_show_scroll_snap_overlays(scroll_snap_highlight_configs:)
|
150
|
+
@devtools.send_cmd('Overlay.setShowScrollSnapOverlays',
|
151
|
+
scrollSnapHighlightConfigs: scroll_snap_highlight_configs)
|
152
|
+
end
|
153
|
+
|
154
|
+
def set_show_container_query_overlays(container_query_highlight_configs:)
|
155
|
+
@devtools.send_cmd('Overlay.setShowContainerQueryOverlays',
|
156
|
+
containerQueryHighlightConfigs: container_query_highlight_configs)
|
157
|
+
end
|
158
|
+
|
149
159
|
def set_show_paint_rects(result:)
|
150
160
|
@devtools.send_cmd('Overlay.setShowPaintRects',
|
151
161
|
result: result)
|
@@ -182,6 +192,6 @@ module Selenium
|
|
182
192
|
end
|
183
193
|
|
184
194
|
end # Overlay
|
185
|
-
end #
|
195
|
+
end # V95
|
186
196
|
end # DevTools
|
187
197
|
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 V95
|
24
24
|
class Page
|
25
25
|
EVENTS = {
|
26
26
|
dom_content_event_fired: 'domContentEventFired',
|
@@ -42,6 +42,7 @@ module Selenium
|
|
42
42
|
javascript_dialog_closed: 'javascriptDialogClosed',
|
43
43
|
javascript_dialog_opening: 'javascriptDialogOpening',
|
44
44
|
lifecycle_event: 'lifecycleEvent',
|
45
|
+
back_forward_cache_not_used: 'backForwardCacheNotUsed',
|
45
46
|
load_event_fired: 'loadEventFired',
|
46
47
|
navigated_within_document: 'navigatedWithinDocument',
|
47
48
|
screencast_frame: 'screencastFrame',
|
@@ -64,10 +65,11 @@ module Selenium
|
|
64
65
|
scriptSource: script_source)
|
65
66
|
end
|
66
67
|
|
67
|
-
def add_script_to_evaluate_on_new_document(source:, world_name: nil)
|
68
|
+
def add_script_to_evaluate_on_new_document(source:, world_name: nil, include_command_line_api: nil)
|
68
69
|
@devtools.send_cmd('Page.addScriptToEvaluateOnNewDocument',
|
69
70
|
source: source,
|
70
|
-
worldName: world_name
|
71
|
+
worldName: world_name,
|
72
|
+
includeCommandLineAPI: include_command_line_api)
|
71
73
|
end
|
72
74
|
|
73
75
|
def bring_to_front
|
@@ -133,6 +135,10 @@ module Selenium
|
|
133
135
|
@devtools.send_cmd('Page.getManifestIcons')
|
134
136
|
end
|
135
137
|
|
138
|
+
def get_app_id
|
139
|
+
@devtools.send_cmd('Page.getAppId')
|
140
|
+
end
|
141
|
+
|
136
142
|
def get_cookies
|
137
143
|
@devtools.send_cmd('Page.getCookies')
|
138
144
|
end
|
@@ -248,6 +254,11 @@ module Selenium
|
|
248
254
|
frameId: frame_id)
|
249
255
|
end
|
250
256
|
|
257
|
+
def get_origin_trials(frame_id:)
|
258
|
+
@devtools.send_cmd('Page.getOriginTrials',
|
259
|
+
frameId: frame_id)
|
260
|
+
end
|
261
|
+
|
251
262
|
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)
|
252
263
|
@devtools.send_cmd('Page.setDeviceMetricsOverride',
|
253
264
|
width: width,
|
@@ -346,6 +357,11 @@ module Selenium
|
|
346
357
|
enabled: enabled)
|
347
358
|
end
|
348
359
|
|
360
|
+
def produce_compilation_cache(scripts:)
|
361
|
+
@devtools.send_cmd('Page.produceCompilationCache',
|
362
|
+
scripts: scripts)
|
363
|
+
end
|
364
|
+
|
349
365
|
def add_compilation_cache(url:, data:)
|
350
366
|
@devtools.send_cmd('Page.addCompilationCache',
|
351
367
|
url: url,
|
@@ -372,6 +388,6 @@ module Selenium
|
|
372
388
|
end
|
373
389
|
|
374
390
|
end # Page
|
375
|
-
end #
|
391
|
+
end # V95
|
376
392
|
end # DevTools
|
377
393
|
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 V95
|
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 # V95
|
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 V95
|
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 # V95
|
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 V95
|
24
24
|
class Profiler
|
25
25
|
EVENTS = {
|
26
26
|
console_profile_finished: 'consoleProfileFinished',
|
@@ -89,31 +89,7 @@ module Selenium
|
|
89
89
|
@devtools.send_cmd('Profiler.takeTypeProfile')
|
90
90
|
end
|
91
91
|
|
92
|
-
def enable_counters
|
93
|
-
@devtools.send_cmd('Profiler.enableCounters')
|
94
|
-
end
|
95
|
-
|
96
|
-
def disable_counters
|
97
|
-
@devtools.send_cmd('Profiler.disableCounters')
|
98
|
-
end
|
99
|
-
|
100
|
-
def get_counters
|
101
|
-
@devtools.send_cmd('Profiler.getCounters')
|
102
|
-
end
|
103
|
-
|
104
|
-
def enable_runtime_call_stats
|
105
|
-
@devtools.send_cmd('Profiler.enableRuntimeCallStats')
|
106
|
-
end
|
107
|
-
|
108
|
-
def disable_runtime_call_stats
|
109
|
-
@devtools.send_cmd('Profiler.disableRuntimeCallStats')
|
110
|
-
end
|
111
|
-
|
112
|
-
def get_runtime_call_stats
|
113
|
-
@devtools.send_cmd('Profiler.getRuntimeCallStats')
|
114
|
-
end
|
115
|
-
|
116
92
|
end # Profiler
|
117
|
-
end #
|
93
|
+
end # V95
|
118
94
|
end # DevTools
|
119
95
|
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 V95
|
24
24
|
class Runtime
|
25
25
|
EVENTS = {
|
26
26
|
binding_called: 'bindingCalled',
|
@@ -49,7 +49,7 @@ module Selenium
|
|
49
49
|
generatePreview: generate_preview)
|
50
50
|
end
|
51
51
|
|
52
|
-
def call_function_on(function_declaration:, object_id: nil, arguments: nil, silent: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, execution_context_id: nil, object_group: nil)
|
52
|
+
def call_function_on(function_declaration:, object_id: nil, arguments: nil, silent: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, execution_context_id: nil, object_group: nil, throw_on_side_effect: nil)
|
53
53
|
@devtools.send_cmd('Runtime.callFunctionOn',
|
54
54
|
functionDeclaration: function_declaration,
|
55
55
|
objectId: object_id,
|
@@ -60,7 +60,8 @@ module Selenium
|
|
60
60
|
userGesture: user_gesture,
|
61
61
|
awaitPromise: await_promise,
|
62
62
|
executionContextId: execution_context_id,
|
63
|
-
objectGroup: object_group
|
63
|
+
objectGroup: object_group,
|
64
|
+
throwOnSideEffect: throw_on_side_effect)
|
64
65
|
end
|
65
66
|
|
66
67
|
def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
|
@@ -110,12 +111,13 @@ module Selenium
|
|
110
111
|
@devtools.send_cmd('Runtime.getHeapUsage')
|
111
112
|
end
|
112
113
|
|
113
|
-
def get_properties(object_id:, own_properties: nil, accessor_properties_only: nil, generate_preview: nil)
|
114
|
+
def get_properties(object_id:, own_properties: nil, accessor_properties_only: nil, generate_preview: nil, non_indexed_properties_only: nil)
|
114
115
|
@devtools.send_cmd('Runtime.getProperties',
|
115
116
|
objectId: object_id,
|
116
117
|
ownProperties: own_properties,
|
117
118
|
accessorPropertiesOnly: accessor_properties_only,
|
118
|
-
generatePreview: generate_preview
|
119
|
+
generatePreview: generate_preview,
|
120
|
+
nonIndexedPropertiesOnly: non_indexed_properties_only)
|
119
121
|
end
|
120
122
|
|
121
123
|
def global_lexical_scope_names(execution_context_id: nil)
|
@@ -187,6 +189,6 @@ module Selenium
|
|
187
189
|
end
|
188
190
|
|
189
191
|
end # Runtime
|
190
|
-
end #
|
192
|
+
end # V95
|
191
193
|
end # DevTools
|
192
194
|
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 V95
|
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 # V95
|
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 V95
|
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 # V95
|
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 V95
|
24
24
|
class ServiceWorker
|
25
25
|
EVENTS = {
|
26
26
|
worker_error_reported: 'workerErrorReported',
|
@@ -107,6 +107,6 @@ module Selenium
|
|
107
107
|
end
|
108
108
|
|
109
109
|
end # ServiceWorker
|
110
|
-
end #
|
110
|
+
end # V95
|
111
111
|
end # DevTools
|
112
112
|
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 V95
|
24
24
|
class Storage
|
25
25
|
EVENTS = {
|
26
26
|
cache_storage_content_updated: 'cacheStorageContentUpdated',
|
@@ -95,7 +95,12 @@ module Selenium
|
|
95
95
|
@devtools.send_cmd('Storage.getTrustTokens')
|
96
96
|
end
|
97
97
|
|
98
|
+
def clear_trust_tokens(issuer_origin:)
|
99
|
+
@devtools.send_cmd('Storage.clearTrustTokens',
|
100
|
+
issuerOrigin: issuer_origin)
|
101
|
+
end
|
102
|
+
|
98
103
|
end # Storage
|
99
|
-
end #
|
104
|
+
end # V95
|
100
105
|
end # DevTools
|
101
106
|
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 V95
|
24
24
|
class SystemInfo
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -41,6 +41,6 @@ module Selenium
|
|
41
41
|
end
|
42
42
|
|
43
43
|
end # SystemInfo
|
44
|
-
end #
|
44
|
+
end # V95
|
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 V95
|
24
24
|
class Target
|
25
25
|
EVENTS = {
|
26
26
|
attached_to_target: 'attachedToTarget',
|
@@ -123,6 +123,12 @@ module Selenium
|
|
123
123
|
flatten: flatten)
|
124
124
|
end
|
125
125
|
|
126
|
+
def auto_attach_related(target_id:, wait_for_debugger_on_start:)
|
127
|
+
@devtools.send_cmd('Target.autoAttachRelated',
|
128
|
+
targetId: target_id,
|
129
|
+
waitForDebuggerOnStart: wait_for_debugger_on_start)
|
130
|
+
end
|
131
|
+
|
126
132
|
def set_discover_targets(discover:)
|
127
133
|
@devtools.send_cmd('Target.setDiscoverTargets',
|
128
134
|
discover: discover)
|
@@ -134,6 +140,6 @@ module Selenium
|
|
134
140
|
end
|
135
141
|
|
136
142
|
end # Target
|
137
|
-
end #
|
143
|
+
end # V95
|
138
144
|
end # DevTools
|
139
145
|
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 V95
|
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 # V95
|
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 V95
|
24
24
|
class Tracing
|
25
25
|
EVENTS = {
|
26
26
|
buffer_usage: 'bufferUsage',
|
@@ -56,7 +56,7 @@ module Selenium
|
|
56
56
|
levelOfDetail: level_of_detail)
|
57
57
|
end
|
58
58
|
|
59
|
-
def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil, perfetto_config: nil)
|
59
|
+
def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil, perfetto_config: nil, tracing_backend: nil)
|
60
60
|
@devtools.send_cmd('Tracing.start',
|
61
61
|
categories: categories,
|
62
62
|
options: options,
|
@@ -65,10 +65,11 @@ module Selenium
|
|
65
65
|
streamFormat: stream_format,
|
66
66
|
streamCompression: stream_compression,
|
67
67
|
traceConfig: trace_config,
|
68
|
-
perfettoConfig: perfetto_config
|
68
|
+
perfettoConfig: perfetto_config,
|
69
|
+
tracingBackend: tracing_backend)
|
69
70
|
end
|
70
71
|
|
71
72
|
end # Tracing
|
72
|
-
end #
|
73
|
+
end # V95
|
73
74
|
end # DevTools
|
74
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 V95
|
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 # V95
|
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 V95
|
24
24
|
class WebAuthn
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -91,6 +91,6 @@ module Selenium
|
|
91
91
|
end
|
92
92
|
|
93
93
|
end # WebAuthn
|
94
|
-
end #
|
94
|
+
end # V95
|
95
95
|
end # DevTools
|
96
96
|
end # Selenium
|
@@ -0,0 +1 @@
|
|
1
|
+
Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v95/*", &method(:require))
|
@@ -0,0 +1,76 @@
|
|
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 V96
|
24
|
+
class Accessibility
|
25
|
+
|
26
|
+
def initialize(devtools)
|
27
|
+
@devtools = devtools
|
28
|
+
end
|
29
|
+
|
30
|
+
def on(event, &block)
|
31
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
32
|
+
@devtools.callbacks["Accessibility.#{event}"] << block
|
33
|
+
end
|
34
|
+
|
35
|
+
def disable
|
36
|
+
@devtools.send_cmd('Accessibility.disable')
|
37
|
+
end
|
38
|
+
|
39
|
+
def enable
|
40
|
+
@devtools.send_cmd('Accessibility.enable')
|
41
|
+
end
|
42
|
+
|
43
|
+
def get_partial_ax_tree(node_id: nil, backend_node_id: nil, object_id: nil, fetch_relatives: nil)
|
44
|
+
@devtools.send_cmd('Accessibility.getPartialAXTree',
|
45
|
+
nodeId: node_id,
|
46
|
+
backendNodeId: backend_node_id,
|
47
|
+
objectId: object_id,
|
48
|
+
fetchRelatives: fetch_relatives)
|
49
|
+
end
|
50
|
+
|
51
|
+
def get_full_ax_tree(depth: nil, max_depth: nil, frame_id: nil)
|
52
|
+
@devtools.send_cmd('Accessibility.getFullAXTree',
|
53
|
+
depth: depth,
|
54
|
+
max_depth: max_depth,
|
55
|
+
frameId: frame_id)
|
56
|
+
end
|
57
|
+
|
58
|
+
def get_child_ax_nodes(id:, frame_id: nil)
|
59
|
+
@devtools.send_cmd('Accessibility.getChildAXNodes',
|
60
|
+
id: id,
|
61
|
+
frameId: frame_id)
|
62
|
+
end
|
63
|
+
|
64
|
+
def query_ax_tree(node_id: nil, backend_node_id: nil, object_id: nil, accessible_name: nil, role: nil)
|
65
|
+
@devtools.send_cmd('Accessibility.queryAXTree',
|
66
|
+
nodeId: node_id,
|
67
|
+
backendNodeId: backend_node_id,
|
68
|
+
objectId: object_id,
|
69
|
+
accessibleName: accessible_name,
|
70
|
+
role: role)
|
71
|
+
end
|
72
|
+
|
73
|
+
end # Accessibility
|
74
|
+
end # V96
|
75
|
+
end # DevTools
|
76
|
+
end # Selenium
|