selenium-devtools 0.91.1 → 0.92.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/v92.rb +1 -0
  3. data/lib/selenium/devtools/{v89 → v92}/accessibility.rb +2 -2
  4. data/lib/selenium/devtools/{v88 → v92}/animation.rb +2 -2
  5. data/lib/selenium/devtools/{v89 → v92}/application_cache.rb +2 -2
  6. data/lib/selenium/devtools/{v88 → v92}/audits.rb +7 -2
  7. data/lib/selenium/devtools/{v88 → v92}/background_service.rb +2 -2
  8. data/lib/selenium/devtools/{v88 → v92}/browser.rb +15 -4
  9. data/lib/selenium/devtools/{v88 → v92}/cache_storage.rb +2 -2
  10. data/lib/selenium/devtools/{v89 → v92}/cast.rb +2 -2
  11. data/lib/selenium/devtools/{v89 → v92}/console.rb +2 -2
  12. data/lib/selenium/devtools/{v88 → v92}/css.rb +2 -2
  13. data/lib/selenium/devtools/{v89 → v92}/database.rb +2 -2
  14. data/lib/selenium/devtools/{v89 → v92}/debugger.rb +2 -2
  15. data/lib/selenium/devtools/{v89 → v92}/device_orientation.rb +2 -2
  16. data/lib/selenium/devtools/{v89 → v92}/dom.rb +2 -2
  17. data/lib/selenium/devtools/{v89 → v92}/dom_debugger.rb +2 -2
  18. data/lib/selenium/devtools/{v88 → v92}/dom_snapshot.rb +6 -4
  19. data/lib/selenium/devtools/{v88 → v92}/dom_storage.rb +2 -2
  20. data/lib/selenium/devtools/{v89 → v92}/emulation.rb +2 -2
  21. data/lib/selenium/devtools/{v89 → v92}/fetch.rb +2 -2
  22. data/lib/selenium/devtools/{v89 → v92}/headless_experimental.rb +2 -2
  23. data/lib/selenium/devtools/{v89 → v92}/heap_profiler.rb +8 -6
  24. data/lib/selenium/devtools/{v88 → v92}/indexed_db.rb +2 -2
  25. data/lib/selenium/devtools/{v88 → v92}/input.rb +19 -2
  26. data/lib/selenium/devtools/{v88 → v92}/inspector.rb +2 -2
  27. data/lib/selenium/devtools/{v88 → v92}/io.rb +2 -2
  28. data/lib/selenium/devtools/{v88 → v92}/layer_tree.rb +2 -2
  29. data/lib/selenium/devtools/{v88 → v92}/log.rb +2 -2
  30. data/lib/selenium/devtools/{v89 → v92}/media.rb +2 -2
  31. data/lib/selenium/devtools/{v88 → v92}/memory.rb +2 -2
  32. data/lib/selenium/devtools/{v89 → v92}/network.rb +17 -4
  33. data/lib/selenium/devtools/{v89 → v92}/overlay.rb +12 -2
  34. data/lib/selenium/devtools/{v89 → v92}/page.rb +16 -4
  35. data/lib/selenium/devtools/{v89 → v92}/performance.rb +2 -2
  36. data/lib/selenium/devtools/{v89 → v92}/performance_timeline.rb +2 -2
  37. data/lib/selenium/devtools/{v89 → v92}/profiler.rb +2 -2
  38. data/lib/selenium/devtools/{v89 → v92}/runtime.rb +2 -2
  39. data/lib/selenium/devtools/{v88 → v92}/schema.rb +2 -2
  40. data/lib/selenium/devtools/{v88 → v92}/security.rb +2 -2
  41. data/lib/selenium/devtools/{v89 → v92}/service_worker.rb +2 -2
  42. data/lib/selenium/devtools/{v88 → v92}/storage.rb +11 -2
  43. data/lib/selenium/devtools/{v89 → v92}/system_info.rb +2 -2
  44. data/lib/selenium/devtools/{v88 → v92}/target.rb +2 -2
  45. data/lib/selenium/devtools/{v89 → v92}/tethering.rb +2 -2
  46. data/lib/selenium/devtools/{v89 → v92}/tracing.rb +5 -4
  47. data/lib/selenium/devtools/{v88 → v92}/web_audio.rb +2 -2
  48. data/lib/selenium/devtools/{v88 → v92}/web_authn.rb +2 -2
  49. data/lib/selenium/devtools/version.rb +1 -1
  50. metadata +49 -95
  51. data/lib/selenium/devtools/v88.rb +0 -1
  52. data/lib/selenium/devtools/v88/accessibility.rb +0 -67
  53. data/lib/selenium/devtools/v88/application_cache.rb +0 -60
  54. data/lib/selenium/devtools/v88/cast.rb +0 -66
  55. data/lib/selenium/devtools/v88/console.rb +0 -53
  56. data/lib/selenium/devtools/v88/database.rb +0 -60
  57. data/lib/selenium/devtools/v88/debugger.rb +0 -227
  58. data/lib/selenium/devtools/v88/device_orientation.rb +0 -49
  59. data/lib/selenium/devtools/v88/dom.rb +0 -323
  60. data/lib/selenium/devtools/v88/dom_debugger.rb +0 -89
  61. data/lib/selenium/devtools/v88/emulation.rb +0 -192
  62. data/lib/selenium/devtools/v88/fetch.rb +0 -93
  63. data/lib/selenium/devtools/v88/headless_experimental.rb +0 -57
  64. data/lib/selenium/devtools/v88/heap_profiler.rb +0 -103
  65. data/lib/selenium/devtools/v88/media.rb +0 -53
  66. data/lib/selenium/devtools/v88/network.rb +0 -241
  67. data/lib/selenium/devtools/v88/overlay.rb +0 -177
  68. data/lib/selenium/devtools/v88/page.rb +0 -370
  69. data/lib/selenium/devtools/v88/performance.rb +0 -59
  70. data/lib/selenium/devtools/v88/profiler.rb +0 -119
  71. data/lib/selenium/devtools/v88/runtime.rb +0 -191
  72. data/lib/selenium/devtools/v88/service_worker.rb +0 -112
  73. data/lib/selenium/devtools/v88/system_info.rb +0 -46
  74. data/lib/selenium/devtools/v88/tethering.rb +0 -51
  75. data/lib/selenium/devtools/v88/tracing.rb +0 -73
  76. data/lib/selenium/devtools/v89.rb +0 -1
  77. data/lib/selenium/devtools/v89/animation.rb +0 -94
  78. data/lib/selenium/devtools/v89/audits.rb +0 -57
  79. data/lib/selenium/devtools/v89/background_service.rb +0 -63
  80. data/lib/selenium/devtools/v89/browser.rb +0 -124
  81. data/lib/selenium/devtools/v89/cache_storage.rb +0 -69
  82. data/lib/selenium/devtools/v89/css.rb +0 -175
  83. data/lib/selenium/devtools/v89/dom_snapshot.rb +0 -61
  84. data/lib/selenium/devtools/v89/dom_storage.rb +0 -75
  85. data/lib/selenium/devtools/v89/indexed_db.rb +0 -96
  86. data/lib/selenium/devtools/v89/input.rb +0 -142
  87. data/lib/selenium/devtools/v89/inspector.rb +0 -51
  88. data/lib/selenium/devtools/v89/io.rb +0 -55
  89. data/lib/selenium/devtools/v89/layer_tree.rb +0 -91
  90. data/lib/selenium/devtools/v89/log.rb +0 -62
  91. data/lib/selenium/devtools/v89/memory.rb +0 -82
  92. data/lib/selenium/devtools/v89/schema.rb +0 -42
  93. data/lib/selenium/devtools/v89/security.rb +0 -67
  94. data/lib/selenium/devtools/v89/storage.rb +0 -97
  95. data/lib/selenium/devtools/v89/target.rb +0 -139
  96. data/lib/selenium/devtools/v89/web_audio.rb +0 -66
  97. data/lib/selenium/devtools/v89/web_authn.rb +0 -96
