selenium-devtools 0.153.0 → 0.155.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 (126) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -0
  3. data/LICENSE +0 -0
  4. data/NOTICE +0 -0
  5. data/lib/selenium/devtools/{v151 → v154}/accessibility.rb +2 -2
  6. data/lib/selenium/devtools/{v152 → v154}/ads.rb +6 -2
  7. data/lib/selenium/devtools/{v152 → v154}/animation.rb +2 -2
  8. data/lib/selenium/devtools/{v151 → v154}/audits.rb +2 -2
  9. data/lib/selenium/devtools/{v151 → v154}/autofill.rb +2 -2
  10. data/lib/selenium/devtools/{v152 → v154}/background_service.rb +2 -2
  11. data/lib/selenium/devtools/{v152 → v154}/bluetooth_emulation.rb +2 -2
  12. data/lib/selenium/devtools/{v151 → v154}/browser.rb +14 -8
  13. data/lib/selenium/devtools/{v152 → v154}/cache_storage.rb +2 -2
  14. data/lib/selenium/devtools/{v151 → v154}/cast.rb +2 -2
  15. data/lib/selenium/devtools/{v152 → v154}/console.rb +2 -2
  16. data/lib/selenium/devtools/{v152 → v154}/crash_report_context.rb +2 -2
  17. data/lib/selenium/devtools/{v152 → v154}/css.rb +2 -2
  18. data/lib/selenium/devtools/{v152 → v154}/debugger.rb +5 -4
  19. data/lib/selenium/devtools/{v152 → v154}/device_access.rb +2 -2
  20. data/lib/selenium/devtools/{v151 → v154}/device_orientation.rb +2 -2
  21. data/lib/selenium/devtools/{v152 → v154}/digital_credentials.rb +2 -2
  22. data/lib/selenium/devtools/{v151 → v154}/dom.rb +8 -2
  23. data/lib/selenium/devtools/{v152 → v154}/dom_debugger.rb +2 -2
  24. data/lib/selenium/devtools/{v152 → v154}/dom_snapshot.rb +2 -2
  25. data/lib/selenium/devtools/{v151 → v154}/dom_storage.rb +2 -2
  26. data/lib/selenium/devtools/{v152 → v154}/emulation.rb +12 -2
  27. data/lib/selenium/devtools/{v151 → v154}/event_breakpoints.rb +2 -2
  28. data/lib/selenium/devtools/{v152 → v154}/extensions.rb +2 -2
  29. data/lib/selenium/devtools/{v152 → v154}/fed_cm.rb +2 -2
  30. data/lib/selenium/devtools/{v151 → v154}/fetch.rb +2 -2
  31. data/lib/selenium/devtools/{v152 → v154}/file_system.rb +2 -2
  32. data/lib/selenium/devtools/{v151 → v154}/headless_experimental.rb +2 -2
  33. data/lib/selenium/devtools/{v152 → v154}/heap_profiler.rb +2 -2
  34. data/lib/selenium/devtools/{v151 → v154}/indexed_db.rb +2 -2
  35. data/lib/selenium/devtools/{v152 → v154}/input.rb +2 -2
  36. data/lib/selenium/devtools/{v151 → v154}/inspector.rb +2 -2
  37. data/lib/selenium/devtools/{v152 → v154}/io.rb +2 -2
  38. data/lib/selenium/devtools/{v152 → v154}/layer_tree.rb +2 -2
  39. data/lib/selenium/devtools/{v151 → v154}/log.rb +2 -2
  40. data/lib/selenium/devtools/{v151 → v154}/media.rb +2 -2
  41. data/lib/selenium/devtools/{v152 → v154}/memory.rb +2 -2
  42. data/lib/selenium/devtools/{v152 → v154}/network.rb +2 -39
  43. data/lib/selenium/devtools/{v151 → v154}/overlay.rb +2 -2
  44. data/lib/selenium/devtools/{v152 → v154}/page.rb +18 -4
  45. data/lib/selenium/devtools/{v151 → v154}/performance.rb +2 -2
  46. data/lib/selenium/devtools/{v151 → v154}/performance_timeline.rb +2 -2
  47. data/lib/selenium/devtools/{v151 → v154}/preload.rb +2 -2
  48. data/lib/selenium/devtools/{v151 → v154}/profiler.rb +2 -2
  49. data/lib/selenium/devtools/{v151 → v154}/pwa.rb +2 -2
  50. data/lib/selenium/devtools/{v151 → v154}/runtime.rb +2 -2
  51. data/lib/selenium/devtools/{v152 → v154}/schema.rb +2 -2
  52. data/lib/selenium/devtools/{v151 → v154}/security.rb +2 -2
  53. data/lib/selenium/devtools/{v151 → v154}/service_worker.rb +2 -2
  54. data/lib/selenium/devtools/{v151 → v154}/smart_card_emulation.rb +2 -2
  55. data/lib/selenium/devtools/{v152 → v154}/storage.rb +2 -43
  56. data/lib/selenium/devtools/{v151 → v154}/system_info.rb +2 -2
  57. data/lib/selenium/devtools/{v152 → v154}/target.rb +2 -2
  58. data/lib/selenium/devtools/{v152 → v154}/tethering.rb +2 -2
  59. data/lib/selenium/devtools/{v151 → v154}/tracing.rb +2 -2
  60. data/lib/selenium/devtools/{v151 → v154}/web_audio.rb +2 -2
  61. data/lib/selenium/devtools/{v152 → v154}/web_authn.rb +2 -2
  62. data/lib/selenium/devtools/{v151 → v154}/web_mcp.rb +2 -2
  63. data/lib/selenium/devtools/{v152.rb → v154.rb} +3 -3
  64. data/lib/selenium/devtools/{v152 → v155}/accessibility.rb +2 -2
  65. data/lib/selenium/devtools/{v151 → v155}/ads.rb +6 -2
  66. data/lib/selenium/devtools/{v151 → v155}/animation.rb +2 -2
  67. data/lib/selenium/devtools/{v152 → v155}/audits.rb +2 -2
  68. data/lib/selenium/devtools/{v152 → v155}/autofill.rb +2 -2
  69. data/lib/selenium/devtools/{v151 → v155}/background_service.rb +2 -2
  70. data/lib/selenium/devtools/{v151 → v155}/bluetooth_emulation.rb +2 -2
  71. data/lib/selenium/devtools/{v152 → v155}/browser.rb +16 -2
  72. data/lib/selenium/devtools/{v151 → v155}/cache_storage.rb +2 -2
  73. data/lib/selenium/devtools/{v152 → v155}/cast.rb +2 -2
  74. data/lib/selenium/devtools/{v151 → v155}/console.rb +2 -2
  75. data/lib/selenium/devtools/{v151 → v155}/crash_report_context.rb +2 -2
  76. data/lib/selenium/devtools/{v151 → v155}/css.rb +2 -2
  77. data/lib/selenium/devtools/{v151 → v155}/debugger.rb +5 -4
  78. data/lib/selenium/devtools/{v151 → v155}/device_access.rb +2 -2
  79. data/lib/selenium/devtools/{v152 → v155}/device_orientation.rb +2 -2
  80. data/lib/selenium/devtools/v155/digital_credentials.rb +47 -0
  81. data/lib/selenium/devtools/{v152 → v155}/dom.rb +27 -2
  82. data/lib/selenium/devtools/{v151 → v155}/dom_debugger.rb +2 -2
  83. data/lib/selenium/devtools/{v151 → v155}/dom_snapshot.rb +2 -2
  84. data/lib/selenium/devtools/{v152 → v155}/dom_storage.rb +2 -2
  85. data/lib/selenium/devtools/{v151 → v155}/emulation.rb +15 -4
  86. data/lib/selenium/devtools/{v152 → v155}/event_breakpoints.rb +2 -2
  87. data/lib/selenium/devtools/{v151 → v155}/extensions.rb +2 -2
  88. data/lib/selenium/devtools/{v151 → v155}/fed_cm.rb +2 -2
  89. data/lib/selenium/devtools/{v152 → v155}/fetch.rb +2 -2
  90. data/lib/selenium/devtools/{v151 → v155}/file_system.rb +2 -2
  91. data/lib/selenium/devtools/{v152 → v155}/headless_experimental.rb +2 -2
  92. data/lib/selenium/devtools/{v151 → v155}/heap_profiler.rb +2 -2
  93. data/lib/selenium/devtools/{v152 → v155}/indexed_db.rb +2 -2
  94. data/lib/selenium/devtools/{v151 → v155}/input.rb +2 -2
  95. data/lib/selenium/devtools/{v152 → v155}/inspector.rb +2 -2
  96. data/lib/selenium/devtools/{v151 → v155}/io.rb +2 -2
  97. data/lib/selenium/devtools/{v151 → v155}/layer_tree.rb +2 -2
  98. data/lib/selenium/devtools/{v152 → v155}/log.rb +2 -2
  99. data/lib/selenium/devtools/{v152 → v155}/media.rb +2 -2
  100. data/lib/selenium/devtools/{v151 → v155}/memory.rb +2 -2
  101. data/lib/selenium/devtools/{v151 → v155}/network.rb +2 -39
  102. data/lib/selenium/devtools/{v152 → v155}/overlay.rb +2 -2
  103. data/lib/selenium/devtools/{v151 → v155}/page.rb +18 -4
  104. data/lib/selenium/devtools/{v152 → v155}/performance.rb +2 -2
  105. data/lib/selenium/devtools/{v152 → v155}/performance_timeline.rb +2 -2
  106. data/lib/selenium/devtools/{v152 → v155}/preload.rb +2 -2
  107. data/lib/selenium/devtools/{v152 → v155}/profiler.rb +2 -2
  108. data/lib/selenium/devtools/{v152 → v155}/pwa.rb +2 -2
  109. data/lib/selenium/devtools/{v152 → v155}/runtime.rb +2 -2
  110. data/lib/selenium/devtools/{v151 → v155}/schema.rb +2 -2
  111. data/lib/selenium/devtools/{v152 → v155}/security.rb +2 -2
  112. data/lib/selenium/devtools/{v152 → v155}/service_worker.rb +2 -2
  113. data/lib/selenium/devtools/{v152 → v155}/smart_card_emulation.rb +2 -2
  114. data/lib/selenium/devtools/{v151 → v155}/storage.rb +2 -69
  115. data/lib/selenium/devtools/{v152 → v155}/system_info.rb +2 -2
  116. data/lib/selenium/devtools/{v151 → v155}/target.rb +2 -2
  117. data/lib/selenium/devtools/{v151 → v155}/tethering.rb +2 -2
  118. data/lib/selenium/devtools/{v152 → v155}/tracing.rb +2 -2
  119. data/lib/selenium/devtools/{v152 → v155}/web_audio.rb +2 -2
  120. data/lib/selenium/devtools/{v151 → v155}/web_authn.rb +7 -4
  121. data/lib/selenium/devtools/{v152 → v155}/web_mcp.rb +2 -2
  122. data/lib/selenium/devtools/{v151.rb → v155.rb} +4 -3
  123. data/lib/selenium/devtools/version.rb +1 -1
  124. data/lib/selenium/devtools.rb +0 -0
  125. data/selenium-devtools.gemspec +0 -0
  126. metadata +121 -123
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class Animation
26
26
  EVENTS = {
27
27
  animation_canceled: 'animationCanceled',
@@ -91,6 +91,6 @@ module Selenium
91
91
  end
92
92
 
93
93
  end # Animation
94
- end # V151
94
+ end # V155
95
95
  end # DevTools
96
96
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class Audits
26
26
  EVENTS = {
27
27
  issue_added: 'issueAdded',
@@ -57,6 +57,6 @@ module Selenium
57
57
  end
58
58
 
59
59
  end # Audits
60
- end # V152
60
+ end # V155
61
61
  end # DevTools
62
62
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class Autofill
26
26
  EVENTS = {
27
27
  address_form_filled: 'addressFormFilled',
@@ -58,6 +58,6 @@ module Selenium
58
58
  end
59
59
 
60
60
  end # Autofill
61
- end # V152
61
+ end # V155
62
62
  end # DevTools
63
63
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class BackgroundService
26
26
  EVENTS = {
27
27
  recording_state_changed: 'recordingStateChanged',
@@ -59,6 +59,6 @@ module Selenium
59
59
  end
60
60
 
61
61
  end # BackgroundService
62
- end # V151
62
+ end # V155
63
63
  end # DevTools
64
64
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class BluetoothEmulation
26
26
  EVENTS = {
27
27
  gatt_operation_received: 'gattOperationReceived',
@@ -129,6 +129,6 @@ module Selenium
129
129
  end
130
130
 
131
131
  end # BluetoothEmulation
132
- end # V151
132
+ end # V155
133
133
  end # DevTools
134
134
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class Browser
26
26
  EVENTS = {
27
27
  download_will_begin: 'downloadWillBegin',
@@ -92,6 +92,11 @@ module Selenium
92
92
  @devtools.send_cmd('Browser.getBrowserCommandLine')
93
93
  end
94
94
 
95
+ def add_mock_camera(device_id:)
96
+ @devtools.send_cmd('Browser.addMockCamera',
97
+ deviceId: device_id)
98
+ end
99
+
95
100
  def get_histograms(query: nil, delta: nil)
96
101
  @devtools.send_cmd('Browser.getHistograms',
97
102
  query: query,
@@ -143,7 +148,16 @@ module Selenium
143
148
  url: url)
144
149
  end
145
150
 
151
+ def get_global_privacy_control
152
+ @devtools.send_cmd('Browser.getGlobalPrivacyControl')
153
+ end
154
+
155
+ def set_global_privacy_control(gpc:)
156
+ @devtools.send_cmd('Browser.setGlobalPrivacyControl',
157
+ gpc: gpc)
158
+ end
159
+
146
160
  end # Browser
147
- end # V152
161
+ end # V155
148
162
  end # DevTools
149
163
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class CacheStorage
26
26
 
27
27
  def initialize(devtools)
@@ -67,6 +67,6 @@ module Selenium
67
67
  end
68
68
 
69
69
  end # CacheStorage
70
- end # V151
70
+ end # V155
71
71
  end # DevTools
72
72
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class Cast
26
26
  EVENTS = {
27
27
  sinks_updated: 'sinksUpdated',
@@ -67,6 +67,6 @@ module Selenium
67
67
  end
68
68
 
69
69
  end # Cast
70
- end # V152
70
+ end # V155
71
71
  end # DevTools
72
72
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class Console
26
26
  EVENTS = {
27
27
  message_added: 'messageAdded',
@@ -49,6 +49,6 @@ module Selenium
49
49
  end
50
50
 
51
51
  end # Console
52
- end # V151
52
+ end # V155
53
53
  end # DevTools
54
54
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class CrashReportContext
26
26
 
27
27
  def initialize(devtools)
@@ -38,6 +38,6 @@ module Selenium
38
38
  end
39
39
 
40
40
  end # CrashReportContext
41
- end # V151
41
+ end # V155
42
42
  end # DevTools
43
43
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class CSS
26
26
  EVENTS = {
27
27
  fonts_updated: 'fontsUpdated',
@@ -263,6 +263,6 @@ module Selenium
263
263
  end
264
264
 
265
265
  end # CSS
266
- end # V151
266
+ end # V155
267
267
  end # DevTools
268
268
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class Debugger
26
26
  EVENTS = {
27
27
  breakpoint_resolved: 'breakpointResolved',
@@ -55,7 +55,7 @@ module Selenium
55
55
  maxScriptsCacheSize: max_scripts_cache_size)
56
56
  end
57
57
 
58
- def evaluate_on_call_frame(call_frame_id:, expression:, object_group: nil, include_command_line_api: nil, silent: nil, return_by_value: nil, generate_preview: nil, throw_on_side_effect: nil, timeout: nil)
58
+ def evaluate_on_call_frame(call_frame_id:, expression:, object_group: nil, include_command_line_api: nil, silent: nil, return_by_value: nil, generate_preview: nil, throw_on_side_effect: nil, timeout: nil, scope_number: nil)
59
59
  @devtools.send_cmd('Debugger.evaluateOnCallFrame',
60
60
  callFrameId: call_frame_id,
61
61
  expression: expression,
@@ -65,7 +65,8 @@ module Selenium
65
65
  returnByValue: return_by_value,
66
66
  generatePreview: generate_preview,
67
67
  throwOnSideEffect: throw_on_side_effect,
68
- timeout: timeout)
68
+ timeout: timeout,
69
+ scopeNumber: scope_number)
69
70
  end
70
71
 
71
72
  def get_possible_breakpoints(start:, _end: nil, restrict_to_function: nil)
@@ -234,6 +235,6 @@ module Selenium
234
235
  end
235
236
 
236
237
  end # Debugger
237
- end # V151
238
+ end # V155
238
239
  end # DevTools
239
240
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class DeviceAccess
26
26
  EVENTS = {
27
27
  device_request_prompted: 'deviceRequestPrompted',
@@ -56,6 +56,6 @@ module Selenium
56
56
  end
57
57
 
58
58
  end # DeviceAccess
59
- end # V151
59
+ end # V155
60
60
  end # DevTools
61
61
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class DeviceOrientation
26
26
 
27
27
  def initialize(devtools)
@@ -45,6 +45,6 @@ module Selenium
45
45
  end
46
46
 
47
47
  end # DeviceOrientation
48
- end # V152
48
+ end # V155
49
49
  end # DevTools
50
50
  end # Selenium
@@ -0,0 +1,47 @@
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
+ # DO NOT EDIT! This file is generated by rb/lib/selenium/devtools/support/cdp_client_generator.rb.
21
+ # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
+ module Selenium
23
+ module DevTools
24
+ module V155
25
+ class DigitalCredentials
26
+
27
+ def initialize(devtools)
28
+ @devtools = devtools
29
+ end
30
+
31
+ def on(event, &block)
32
+ event = EVENTS[event] if event.is_a?(Symbol)
33
+ @devtools.callbacks["DigitalCredentials.#{event}"] << block
34
+ end
35
+
36
+ def set_virtual_wallet_behavior(action:, protocol: nil, response: nil, frame_id: nil)
37
+ @devtools.send_cmd('DigitalCredentials.setVirtualWalletBehavior',
38
+ action: action,
39
+ protocol: protocol,
40
+ response: response,
41
+ frameId: frame_id)
42
+ end
43
+
44
+ end # DigitalCredentials
45
+ end # V155
46
+ end # DevTools
47
+ end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class DOM
26
26
  EVENTS = {
27
27
  attribute_modified: 'attributeModified',
@@ -367,7 +367,32 @@ module Selenium
367
367
  invokerNodeId: invoker_node_id)
368
368
  end
369
369
 
370
+ def get_implicit_anchor_candidates(node_id:)
371
+ @devtools.send_cmd('DOM.getImplicitAnchorCandidates',
372
+ nodeId: node_id)
373
+ end
374
+
375
+ def force_show_interest(node_id:, enable:)
376
+ @devtools.send_cmd('DOM.forceShowInterest',
377
+ nodeId: node_id,
378
+ enable: enable)
379
+ end
380
+
381
+ def set_text_marker(node_id: nil, backend_node_id: nil, object_id: nil, type:, start:, _end:)
382
+ @devtools.send_cmd('DOM.setTextMarker',
383
+ nodeId: node_id,
384
+ backendNodeId: backend_node_id,
385
+ objectId: object_id,
386
+ type: type,
387
+ start: start,
388
+ end: _end)
389
+ end
390
+
391
+ def clear_text_markers
392
+ @devtools.send_cmd('DOM.clearTextMarkers')
393
+ end
394
+
370
395
  end # DOM
371
- end # V152
396
+ end # V155
372
397
  end # DevTools
373
398
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class DOMDebugger
26
26
 
27
27
  def initialize(devtools)
@@ -90,6 +90,6 @@ module Selenium
90
90
  end
91
91
 
92
92
  end # DOMDebugger
93
- end # V151
93
+ end # V155
94
94
  end # DevTools
95
95
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class DOMSnapshot
26
26
 
27
27
  def initialize(devtools)
@@ -59,6 +59,6 @@ module Selenium
59
59
  end
60
60
 
61
61
  end # DOMSnapshot
62
- end # V151
62
+ end # V155
63
63
  end # DevTools
64
64
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class DOMStorage
26
26
  EVENTS = {
27
27
  dom_storage_item_added: 'domStorageItemAdded',
@@ -71,6 +71,6 @@ module Selenium
71
71
  end
72
72
 
73
73
  end # DOMStorage
74
- end # V152
74
+ end # V155
75
75
  end # DevTools
76
76
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class Emulation
26
26
  EVENTS = {
27
27
  virtual_time_budget_expired: 'virtualTimeBudgetExpired',
@@ -78,7 +78,12 @@ module Selenium
78
78
  insets: insets)
79
79
  end
80
80
 
81
- 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, display_feature: nil, device_posture: nil, scrollbar_type: nil, screen_orientation_lock_emulation: nil)
81
+ def set_virtual_keyboard_geometry_override(keyboard_rect: nil)
82
+ @devtools.send_cmd('Emulation.setVirtualKeyboardGeometryOverride',
83
+ keyboardRect: keyboard_rect)
84
+ end
85
+
86
+ 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, display_feature: nil, device_posture: nil, scrollbar_type: nil, screen_orientation_lock_emulation: nil, viewport_meta: nil)
82
87
  @devtools.send_cmd('Emulation.setDeviceMetricsOverride',
83
88
  width: width,
84
89
  height: height,
@@ -95,7 +100,8 @@ module Selenium
95
100
  displayFeature: display_feature,
96
101
  devicePosture: device_posture,
97
102
  scrollbarType: scrollbar_type,
98
- screenOrientationLockEmulation: screen_orientation_lock_emulation)
103
+ screenOrientationLockEmulation: screen_orientation_lock_emulation,
104
+ viewportMeta: viewport_meta)
99
105
  end
100
106
 
101
107
  def set_device_posture_override(posture:)
@@ -260,6 +266,11 @@ module Selenium
260
266
  hardwareConcurrency: hardware_concurrency)
261
267
  end
262
268
 
269
+ def set_cpu_performance_override(performance_tier: nil)
270
+ @devtools.send_cmd('Emulation.setCPUPerformanceOverride',
271
+ performanceTier: performance_tier)
272
+ end
273
+
263
274
  def set_user_agent_override(user_agent:, accept_language: nil, platform: nil, user_agent_metadata: nil)
264
275
  @devtools.send_cmd('Emulation.setUserAgentOverride',
265
276
  userAgent: user_agent,
@@ -322,6 +333,6 @@ module Selenium
322
333
  end
323
334
 
324
335
  end # Emulation
325
- end # V151
336
+ end # V155
326
337
  end # DevTools
327
338
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class EventBreakpoints
26
26
 
27
27
  def initialize(devtools)
@@ -48,6 +48,6 @@ module Selenium
48
48
  end
49
49
 
50
50
  end # EventBreakpoints
51
- end # V152
51
+ end # V155
52
52
  end # DevTools
53
53
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class Extensions
26
26
 
27
27
  def initialize(devtools)
@@ -82,6 +82,6 @@ module Selenium
82
82
  end
83
83
 
84
84
  end # Extensions
85
- end # V151
85
+ end # V155
86
86
  end # DevTools
87
87
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class FedCm
26
26
  EVENTS = {
27
27
  dialog_shown: 'dialogShown',
@@ -76,6 +76,6 @@ module Selenium
76
76
  end
77
77
 
78
78
  end # FedCm
79
- end # V151
79
+ end # V155
80
80
  end # DevTools
81
81
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class Fetch
26
26
  EVENTS = {
27
27
  request_paused: 'requestPaused',
@@ -99,6 +99,6 @@ module Selenium
99
99
  end
100
100
 
101
101
  end # Fetch
102
- end # V152
102
+ end # V155
103
103
  end # DevTools
104
104
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class FileSystem
26
26
 
27
27
  def initialize(devtools)
@@ -39,6 +39,6 @@ module Selenium
39
39
  end
40
40
 
41
41
  end # FileSystem
42
- end # V151
42
+ end # V155
43
43
  end # DevTools
44
44
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class HeadlessExperimental
26
26
 
27
27
  def initialize(devtools)
@@ -50,6 +50,6 @@ module Selenium
50
50
  end
51
51
 
52
52
  end # HeadlessExperimental
53
- end # V152
53
+ end # V155
54
54
  end # DevTools
55
55
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class HeapProfiler
26
26
  EVENTS = {
27
27
  add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
@@ -106,6 +106,6 @@ module Selenium
106
106
  end
107
107
 
108
108
  end # HeapProfiler
109
- end # V151
109
+ end # V155
110
110
  end # DevTools
111
111
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class IndexedDB
26
26
 
27
27
  def initialize(devtools)
@@ -106,6 +106,6 @@ module Selenium
106
106
  end
107
107
 
108
108
  end # IndexedDB
109
- end # V152
109
+ end # V155
110
110
  end # DevTools
111
111
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class Input
26
26
  EVENTS = {
27
27
  drag_intercepted: 'dragIntercepted',
@@ -168,6 +168,6 @@ module Selenium
168
168
  end
169
169
 
170
170
  end # Input
171
- end # V151
171
+ end # V155
172
172
  end # DevTools
173
173
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V152
24
+ module V155
25
25
  class Inspector
26
26
  EVENTS = {
27
27
  detached: 'detached',
@@ -48,6 +48,6 @@ module Selenium
48
48
  end
49
49
 
50
50
  end # Inspector
51
- end # V152
51
+ end # V155
52
52
  end # DevTools
53
53
  end # Selenium
@@ -21,7 +21,7 @@
21
21
  # Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
22
22
  module Selenium
23
23
  module DevTools
24
- module V151
24
+ module V155
25
25
  class IO
26
26
 
27
27
  def initialize(devtools)
@@ -51,6 +51,6 @@ module Selenium
51
51
  end
52
52
 
53
53
  end # IO
54
- end # V151
54
+ end # V155
55
55
  end # DevTools
56
56
  end # Selenium