selenium-devtools 0.112.0 → 0.114.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/lib/selenium/devtools/v112.rb +79 -1
  4. data/lib/selenium/devtools/{v111 → v113}/accessibility.rb +2 -2
  5. data/lib/selenium/devtools/{v111 → v113}/animation.rb +2 -2
  6. data/lib/selenium/devtools/{v111 → v113}/audits.rb +2 -2
  7. data/lib/selenium/devtools/{v110 → v113}/background_service.rb +2 -2
  8. data/lib/selenium/devtools/{v110 → v113}/browser.rb +2 -2
  9. data/lib/selenium/devtools/{v111 → v113}/cache_storage.rb +2 -2
  10. data/lib/selenium/devtools/{v110 → v113}/cast.rb +2 -2
  11. data/lib/selenium/devtools/{v111 → v113}/console.rb +2 -2
  12. data/lib/selenium/devtools/{v110 → v113}/css.rb +2 -2
  13. data/lib/selenium/devtools/{v111 → v113}/database.rb +2 -2
  14. data/lib/selenium/devtools/{v111 → v113}/debugger.rb +2 -2
  15. data/lib/selenium/devtools/v113/device_access.rb +60 -0
  16. data/lib/selenium/devtools/{v110 → v113}/device_orientation.rb +2 -2
  17. data/lib/selenium/devtools/{v111 → v113}/dom.rb +2 -2
  18. data/lib/selenium/devtools/{v111 → v113}/dom_debugger.rb +2 -2
  19. data/lib/selenium/devtools/{v111 → v113}/dom_snapshot.rb +2 -2
  20. data/lib/selenium/devtools/{v110 → v113}/dom_storage.rb +2 -2
  21. data/lib/selenium/devtools/{v111 → v113}/emulation.rb +2 -2
  22. data/lib/selenium/devtools/{v111 → v113}/event_breakpoints.rb +2 -2
  23. data/lib/selenium/devtools/v113/fed_cm.rb +66 -0
  24. data/lib/selenium/devtools/{v110 → v113}/fetch.rb +2 -2
  25. data/lib/selenium/devtools/{v110 → v113}/headless_experimental.rb +2 -2
  26. data/lib/selenium/devtools/{v111 → v113}/heap_profiler.rb +2 -2
  27. data/lib/selenium/devtools/{v110 → v113}/indexed_db.rb +2 -2
  28. data/lib/selenium/devtools/{v111 → v113}/input.rb +2 -2
  29. data/lib/selenium/devtools/{v111 → v113}/inspector.rb +2 -2
  30. data/lib/selenium/devtools/{v110 → v113}/io.rb +2 -2
  31. data/lib/selenium/devtools/{v111 → v113}/layer_tree.rb +2 -2
  32. data/lib/selenium/devtools/{v111 → v113}/log.rb +2 -2
  33. data/lib/selenium/devtools/{v111 → v113}/media.rb +2 -2
  34. data/lib/selenium/devtools/{v111 → v113}/memory.rb +2 -2
  35. data/lib/selenium/devtools/{v111 → v113}/network.rb +2 -2
  36. data/lib/selenium/devtools/{v110 → v113}/overlay.rb +2 -2
  37. data/lib/selenium/devtools/{v110 → v113}/page.rb +7 -3
  38. data/lib/selenium/devtools/{v110 → v113}/performance.rb +2 -2
  39. data/lib/selenium/devtools/{v111 → v113}/performance_timeline.rb +2 -2
  40. data/lib/selenium/devtools/v113/preload.rb +54 -0
  41. data/lib/selenium/devtools/{v111 → v113}/profiler.rb +2 -2
  42. data/lib/selenium/devtools/{v111 → v113}/runtime.rb +2 -2
  43. data/lib/selenium/devtools/{v111 → v113}/schema.rb +2 -2
  44. data/lib/selenium/devtools/{v110 → v113}/security.rb +2 -2
  45. data/lib/selenium/devtools/{v110 → v113}/service_worker.rb +2 -2
  46. data/lib/selenium/devtools/{v111 → v113}/storage.rb +16 -2
  47. data/lib/selenium/devtools/{v110 → v113}/system_info.rb +2 -2
  48. data/lib/selenium/devtools/{v111 → v113}/target.rb +2 -2
  49. data/lib/selenium/devtools/{v110 → v113}/tethering.rb +2 -2
  50. data/lib/selenium/devtools/{v110 → v113}/tracing.rb +2 -2
  51. data/lib/selenium/devtools/{v110 → v113}/web_audio.rb +2 -2
  52. data/lib/selenium/devtools/{v110 → v113}/web_authn.rb +2 -2
  53. data/lib/selenium/devtools/v113.rb +80 -0
  54. data/lib/selenium/devtools/{v110 → v114}/accessibility.rb +2 -2
  55. data/lib/selenium/devtools/{v110 → v114}/animation.rb +2 -2
  56. data/lib/selenium/devtools/{v110 → v114}/audits.rb +2 -2
  57. data/lib/selenium/devtools/{v111 → v114}/background_service.rb +2 -2
  58. data/lib/selenium/devtools/{v111 → v114}/browser.rb +2 -2
  59. data/lib/selenium/devtools/{v110 → v114}/cache_storage.rb +2 -2
  60. data/lib/selenium/devtools/{v111 → v114}/cast.rb +2 -2
  61. data/lib/selenium/devtools/{v110 → v114}/console.rb +2 -2
  62. data/lib/selenium/devtools/{v111 → v114}/css.rb +2 -2
  63. data/lib/selenium/devtools/{v110 → v114}/database.rb +2 -2
  64. data/lib/selenium/devtools/{v110 → v114}/debugger.rb +2 -2
  65. data/lib/selenium/devtools/v114/device_access.rb +60 -0
  66. data/lib/selenium/devtools/{v111 → v114}/device_orientation.rb +2 -2
  67. data/lib/selenium/devtools/{v110 → v114}/dom.rb +2 -2
  68. data/lib/selenium/devtools/{v110 → v114}/dom_debugger.rb +2 -2
  69. data/lib/selenium/devtools/{v110 → v114}/dom_snapshot.rb +2 -2
  70. data/lib/selenium/devtools/{v111 → v114}/dom_storage.rb +2 -2
  71. data/lib/selenium/devtools/{v110 → v114}/emulation.rb +2 -2
  72. data/lib/selenium/devtools/{v110 → v114}/event_breakpoints.rb +2 -2
  73. data/lib/selenium/devtools/v114/fed_cm.rb +66 -0
  74. data/lib/selenium/devtools/{v111 → v114}/fetch.rb +2 -2
  75. data/lib/selenium/devtools/{v111 → v114}/headless_experimental.rb +2 -2
  76. data/lib/selenium/devtools/{v110 → v114}/heap_profiler.rb +2 -2
  77. data/lib/selenium/devtools/{v111 → v114}/indexed_db.rb +2 -2
  78. data/lib/selenium/devtools/{v110 → v114}/input.rb +2 -2
  79. data/lib/selenium/devtools/{v110 → v114}/inspector.rb +2 -2
  80. data/lib/selenium/devtools/{v111 → v114}/io.rb +2 -2
  81. data/lib/selenium/devtools/{v110 → v114}/layer_tree.rb +2 -2
  82. data/lib/selenium/devtools/{v110 → v114}/log.rb +2 -2
  83. data/lib/selenium/devtools/{v110 → v114}/media.rb +2 -2
  84. data/lib/selenium/devtools/{v110 → v114}/memory.rb +2 -2
  85. data/lib/selenium/devtools/{v110 → v114}/network.rb +2 -2
  86. data/lib/selenium/devtools/{v111 → v114}/overlay.rb +2 -2
  87. data/lib/selenium/devtools/{v111 → v114}/page.rb +7 -3
  88. data/lib/selenium/devtools/{v111 → v114}/performance.rb +2 -2
  89. data/lib/selenium/devtools/{v110 → v114}/performance_timeline.rb +2 -2
  90. data/lib/selenium/devtools/v114/preload.rb +55 -0
  91. data/lib/selenium/devtools/{v110 → v114}/profiler.rb +2 -2
  92. data/lib/selenium/devtools/{v110 → v114}/runtime.rb +4 -3
  93. data/lib/selenium/devtools/{v110 → v114}/schema.rb +2 -2
  94. data/lib/selenium/devtools/{v111 → v114}/security.rb +2 -2
  95. data/lib/selenium/devtools/{v111 → v114}/service_worker.rb +2 -2
  96. data/lib/selenium/devtools/{v110 → v114}/storage.rb +25 -2
  97. data/lib/selenium/devtools/{v111 → v114}/system_info.rb +2 -2
  98. data/lib/selenium/devtools/{v110 → v114}/target.rb +5 -4
  99. data/lib/selenium/devtools/{v111 → v114}/tethering.rb +2 -2
  100. data/lib/selenium/devtools/{v111 → v114}/tracing.rb +2 -2
  101. data/lib/selenium/devtools/{v111 → v114}/web_audio.rb +2 -2
  102. data/lib/selenium/devtools/{v111 → v114}/web_authn.rb +2 -2
  103. data/lib/selenium/devtools/v114.rb +80 -0
  104. data/lib/selenium/devtools/v85.rb +76 -1
  105. data/lib/selenium/devtools/version.rb +1 -1
  106. data/lib/selenium/devtools.rb +10 -3
  107. data/selenium-devtools.gemspec +1 -1
  108. metadata +107 -101
  109. data/lib/selenium/devtools/v110.rb +0 -1
  110. data/lib/selenium/devtools/v111.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 V110