@@ -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 V88
23
+ module V92
24
24
  class IndexedDB
25
25
 
26
26
  def initialize(devtools)
@@ -91,6 +91,6 @@ module Selenium
91
91
  end
92
92
 
93
93
  end # IndexedDB
94
- end # V88
94
+ end # V92
95
95
  end # DevTools
96
96
  end # Selenium
@@ -20,8 +20,11 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V88
23
+ module V92
24
24
  class Input
25
+ EVENTS = {
26
+ drag_intercepted: 'dragIntercepted',
27
+ }.freeze
25
28
 
26
29
  def initialize(devtools)
27
30
  @devtools = devtools
@@ -32,6 +35,15 @@ module Selenium
32
35
  @devtools.callbacks["Input.#{event}"] << block
33
36
  end
34
37
 
38
+ def dispatch_drag_event(type:, x:, y:, data:, modifiers: nil)
39
+ @devtools.send_cmd('Input.dispatchDragEvent',
40
+ type: type,
41
+ x: x,
42
+ y: y,
43
+ data: data,
44
+ modifiers: modifiers)
45
+ end
46
+
35
47
  def dispatch_key_event(type:, modifiers: nil, timestamp: nil, text: nil, unmodified_text: nil, key_identifier: nil, code: nil, key: nil, windows_virtual_key_code: nil, native_virtual_key_code: nil, auto_repeat: nil, is_keypad: nil, is_system_key: nil, location: nil, commands: nil)
