selenium-devtools 0.140.0 → 0.141.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -0
  3. data/lib/selenium/devtools/{v138 → v141}/accessibility.rb +2 -2
  4. data/lib/selenium/devtools/{v138 → v141}/animation.rb +2 -2
  5. data/lib/selenium/devtools/{v138 → v141}/audits.rb +2 -2
  6. data/lib/selenium/devtools/{v138 → v141}/autofill.rb +2 -2
  7. data/lib/selenium/devtools/{v138 → v141}/background_service.rb +2 -2
  8. data/lib/selenium/devtools/{v138 → v141}/bluetooth_emulation.rb +2 -2
  9. data/lib/selenium/devtools/{v138 → v141}/browser.rb +11 -3
  10. data/lib/selenium/devtools/{v138 → v141}/cache_storage.rb +2 -2
  11. data/lib/selenium/devtools/{v138 → v141}/cast.rb +2 -2
  12. data/lib/selenium/devtools/{v138 → v141}/console.rb +2 -2
  13. data/lib/selenium/devtools/{v138 → v141}/css.rb +6 -2
  14. data/lib/selenium/devtools/{v138 → v141}/debugger.rb +2 -2
  15. data/lib/selenium/devtools/{v138 → v141}/device_access.rb +2 -2
  16. data/lib/selenium/devtools/{v138 → v141}/device_orientation.rb +2 -2
  17. data/lib/selenium/devtools/{v138 → v141}/dom.rb +14 -6
  18. data/lib/selenium/devtools/{v138 → v141}/dom_debugger.rb +2 -2
  19. data/lib/selenium/devtools/{v138 → v141}/dom_snapshot.rb +2 -2
  20. data/lib/selenium/devtools/{v138 → v141}/dom_storage.rb +2 -2
  21. data/lib/selenium/devtools/{v138 → v141}/emulation.rb +35 -2
  22. data/lib/selenium/devtools/{v138 → v141}/event_breakpoints.rb +2 -2
  23. data/lib/selenium/devtools/{v138 → v141}/extensions.rb +2 -2
  24. data/lib/selenium/devtools/{v138 → v141}/fed_cm.rb +2 -2
  25. data/lib/selenium/devtools/{v138 → v141}/fetch.rb +2 -2
  26. data/lib/selenium/devtools/{v138 → v141}/file_system.rb +2 -2
  27. data/lib/selenium/devtools/{v138 → v141}/headless_experimental.rb +2 -2
  28. data/lib/selenium/devtools/{v138 → v141}/heap_profiler.rb +2 -2
  29. data/lib/selenium/devtools/{v138 → v141}/indexed_db.rb +2 -2
  30. data/lib/selenium/devtools/{v138 → v141}/input.rb +2 -2
  31. data/lib/selenium/devtools/{v138 → v141}/inspector.rb +2 -2
  32. data/lib/selenium/devtools/{v138 → v141}/io.rb +2 -2
  33. data/lib/selenium/devtools/{v138 → v141}/layer_tree.rb +2 -2
  34. data/lib/selenium/devtools/{v138 → v141}/log.rb +2 -2
  35. data/lib/selenium/devtools/{v138 → v141}/media.rb +3 -3
  36. data/lib/selenium/devtools/{v138 → v141}/memory.rb +2 -2
  37. data/lib/selenium/devtools/{v138 → v141}/network.rb +9 -4
  38. data/lib/selenium/devtools/{v138 → v141}/overlay.rb +2 -2
  39. data/lib/selenium/devtools/{v138 → v141}/page.rb +4 -4
  40. data/lib/selenium/devtools/{v138 → v141}/performance.rb +2 -2
  41. data/lib/selenium/devtools/{v138 → v141}/performance_timeline.rb +2 -2
  42. data/lib/selenium/devtools/{v138 → v141}/preload.rb +2 -2
  43. data/lib/selenium/devtools/{v138 → v141}/profiler.rb +2 -2
  44. data/lib/selenium/devtools/{v138 → v141}/pwa.rb +2 -2
  45. data/lib/selenium/devtools/{v138 → v141}/runtime.rb +2 -2
  46. data/lib/selenium/devtools/{v138 → v141}/schema.rb +2 -2
  47. data/lib/selenium/devtools/{v138 → v141}/security.rb +2 -2
  48. data/lib/selenium/devtools/{v138 → v141}/service_worker.rb +2 -7
  49. data/lib/selenium/devtools/{v138 → v141}/storage.rb +3 -2
  50. data/lib/selenium/devtools/{v138 → v141}/system_info.rb +2 -2
  51. data/lib/selenium/devtools/{v138 → v141}/target.rb +7 -2
  52. data/lib/selenium/devtools/{v138 → v141}/tethering.rb +2 -2
  53. data/lib/selenium/devtools/{v138 → v141}/tracing.rb +2 -2
  54. data/lib/selenium/devtools/{v138 → v141}/web_audio.rb +2 -2
  55. data/lib/selenium/devtools/{v138 → v141}/web_authn.rb +2 -2
  56. data/lib/selenium/devtools/{v138.rb → v141.rb} +13 -13
  57. data/lib/selenium/devtools/version.rb +1 -1
  58. metadata +56 -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 V138