23
+ module V114
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 # V110
81
+ end # V114
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 V110
23
+ module V114
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, throw_on_side_effect: nil, generate_web_driver_value: 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, unique_context_id: nil, generate_web_driver_value: nil)
53
53
  @devtools.send_cmd('Runtime.callFunctionOn',
54
54
  functionDeclaration: function_declaration,
55
55
  objectId: object_id,
@@ -62,6 +62,7 @@ module Selenium
62
62
  executionContextId: execution_context_id,
63
63
  objectGroup: object_group,
64
64
  throwOnSideEffect: throw_on_side_effect,
65
+ uniqueContextId: unique_context_id,
65
66
  generateWebDriverValue: generate_web_driver_value)
66
67
  end
67
68
 
@@ -196,6 +197,6 @@ module Selenium
196
197
  end
197
198
 
198
199
  end # Runtime
199
- end # V110
200
+ end # V114
200
201
  end # DevTools
201
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 V110
23
+ module V114
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 # V110
40
+ end # V114
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 V111
23
+ module V114
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 # V111
65
+ end # V114
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 V111
23
+ module V114
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 # V111
110
+ end # V114
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 V110
23
+ module V114
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -29,6 +29,8 @@ module Selenium
29
29
  indexed_db_list_updated: 'indexedDBListUpdated',