36
48
  @devtools.send_cmd('Input.dispatchKeyEvent',
37
49
  type: type,
@@ -102,6 +114,11 @@ module Selenium
102
114
  ignore: ignore)
103
115
  end
104
116
 
117
+ def set_intercept_drags(enabled:)
118
+ @devtools.send_cmd('Input.setInterceptDrags',
119
+ enabled: enabled)
120
+ end
121
+
105
122
  def synthesize_pinch_gesture(x:, y:, scale_factor:, relative_speed: nil, gesture_source_type: nil)
106
123
  @devtools.send_cmd('Input.synthesizePinchGesture',
107
124
  x: x,
@@ -137,6 +154,6 @@ module Selenium
137
154
  end
138
155
 
139
156
  end # Input
140
- end # V88
157
+ end # V92
141
158
  end # DevTools
142
159
  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 V88
23
+ module V92
24
24
  class Inspector
25
25
  EVENTS = {
26
26
  detached: 'detached',
@@ -46,6 +46,6 @@ module Selenium
46
46
  end
47
47
 
48
48
  end # Inspector
49
- end # V88
49
+ end # V92
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 V88
23
+ module V92
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 # V88
53
+ end # V92
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 V88
23
+ module V92
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 # V88
89
+ end # V92
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 V88
23
+ module V92
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 # V88
60
+ end # V92
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 V89
23
+ module V92
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 # V89
51
+ end # V92
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 V88
23
+ module V92
24
24
  class Memory
25
25
 
26
26
  def initialize(devtools)
@@ -77,6 +77,6 @@ module Selenium
77
77
  end
78
78
 
79
79
  end # Memory
80
- end # V88
80
+ end # V92
81
81
  end # DevTools
82
82
  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 V89
23
+ module V92
24
24
  class Network
25
25
  EVENTS = {
26
26
  data_received: 'dataReceived',
@@ -41,6 +41,7 @@ module Selenium
41
41
  web_socket_handshake_response_received: 'webSocketHandshakeResponseReceived',
42
42
  web_socket_will_send_handshake_request: 'webSocketWillSendHandshakeRequest',
43
43
  web_transport_created: 'webTransportCreated',
44
+ web_transport_connection_established: 'webTransportConnectionEstablished',
44
45
  web_transport_closed: 'webTransportClosed',
45
46
  request_will_be_sent_extra_info: 'requestWillBeSentExtraInfo',
46
47
  response_received_extra_info: 'responseReceivedExtraInfo',
@@ -56,6 +57,15 @@ module Selenium
56
57
  @devtools.callbacks["Network.#{event}"] << block
57
58
  end
58
59
 
60
+ def set_accepted_encodings(encodings:)
61
+ @devtools.send_cmd('Network.setAcceptedEncodings',
62
+ encodings: encodings)
63
+ end
64
+
65
+ def clear_accepted_encodings_override
66
+ @devtools.send_cmd('Network.clearAcceptedEncodingsOverride')
67
+ end
68
+
59
69
  def can_clear_browser_cache
60
70
  @devtools.send_cmd('Network.canClearBrowserCache')
61
71
  end
@@ -178,7 +188,7 @@ module Selenium
178
188
  cacheDisabled: cache_disabled)
179
189
  end
180
190
 
181
- def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil)
191
+ def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil, same_party: nil, source_scheme: nil, source_port: nil)
182
192
  @devtools.send_cmd('Network.setCookie',
183
193
  name: name,
184
194
  value: value,
@@ -189,7 +199,10 @@ module Selenium
189
199
  httpOnly: http_only,
190
200
  sameSite: same_site,
191
201
  expires: expires,
192
- priority: priority)
202
+ priority: priority,
203
+ sameParty: same_party,
204
+ sourceScheme: source_scheme,
205
+ sourcePort: source_port)
193
206
  end
194
207
 
195
208
  def set_cookies(cookies:)
@@ -239,6 +252,6 @@ module Selenium
239
252
  end
240
253
 
241
254
  end # Network
242
- end # V89
255
+ end # V92
243
256
  end # DevTools
244
257
  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 V89
23
+ module V92
24
24
  class Overlay
25
25
  EVENTS = {
26
26
  inspect_node_requested: 'inspectNodeRequested',
@@ -146,6 +146,11 @@ module Selenium
146
146
  flexNodeHighlightConfigs: flex_node_highlight_configs)
147
147
  end
148
148
 