23
+ module V141
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 # V138
89
+ end # V141
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 V138
23
+ module V141
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 # V138
60
+ end # V141
61
61
  end # DevTools
62
62
  end # Selenium
@@ -20,14 +20,14 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V138
23
+ module V141
24
24
  class Media
25
25
  EVENTS = {
26
26
  player_properties_changed: 'playerPropertiesChanged',
27
27
  player_events_added: 'playerEventsAdded',
28
28
  player_messages_logged: 'playerMessagesLogged',
29
29
  player_errors_raised: 'playerErrorsRaised',
30
- players_created: 'playersCreated',
30
+ player_created: 'playerCreated',
31
31
  }.freeze
32
32
 
33
33
  def initialize(devtools)
@@ -48,6 +48,6 @@ module Selenium
48
48
  end
49
49
 
50
50
  end # Media
51
- end # V138
51
+ end # V141
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 V138
23
+ module V141
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 # V138
84
+ end # V141
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 V138
23
+ module V141
24
24
  class Network
25
25
  EVENTS = {
26
26
  data_received: 'dataReceived',
@@ -78,6 +78,10 @@ module Selenium
78
78
  @devtools.callbacks["Network.#{event}"] << block
79
79
  end
80
80
 
81
+ def get_ip_protection_proxy_status
82
+ @devtools.send_cmd('Network.getIPProtectionProxyStatus')
83
+ end
84
+
81
85
  def set_accepted_encodings(encodings:)
82
86
  @devtools.send_cmd('Network.setAcceptedEncodings',
83
87
  encodings: encodings)
@@ -144,12 +148,13 @@ module Selenium
144
148
  packetReordering: packet_reordering)
145
149
  end
146
150
 
147
- def enable(max_total_buffer_size: nil, max_resource_buffer_size: nil, max_post_data_size: nil, report_direct_socket_traffic: nil)
151
+ def enable(max_total_buffer_size: nil, max_resource_buffer_size: nil, max_post_data_size: nil, report_direct_socket_traffic: nil, enable_durable_messages: nil)
148
152
  @devtools.send_cmd('Network.enable',
149
153
  maxTotalBufferSize: max_total_buffer_size,
150
154
  maxResourceBufferSize: max_resource_buffer_size,
151
155
  maxPostDataSize: max_post_data_size,
152
- reportDirectSocketTraffic: report_direct_socket_traffic)
156
+ reportDirectSocketTraffic: report_direct_socket_traffic,
157
+ enableDurableMessages: enable_durable_messages)
153
158
  end
154
159
 
155
160
  def get_all_cookies
@@ -290,6 +295,6 @@ module Selenium
290
295
  end
291
296
 
292
297
  end # Network