30
30
  interest_group_accessed: 'interestGroupAccessed',
31
31
  shared_storage_accessed: 'sharedStorageAccessed',
32
+ storage_bucket_created_or_updated: 'storageBucketCreatedOrUpdated',
33
+ storage_bucket_deleted: 'storageBucketDeleted',
32
34
  }.freeze
33
35
 
34
36
  def initialize(devtools)
@@ -173,12 +175,33 @@ module Selenium
173
175
  ownerOrigin: owner_origin)
174
176
  end
175
177
 
178
+ def reset_shared_storage_budget(owner_origin:)
179
+ @devtools.send_cmd('Storage.resetSharedStorageBudget',
180
+ ownerOrigin: owner_origin)
181
+ end
182
+
176
183
  def set_shared_storage_tracking(enable:)
177
184
  @devtools.send_cmd('Storage.setSharedStorageTracking',
178
185
  enable: enable)
179
186
  end
180
187
 
188
+ def set_storage_bucket_tracking(storage_key:, enable:)
189
+ @devtools.send_cmd('Storage.setStorageBucketTracking',
190
+ storageKey: storage_key,
191
+ enable: enable)
192
+ end
193
+
194
+ def delete_storage_bucket(storage_key:, bucket_name:)
195
+ @devtools.send_cmd('Storage.deleteStorageBucket',
196
+ storageKey: storage_key,
197
+ bucketName: bucket_name)
198
+ end
199
+
200
+ def run_bounce_tracking_mitigations
201
+ @devtools.send_cmd('Storage.runBounceTrackingMitigations')
202
+ end
203
+
181
204
  end # Storage