149
+ def set_show_scroll_snap_overlays(scroll_snap_highlight_configs:)
150
+ @devtools.send_cmd('Overlay.setShowScrollSnapOverlays',
151
+ scrollSnapHighlightConfigs: scroll_snap_highlight_configs)
152
+ end
153
+
149
154
  def set_show_paint_rects(result:)
150
155
  @devtools.send_cmd('Overlay.setShowPaintRects',
151
156
  result: result)
@@ -166,6 +171,11 @@ module Selenium
166
171
  show: show)
167
172
  end
168
173
 
174
+ def set_show_web_vitals(show:)
175
+ @devtools.send_cmd('Overlay.setShowWebVitals',
176
+ show: show)
177
+ end
178
+
169
179
  def set_show_viewport_size_on_resize(show:)
170
180
  @devtools.send_cmd('Overlay.setShowViewportSizeOnResize',
171
181
  show: show)
@@ -177,6 +187,6 @@ module Selenium
177
187
  end
178
188
 
179
189
  end # Overlay
180
- end # V89
190
+ end # V92
181
191
  end # DevTools
182
192
  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 V89
23
+ module V92
24
24
  class Page
25
25
  EVENTS = {
26
26
  dom_content_event_fired: 'domContentEventFired',
@@ -42,6 +42,7 @@ module Selenium
42
42
  javascript_dialog_closed: 'javascriptDialogClosed',
43
43
  javascript_dialog_opening: 'javascriptDialogOpening',
44
44
  lifecycle_event: 'lifecycleEvent',
45
+ back_forward_cache_not_used: 'backForwardCacheNotUsed',
45
46
  load_event_fired: 'loadEventFired',
46
47
  navigated_within_document: 'navigatedWithinDocument',
47
48
  screencast_frame: 'screencastFrame',
@@ -64,10 +65,11 @@ module Selenium
64
65
  scriptSource: script_source)
65
66
  end
66
67
 
67
- def add_script_to_evaluate_on_new_document(source:, world_name: nil)
68
+ def add_script_to_evaluate_on_new_document(source:, world_name: nil, include_command_line_api: nil)
68
69
  @devtools.send_cmd('Page.addScriptToEvaluateOnNewDocument',
69
70
  source: source,
70
- worldName: world_name)
71
+ worldName: world_name,
72
+ includeCommandLineAPI: include_command_line_api)
71
73
  end
72
74
 
73
75
  def bring_to_front
@@ -243,6 +245,11 @@ module Selenium
243
245
  enabled: enabled)
244
246
  end
245
247
 
248
+ def get_permissions_policy_state(frame_id:)
249
+ @devtools.send_cmd('Page.getPermissionsPolicyState',
250
+ frameId: frame_id)
251
+ end
252
+
246
253
  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)
247
254
  @devtools.send_cmd('Page.setDeviceMetricsOverride',
248
255
  width: width,
@@ -341,6 +348,11 @@ module Selenium
341
348
  enabled: enabled)
342
349
  end
343
350
 
351
+ def produce_compilation_cache(scripts:)
352
+ @devtools.send_cmd('Page.produceCompilationCache',
353
+ scripts: scripts)
354
+ end
355
+
344
356
  def add_compilation_cache(url:, data:)
345
357
  @devtools.send_cmd('Page.addCompilationCache',
346
358
  url: url,
@@ -367,6 +379,6 @@ module Selenium
367
379
  end
368
380
 
369
381
  end # Page
370
- end # V89
382
+ end # V92
371
383
  end # DevTools
372
384
  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 V89
23
+ module V92
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 # V89
57
+ end # V92
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 V89
23
+ module V92
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 # V89
44
+ end # V92
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 V89
23
+ module V92
24
24
  class Profiler
25
25
  EVENTS = {
26
26
  console_profile_finished: 'consoleProfileFinished',
@@ -114,6 +114,6 @@ module Selenium
114
114
  end
115
115
 
116
116
  end # Profiler
117
- end # V89
117
+ end # V92
118
118
  end # DevTools
119
119
  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 V89
23
+ module V92
24
24
  class Runtime
25
25
  EVENTS = {
26
26
  binding_called: 'bindingCalled',
@@ -187,6 +187,6 @@ module Selenium
187
187
  end
188
188
 
189
189
  end # Runtime
190
- end # V89
190
+ end # V92
191
191
  end # DevTools
192
192
  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 V88
23
+ module V92
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 # V88
40
+ end # V92
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 V88
23
+ module V92
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 # V88
65
+ end # V92
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 V89
23
+ module V92
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 # V89
110
+ end # V92
111
111
  end # DevTools
112
112
  end # Selenium