293
- end # V138
298
+ end # V141
294
299
  end # DevTools
295
300
  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 V138
23
+ module V141
24
24
  class Overlay
25
25
  EVENTS = {
26
26
  inspect_node_requested: 'inspectNodeRequested',
@@ -202,6 +202,6 @@ module Selenium
202
202
  end
203
203
 
204
204
  end # Overlay
205
- end # V138
205
+ end # V141
206
206
  end # DevTools
207
207
  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 V138
23
+ module V141
24
24
  class Page
25
25
  EVENTS = {
26
26
  dom_content_event_fired: 'domContentEventFired',
@@ -145,8 +145,8 @@ module Selenium
145
145
  @devtools.send_cmd('Page.getAppId')
146
146
  end
147
147
 
148
- def get_ad_script_ancestry_ids(frame_id:)
149
- @devtools.send_cmd('Page.getAdScriptAncestryIds',
148
+ def get_ad_script_ancestry(frame_id:)
149
+ @devtools.send_cmd('Page.getAdScriptAncestry',
150
150
  frameId: frame_id)
151
151
  end
152
152
 
@@ -409,6 +409,6 @@ module Selenium
409
409
  end
410
410
 
411
411
  end # Page
412
- end # V138
412
+ end # V141
413
413
  end # DevTools
414
414
  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 V138
23
+ module V141
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 # V138
57
+ end # V141
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 V138
23
+ module V141
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 # V138
44
+ end # V141
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 V138
23
+ module V141
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 # V138
52
+ end # V141
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 V138
23
+ module V141
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 # V138
81
+ end # V141
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 V138
23
+ module V141
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 # V138
76
+ end # V141
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 V138
23
+ module V141
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 # V138
200
+ end # V141
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 V138
23
+ module V141
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 # V138
40
+ end # V141
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 V138
23
+ module V141
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 # V138
65
+ end # V141
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 V138
23
+ module V141
24
24
  class ServiceWorker
25
25
  EVENTS = {
26
26
  worker_error_reported: 'workerErrorReported',
@@ -67,11 +67,6 @@ module Selenium
67
67
  @devtools.send_cmd('ServiceWorker.enable')
68
68
  end
69
69
 
70
- def inspect_worker(version_id:)
71
- @devtools.send_cmd('ServiceWorker.inspectWorker',
72
- versionId: version_id)
73
- end
74
-
75
70
  def set_force_update_on_page_load(force_update_on_page_load:)
76
71
  @devtools.send_cmd('ServiceWorker.setForceUpdateOnPageLoad',
77
72
  forceUpdateOnPageLoad: force_update_on_page_load)
@@ -107,6 +102,6 @@ module Selenium
107
102
  end
108
103
 
109
104
  end # ServiceWorker
110
- end # V138
105
+ end # V141
111
106
  end # DevTools
112
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 V138
23
+ module V141
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -37,6 +37,7 @@ module Selenium
37
37
  attribution_reporting_source_registered: 'attributionReportingSourceRegistered',
38
38
  attribution_reporting_trigger_registered: 'attributionReportingTriggerRegistered',
39
39
  attribution_reporting_report_sent: 'attributionReportingReportSent',
40
+ attribution_reporting_verbose_debug_report_sent: 'attributionReportingVerboseDebugReportSent',
40
41
  }.freeze
41
42
 
42
43
  def initialize(devtools)
@@ -243,6 +244,6 @@ module Selenium
243
244
  end
244
245
 
245
246
  end # Storage
246
- end # V138
247
+ end # V141
247
248
  end # DevTools
248
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 V138
23
+ module V141
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 # V138
49
+ end # V141
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 V138
23
+ module V141
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -150,7 +150,12 @@ module Selenium
150
150
  locations: locations)
151
151
  end
152
152
 
153
+ def open_dev_tools(target_id:)
154
+ @devtools.send_cmd('Target.openDevTools',
155
+ targetId: target_id)
156
+ end
157
+
153
158
  end # Target
154
- end # V138
159
+ end # V141
155
160
  end # DevTools
156
161
  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 V138
23
+ module V141
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 # V138
49
+ end # V141
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 V138
23
+ module V141
24
24
  class Tracing
25
25
  EVENTS = {
26
26
  buffer_usage: 'bufferUsage',
@@ -70,6 +70,6 @@ module Selenium
70
70
  end
71
71
 
72
72
  end # Tracing
73
- end # V138
73
+ end # V141
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 V138
23
+ module V141
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 # V138
64
+ end # V141
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 V138
23
+ module V141
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 # V138
117
+ end # V141
118
118
  end # DevTools
119
119
  end # Selenium
@@ -19,43 +19,50 @@
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__))}/v138/*", &method(:require))
22
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v141/*", &method(:require))
23
23
 
24
24
  module Selenium
25
25
  module DevTools
26
- module V138
26
+ module V141
27
27
  METHODS_TO_CLASSES = {
28
28
  accessibility: 'Accessibility',
29
29
  animation: 'Animation',
30
30
  audits: 'Audits',
31
- extensions: 'Extensions',
32
31
  autofill: 'Autofill',
33
32
  background_service: 'BackgroundService',
33
+ bluetooth_emulation: 'BluetoothEmulation',
34
34
  browser: 'Browser',
35
35
  css: 'CSS',
36
36
  cache_storage: 'CacheStorage',
37
37
  cast: 'Cast',
38
38
  dom: 'DOM',
39
39
  dom_debugger: 'DOMDebugger',
40
- event_breakpoints: 'EventBreakpoints',
41
40
  dom_snapshot: 'DOMSnapshot',
42
41
  dom_storage: 'DOMStorage',
42
+ device_access: 'DeviceAccess',
43
43
  device_orientation: 'DeviceOrientation',
44
44
  emulation: 'Emulation',
45
+ event_breakpoints: 'EventBreakpoints',
46
+ extensions: 'Extensions',
47
+ fed_cm: 'FedCm',
48
+ fetch: 'Fetch',
49
+ file_system: 'FileSystem',
45
50
  headless_experimental: 'HeadlessExperimental',
46
51
  io: 'IO',
47
- file_system: 'FileSystem',
48
52
  indexed_db: 'IndexedDB',
49
53
  input: 'Input',
50
54
  inspector: 'Inspector',
51
55
  layer_tree: 'LayerTree',
52
56
  log: 'Log',
57
+ media: 'Media',
53
58
  memory: 'Memory',
54
59
  network: 'Network',
55
60
  overlay: 'Overlay',
61
+ pwa: 'PWA',
56
62
  page: 'Page',
57
63
  performance: 'Performance',
58
64
  performance_timeline: 'PerformanceTimeline',
65
+ preload: 'Preload',
59
66
  security: 'Security',
60
67
  service_worker: 'ServiceWorker',
61
68
  storage: 'Storage',
@@ -63,15 +70,8 @@ module Selenium
63
70
  target: 'Target',
64
71
  tethering: 'Tethering',
65
72
  tracing: 'Tracing',
66
- fetch: 'Fetch',
67
73
  web_audio: 'WebAudio',
68
74
  web_authn: 'WebAuthn',
69
- media: 'Media',
70
- device_access: 'DeviceAccess',
71
- preload: 'Preload',
72
- fed_cm: 'FedCm',
73
- pwa: 'PWA',
74
- bluetooth_emulation: 'BluetoothEmulation',
75
75
  console: 'Console',
76
76
  debugger: 'Debugger',
77
77
  heap_profiler: 'HeapProfiler',
@@ -79,6 +79,6 @@ module Selenium
79
79
  runtime: 'Runtime',
80
80
  schema: 'Schema',
81
81
  }.freeze
82
- end # V138
82
+ end # V141
83
83
  end # DevTools
84
84
  end # Selenium
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.140.0'
22
+ VERSION = '0.141.0'
23
23
  end # DevTools
24
24
  end # Selenium