182
- end # V110
205
+ end # V114
183
206
  end # DevTools
184
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 V111
23
+ module V114
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 # V111
49
+ end # V114
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 V110
23
+ module V114
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -79,7 +79,7 @@ module Selenium
79
79
  @devtools.send_cmd('Target.getBrowserContexts')
80
80
  end
81
81
 
82
- def create_target(url:, width: nil, height: nil, browser_context_id: nil, enable_begin_frame_control: nil, new_window: nil, background: nil)
82
+ def create_target(url:, width: nil, height: nil, browser_context_id: nil, enable_begin_frame_control: nil, new_window: nil, background: nil, for_tab: nil)
83
83
  @devtools.send_cmd('Target.createTarget',
84
84
  url: url,
85
85
  width: width,
@@ -87,7 +87,8 @@ module Selenium
87
87
  browserContextId: browser_context_id,
88
88
  enableBeginFrameControl: enable_begin_frame_control,
89
89
  newWindow: new_window,
90
- background: background)
90
+ background: background,
91
+ forTab: for_tab)
91
92
  end
92
93
 
93
94
  def detach_from_target(session_id: nil, target_id: nil)
@@ -145,6 +146,6 @@ module Selenium
145
146
  end
146
147
 
147
148
  end # Target
148
- end # V110
149
+ end # V114
149
150
  end # DevTools
150
151
  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 V111
23
+ module V114
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 # V111
49
+ end # V114
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 V111
23
+ module V114
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 # V111
73
+ end # V114
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 V111
23
+ module V114
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 # V111
64
+ end # V114
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 V111
23
+ module V114
24
24
  class WebAuthn
