selenium-devtools 0.148.0 → 0.149.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/Gemfile +1 -4
- data/lib/selenium/devtools/{v146 → v149}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/animation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/audits.rb +2 -7
- data/lib/selenium/devtools/{v146 → v149}/autofill.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/bluetooth_emulation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/browser.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/cast.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/console.rb +2 -2
- data/lib/selenium/devtools/v149/crash_report_context.rb +42 -0
- data/lib/selenium/devtools/{v146 → v149}/css.rb +9 -2
- data/lib/selenium/devtools/{v146 → v149}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/device_access.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/dom.rb +3 -2
- data/lib/selenium/devtools/{v146 → v149}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/emulation.rb +27 -4
- data/lib/selenium/devtools/{v146 → v149}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/extensions.rb +6 -2
- data/lib/selenium/devtools/{v146 → v149}/fed_cm.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/file_system.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/input.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/io.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/log.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/media.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/memory.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/network.rb +11 -7
- data/lib/selenium/devtools/{v146 → v149}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/page.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/performance.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/preload.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/pwa.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/schema.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/security.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/smart_card_emulation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/storage.rb +2 -26
- data/lib/selenium/devtools/{v146 → v149}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/target.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v149/web_mcp.rb +64 -0
- data/lib/selenium/devtools/{v146.rb → v149.rb} +5 -3
- data/lib/selenium/devtools/version.rb +1 -1
- data/selenium-devtools.gemspec +1 -1
- metadata +61 -59
|
@@ -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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
24
24
|
class Network
|
|
25
25
|
EVENTS = {
|
|
26
26
|
data_received: 'dataReceived',
|
|
@@ -144,9 +144,10 @@ module Selenium
|
|
|
144
144
|
packetReordering: packet_reordering)
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
def emulate_network_conditions_by_rule(offline
|
|
147
|
+
def emulate_network_conditions_by_rule(offline: nil, emulate_offline_service_worker: nil, matched_network_conditions:)
|
|
148
148
|
@devtools.send_cmd('Network.emulateNetworkConditionsByRule',
|
|
149
149
|
offline: offline,
|
|
150
|
+
emulateOfflineServiceWorker: emulate_offline_service_worker,
|
|
150
151
|
matchedNetworkConditions: matched_network_conditions)
|
|
151
152
|
end
|
|
152
153
|
|
|
@@ -302,6 +303,11 @@ module Selenium
|
|
|
302
303
|
enable: enable)
|
|
303
304
|
end
|
|
304
305
|
|
|
306
|
+
def delete_device_bound_session(key:)
|
|
307
|
+
@devtools.send_cmd('Network.deleteDeviceBoundSession',
|
|
308
|
+
key: key)
|
|
309
|
+
end
|
|
310
|
+
|
|
305
311
|
def fetch_schemeful_site(origin:)
|
|
306
312
|
@devtools.send_cmd('Network.fetchSchemefulSite',
|
|
307
313
|
origin: origin)
|
|
@@ -314,14 +320,12 @@ module Selenium
|
|
|
314
320
|
options: options)
|
|
315
321
|
end
|
|
316
322
|
|
|
317
|
-
def set_cookie_controls(enable_third_party_cookie_restriction
|
|
323
|
+
def set_cookie_controls(enable_third_party_cookie_restriction:)
|
|
318
324
|
@devtools.send_cmd('Network.setCookieControls',
|
|
319
|
-
enableThirdPartyCookieRestriction: enable_third_party_cookie_restriction
|
|
320
|
-
disableThirdPartyCookieMetadata: disable_third_party_cookie_metadata,
|
|
321
|
-
disableThirdPartyCookieHeuristics: disable_third_party_cookie_heuristics)
|
|
325
|
+
enableThirdPartyCookieRestriction: enable_third_party_cookie_restriction)
|
|
322
326
|
end
|
|
323
327
|
|
|
324
328
|
end # Network
|
|
325
|
-
end #
|
|
329
|
+
end # V149
|
|
326
330
|
end # DevTools
|
|
327
331
|
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 V149
|
|
24
24
|
class Overlay
|
|
25
25
|
EVENTS = {
|
|
26
26
|
inspect_node_requested: 'inspectNodeRequested',
|
|
@@ -209,6 +209,6 @@ module Selenium
|
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
end # Overlay
|
|
212
|
-
end #
|
|
212
|
+
end # V149
|
|
213
213
|
end # DevTools
|
|
214
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
106
106
|
end # DevTools
|
|
107
107
|
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 V149
|
|
24
24
|
class SmartCardEmulation
|
|
25
25
|
EVENTS = {
|
|
26
26
|
establish_context_requested: 'establishContextRequested',
|
|
@@ -119,6 +119,6 @@ module Selenium
|
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
end # SmartCardEmulation
|
|
122
|
-
end #
|
|
122
|
+
end # V149
|
|
123
123
|
end # DevTools
|
|
124
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 V149
|
|
24
24
|
class Storage
|
|
25
25
|
EVENTS = {
|
|
26
26
|
cache_storage_content_updated: 'cacheStorageContentUpdated',
|
|
@@ -34,10 +34,6 @@ module Selenium
|
|
|
34
34
|
shared_storage_worklet_operation_execution_finished: 'sharedStorageWorkletOperationExecutionFinished',
|
|
35
35
|
storage_bucket_created_or_updated: 'storageBucketCreatedOrUpdated',
|
|
36
36
|
storage_bucket_deleted: 'storageBucketDeleted',
|
|
37
|
-
attribution_reporting_source_registered: 'attributionReportingSourceRegistered',
|
|
38
|
-
attribution_reporting_trigger_registered: 'attributionReportingTriggerRegistered',
|
|
39
|
-
attribution_reporting_report_sent: 'attributionReportingReportSent',
|
|
40
|
-
attribution_reporting_verbose_debug_report_sent: 'attributionReportingVerboseDebugReportSent',
|
|
41
37
|
}.freeze
|
|
42
38
|
|
|
43
39
|
def initialize(devtools)
|
|
@@ -217,30 +213,10 @@ module Selenium
|
|
|
217
213
|
@devtools.send_cmd('Storage.runBounceTrackingMitigations')
|
|
218
214
|
end
|
|
219
215
|
|
|
220
|
-
def set_attribution_reporting_local_testing_mode(enabled:)
|
|
221
|
-
@devtools.send_cmd('Storage.setAttributionReportingLocalTestingMode',
|
|
222
|
-
enabled: enabled)
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def set_attribution_reporting_tracking(enable:)
|
|
226
|
-
@devtools.send_cmd('Storage.setAttributionReportingTracking',
|
|
227
|
-
enable: enable)
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def send_pending_attribution_reports
|
|
231
|
-
@devtools.send_cmd('Storage.sendPendingAttributionReports')
|
|
232
|
-
end
|
|
233
|
-
|
|
234
216
|
def get_related_website_sets
|
|
235
217
|
@devtools.send_cmd('Storage.getRelatedWebsiteSets')
|
|
236
218
|
end
|
|
237
219
|
|
|
238
|
-
def get_affected_urls_for_third_party_cookie_metadata(first_party_url:, third_party_urls:)
|
|
239
|
-
@devtools.send_cmd('Storage.getAffectedUrlsForThirdPartyCookieMetadata',
|
|
240
|
-
firstPartyUrl: first_party_url,
|
|
241
|
-
thirdPartyUrls: third_party_urls)
|
|
242
|
-
end
|
|
243
|
-
|
|
244
220
|
def set_protected_audience_k_anonymity(owner:, name:, hashes:)
|
|
245
221
|
@devtools.send_cmd('Storage.setProtectedAudienceKAnonymity',
|
|
246
222
|
owner: owner,
|
|
@@ -249,6 +225,6 @@ module Selenium
|
|
|
249
225
|
end
|
|
250
226
|
|
|
251
227
|
end # Storage
|
|
252
|
-
end #
|
|
228
|
+
end # V149
|
|
253
229
|
end # DevTools
|
|
254
230
|
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 V149
|
|
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 # V149
|
|
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 V149
|
|
24
24
|
class Target
|
|
25
25
|
EVENTS = {
|
|
26
26
|
attached_to_target: 'attachedToTarget',
|
|
@@ -163,6 +163,6 @@ module Selenium
|
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
end # Target
|
|
166
|
-
end #
|
|
166
|
+
end # V149
|
|
167
167
|
end # DevTools
|
|
168
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 V149
|
|
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 # V149
|
|
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 V149
|
|
24
24
|
class Tracing
|
|
25
25
|
EVENTS = {
|
|
26
26
|
buffer_usage: 'bufferUsage',
|
|
@@ -74,6 +74,6 @@ module Selenium
|
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
end # Tracing
|
|
77
|
-
end #
|
|
77
|
+
end # V149
|
|
78
78
|
end # DevTools
|
|
79
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 V149
|
|
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 # V149
|
|
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 V149
|
|
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 # V149
|
|
118
118
|
end # DevTools
|
|
119
119
|
end # Selenium
|
|
@@ -0,0 +1,64 @@
|
|
|
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 V149
|
|
24
|
+
class WebMCP
|
|
25
|
+
EVENTS = {
|
|
26
|
+
tools_added: 'toolsAdded',
|
|
27
|
+
tools_removed: 'toolsRemoved',
|
|
28
|
+
tool_invoked: 'toolInvoked',
|
|
29
|
+
tool_responded: 'toolResponded',
|
|
30
|
+
}.freeze
|
|
31
|
+
|
|
32
|
+
def initialize(devtools)
|
|
33
|
+
@devtools = devtools
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def on(event, &block)
|
|
37
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
|
38
|
+
@devtools.callbacks["WebMCP.#{event}"] << block
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def enable
|
|
42
|
+
@devtools.send_cmd('WebMCP.enable')
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def disable
|
|
46
|
+
@devtools.send_cmd('WebMCP.disable')
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def invoke_tool(frame_id:, tool_name:, input:)
|
|
50
|
+
@devtools.send_cmd('WebMCP.invokeTool',
|
|
51
|
+
frameId: frame_id,
|
|
52
|
+
toolName: tool_name,
|
|
53
|
+
input: input)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def cancel_invocation(invocation_id:)
|
|
57
|
+
@devtools.send_cmd('WebMCP.cancelInvocation',
|
|
58
|
+
invocationId: invocation_id)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
end # WebMCP
|
|
62
|
+
end # V149
|
|
63
|
+
end # DevTools
|
|
64
|
+
end # Selenium
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
|
21
21
|
|
|
22
|
-
Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/
|
|
22
|
+
Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v149/*", &method(:require))
|
|
23
23
|
|
|
24
24
|
module Selenium
|
|
25
25
|
module DevTools
|
|
26
|
-
module
|
|
26
|
+
module V149
|
|
27
27
|
METHODS_TO_CLASSES = {
|
|
28
28
|
accessibility: 'Accessibility',
|
|
29
29
|
animation: 'Animation',
|
|
@@ -35,6 +35,7 @@ module Selenium
|
|
|
35
35
|
css: 'CSS',
|
|
36
36
|
cache_storage: 'CacheStorage',
|
|
37
37
|
cast: 'Cast',
|
|
38
|
+
crash_report_context: 'CrashReportContext',
|
|
38
39
|
dom: 'DOM',
|
|
39
40
|
dom_debugger: 'DOMDebugger',
|
|
40
41
|
dom_snapshot: 'DOMSnapshot',
|
|
@@ -73,6 +74,7 @@ module Selenium
|
|
|
73
74
|
tracing: 'Tracing',
|
|
74
75
|
web_audio: 'WebAudio',
|
|
75
76
|
web_authn: 'WebAuthn',
|
|
77
|
+
web_mcp: 'WebMCP',
|
|
76
78
|
console: 'Console',
|
|
77
79
|
debugger: 'Debugger',
|
|
78
80
|
heap_profiler: 'HeapProfiler',
|
|
@@ -80,6 +82,6 @@ module Selenium
|
|
|
80
82
|
runtime: 'Runtime',
|
|
81
83
|
schema: 'Schema',
|
|
82
84
|
}.freeze
|
|
83
|
-
end #
|
|
85
|
+
end # V149
|
|
84
86
|
end # DevTools
|
|
85
87
|
end # Selenium
|
data/selenium-devtools.gemspec
CHANGED
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
|
|
31
|
-
s.required_ruby_version = Gem::Requirement.new('>= 3.
|
|
31
|
+
s.required_ruby_version = Gem::Requirement.new('>= 3.3')
|
|
32
32
|
|
|
33
33
|
s.files = [
|
|
34
34
|
'LICENSE',
|