25
25
  EVENTS = {
26
26
  credential_added: 'credentialAdded',
@@ -104,6 +104,6 @@ module Selenium
104
104
  end
105
105
 
106
106
  end # WebAuthn
107
- end # V111
107
+ end # V114
108
108
  end # DevTools
109
109
  end # Selenium
@@ -0,0 +1,80 @@
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
+
22
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v114/*", &method(:require))
23
+
24
+ module Selenium
25
+ module DevTools
26
+ module V114
27
+ METHODS_TO_CLASSES = {
28
+ accessibility: 'Accessibility',
29
+ animation: 'Animation',
30
+ audits: 'Audits',
31
+ background_service: 'BackgroundService',
32
+ browser: 'Browser',
33
+ css: 'CSS',
34
+ cache_storage: 'CacheStorage',
35
+ cast: 'Cast',
36
+ dom: 'DOM',
37
+ dom_debugger: 'DOMDebugger',
38
+ event_breakpoints: 'EventBreakpoints',
39
+ dom_snapshot: 'DOMSnapshot',
40
+ dom_storage: 'DOMStorage',
41
+ database: 'Database',
42
+ device_orientation: 'DeviceOrientation',
43
+ emulation: 'Emulation',
44
+ headless_experimental: 'HeadlessExperimental',
45
+ io: 'IO',
46
+ indexed_db: 'IndexedDB',
47
+ input: 'Input',
48
+ inspector: 'Inspector',
49
+ layer_tree: 'LayerTree',
50
+ log: 'Log',
51
+ memory: 'Memory',
52
+ network: 'Network',
53
+ overlay: 'Overlay',
54
+ page: 'Page',
55
+ performance: 'Performance',
56
+ performance_timeline: 'PerformanceTimeline',
57
+ security: 'Security',
58
+ service_worker: 'ServiceWorker',
59
+ storage: 'Storage',
60
+ system_info: 'SystemInfo',
61
+ target: 'Target',
62
+ tethering: 'Tethering',
63
+ tracing: 'Tracing',
64
+ fetch: 'Fetch',
65
+ web_audio: 'WebAudio',
66
+ web_authn: 'WebAuthn',
67
+ media: 'Media',
68
+ device_access: 'DeviceAccess',
69
+ preload: 'Preload',
70
+ fed_cm: 'FedCm',
71
+ console: 'Console',
72
+ debugger: 'Debugger',
73
+ heap_profiler: 'HeapProfiler',
74
+ profiler: 'Profiler',
75
+ runtime: 'Runtime',
76
+ schema: 'Schema',
77
+ }.freeze
78
+ end # V114
79
+ end # DevTools
80
+ end # Selenium
@@ -1 +1,76 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v85/*", &method(:require))
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
+
22
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v85/*", &method(:require))
23
+
24
+ module Selenium
25
+ module DevTools
26
+ module V85
27
+ METHODS_TO_CLASSES = {
28
+ accessibility: 'Accessibility',
29
+ animation: 'Animation',
30
+ application_cache: 'ApplicationCache',
31
+ audits: 'Audits',
32
+ background_service: 'BackgroundService',
33
+ browser: 'Browser',
34
+ css: 'CSS',
35
+ cache_storage: 'CacheStorage',
36
+ cast: 'Cast',
37
+ dom: 'DOM',
38
+ dom_debugger: 'DOMDebugger',
39
+ dom_snapshot: 'DOMSnapshot',
40
+ dom_storage: 'DOMStorage',
41
+ database: 'Database',
42
+ device_orientation: 'DeviceOrientation',
43
+ emulation: 'Emulation',
44
+ headless_experimental: 'HeadlessExperimental',
45
+ io: 'IO',
46
+ indexed_db: 'IndexedDB',
47
+ input: 'Input',
48
+ inspector: 'Inspector',
49
+ layer_tree: 'LayerTree',
50
+ log: 'Log',
51
+ memory: 'Memory',
52
+ network: 'Network',
53
+ overlay: 'Overlay',
54
+ page: 'Page',
55
+ performance: 'Performance',
56
+ security: 'Security',
57
+ service_worker: 'ServiceWorker',
58
+ storage: 'Storage',
59
+ system_info: 'SystemInfo',
60
+ target: 'Target',
61
+ tethering: 'Tethering',
62
+ tracing: 'Tracing',
63
+ fetch: 'Fetch',
64
+ web_audio: 'WebAudio',
65
+ web_authn: 'WebAuthn',
66
+ media: 'Media',
67
+ console: 'Console',
68
+ debugger: 'Debugger',
69
+ heap_profiler: 'HeapProfiler',
70
+ profiler: 'Profiler',
71
+ runtime: 'Runtime',
72
+ schema: 'Schema',
73
+ }.freeze
74
+ end # V85
75
+ end # DevTools
76
+ end # Selenium
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.112.0'
22
+ VERSION = '0.114.0'
23
23
  end # DevTools
24
24
  end # Selenium
@@ -25,7 +25,8 @@ module Selenium
25
25
  def load_version
26
26
  require "selenium/devtools/v#{@version}"
27
27
  rescue LoadError
28
- Kernel.warn "Could not load selenium-devtools v#{@version}. Trying older versions."
28
+ WebDriver.logger.warn "Could not load selenium-devtools v#{@version}. Trying older versions.",
29
+ id: :devtools
29
30
  load_older_version
30
31
  end
31
32
 
@@ -35,13 +36,19 @@ module Selenium
35
36
  def load_older_version
36
37
  load_old_version(@version - 1)
37
38
  rescue LoadError
38
- load_old_version(@version - 2)
39
+ begin
40
+ load_old_version(@version - 2)
41
+ rescue LoadError
42
+ raise WebDriver::Error::WebDriverError,
43
+ 'Could not find a valid devtools version; use a more recent version of selenium-devtools gem'
44
+ end
39
45
  end
40
46
 
41
47
  def load_old_version(version)
42
48
  require "selenium/devtools/v#{version}"
43
49
  self.version = version
44
- Kernel.warn "Using selenium-devtools version v#{version}, some features may not work as expected."
50
+ msg = "Using selenium-devtools version v#{version}, some features may not work as expected."
51
+ WebDriver.logger.warn msg, id: :devtools
45
52
  end
46
53
  end
47
54
  end # DevTools
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  }
30
30
 
31
31
  s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
32
- s.required_ruby_version = Gem::Requirement.new('>= 2.7')
32
+ s.required_ruby_version = Gem::Requirement.new('>= 3.0')
33
33
 
34
34
  s.files = [
35
35
  'LICENSE',