selenium-devtools 0.103.1 → 0.104.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/{v101 → v104}/accessibility.rb +2 -2
  3. data/lib/selenium/devtools/{v101 → v104}/animation.rb +2 -2
  4. data/lib/selenium/devtools/{v101 → v104}/audits.rb +2 -2
  5. data/lib/selenium/devtools/{v101 → v104}/background_service.rb +2 -2
  6. data/lib/selenium/devtools/{v101 → v104}/browser.rb +2 -2
  7. data/lib/selenium/devtools/{v101 → v104}/cache_storage.rb +2 -2
  8. data/lib/selenium/devtools/{v101 → v104}/cast.rb +2 -2
  9. data/lib/selenium/devtools/{v101 → v104}/console.rb +2 -2
  10. data/lib/selenium/devtools/{v101 → v104}/css.rb +2 -2
  11. data/lib/selenium/devtools/{v101 → v104}/database.rb +2 -2
  12. data/lib/selenium/devtools/{v101 → v104}/debugger.rb +5 -4
  13. data/lib/selenium/devtools/{v101 → v104}/device_orientation.rb +2 -2
  14. data/lib/selenium/devtools/{v101 → v104}/dom.rb +2 -2
  15. data/lib/selenium/devtools/{v101 → v104}/dom_debugger.rb +2 -2
  16. data/lib/selenium/devtools/{v101 → v104}/dom_snapshot.rb +2 -2
  17. data/lib/selenium/devtools/{v101 → v104}/dom_storage.rb +2 -2
  18. data/lib/selenium/devtools/{v101 → v104}/emulation.rb +7 -2
  19. data/lib/selenium/devtools/{v101 → v104}/event_breakpoints.rb +2 -2
  20. data/lib/selenium/devtools/{v101 → v104}/fetch.rb +2 -2
  21. data/lib/selenium/devtools/{v101 → v104}/headless_experimental.rb +2 -2
  22. data/lib/selenium/devtools/{v101 → v104}/heap_profiler.rb +8 -6
  23. data/lib/selenium/devtools/{v101 → v104}/indexed_db.rb +2 -2
  24. data/lib/selenium/devtools/{v101 → v104}/input.rb +2 -2
  25. data/lib/selenium/devtools/{v101 → v104}/inspector.rb +2 -2
  26. data/lib/selenium/devtools/{v101 → v104}/io.rb +2 -2
  27. data/lib/selenium/devtools/{v101 → v104}/layer_tree.rb +2 -2
  28. data/lib/selenium/devtools/{v101 → v104}/log.rb +2 -2
  29. data/lib/selenium/devtools/{v101 → v104}/media.rb +2 -2
  30. data/lib/selenium/devtools/{v101 → v104}/memory.rb +2 -2
  31. data/lib/selenium/devtools/{v101 → v104}/network.rb +2 -2
  32. data/lib/selenium/devtools/{v101 → v104}/overlay.rb +2 -2
  33. data/lib/selenium/devtools/{v101 → v104}/page.rb +4 -4
  34. data/lib/selenium/devtools/{v101 → v104}/performance.rb +2 -2
  35. data/lib/selenium/devtools/{v101 → v104}/performance_timeline.rb +2 -2
  36. data/lib/selenium/devtools/{v101 → v104}/profiler.rb +2 -2
  37. data/lib/selenium/devtools/{v101 → v104}/runtime.rb +8 -6
  38. data/lib/selenium/devtools/{v101 → v104}/schema.rb +2 -2
  39. data/lib/selenium/devtools/{v101 → v104}/security.rb +2 -2
  40. data/lib/selenium/devtools/{v101 → v104}/service_worker.rb +2 -2
  41. data/lib/selenium/devtools/{v101 → v104}/storage.rb +7 -2
  42. data/lib/selenium/devtools/{v101 → v104}/system_info.rb +2 -2
  43. data/lib/selenium/devtools/{v101 → v104}/target.rb +2 -2
  44. data/lib/selenium/devtools/{v101 → v104}/tethering.rb +2 -2
  45. data/lib/selenium/devtools/{v101 → v104}/tracing.rb +2 -2
  46. data/lib/selenium/devtools/{v101 → v104}/web_audio.rb +2 -2
  47. data/lib/selenium/devtools/{v101 → v104}/web_authn.rb +5 -4
  48. data/lib/selenium/devtools/v104.rb +1 -0
  49. data/lib/selenium/devtools/version.rb +1 -1
  50. metadata +50 -50
  51. data/lib/selenium/devtools/v101.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dfa40c9da30a45510652c585ba59d508f8a0b2fb2952fedb0304ecdb2fd6ef0
4
- data.tar.gz: 68436c4388aaa5512baec31541b8a958521a16b4cb949f08925a30d61b9df90c
3
+ metadata.gz: f11f7fdc3ffa033efc946410c49e3e1d865c8f3d4095383711de87bf8861a152
4
+ data.tar.gz: 66a754174c5dc877d4102f6e24d4ded310affac4feb965d4d008695a02688ce4
5
5
  SHA512:
6
- metadata.gz: 7597a871252495a5a1ae0112e76daac0bb055f8d8f9f3abe96bf13c7077d7a35e9c21b60e1799e320462341d8a9b6cb9ce424d3ad5f5d02a53bc0d84ed7ec1d4
7
- data.tar.gz: cd228a13d0885e780d79ad600d49751341da377e80171107ea4cab85d9b049a62d5c7079a255f5f7580b5ae5b567fd8ed46d3a9d5bc514d60106380121eed199
6
+ metadata.gz: a259b91ff8ad5145013622d0b3082614695ae657ae0c5c4bd7fdb7196283bdc9efa87e61ebd095bcf47d346eccb65a2428757907b6ca45112baea2605420844a
7
+ data.tar.gz: 5f05db084ae2d8f3ccad1eb8da765384194808e358b6abe449f8ea15abf56da1a4955cd33fca9ab4d4ad1798d32d999c84649e29a58ac61692ebef820b111bcb
@@ -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 V101
23
+ module V104
24
24
  class Accessibility
25
25
  EVENTS = {
26
26
  load_complete: 'loadComplete',
@@ -86,6 +86,6 @@ module Selenium
86
86
  end
87
87
 
88
88
  end # Accessibility
89
- end # V101
89
+ end # V104
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 V101
23
+ module V104
24
24
  class Animation
25
25
  EVENTS = {
26
26
  animation_canceled: 'animationCanceled',
@@ -89,6 +89,6 @@ module Selenium
89
89
  end
90
90
 
91
91
  end # Animation
92
- end # V101
92
+ end # V104
93
93
  end # DevTools
94
94
  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 V101
23
+ module V104
24
24
  class Audits
25
25
  EVENTS = {
26
26
  issue_added: 'issueAdded',
@@ -57,6 +57,6 @@ module Selenium
57
57
  end
58
58
 
59
59
  end # Audits
60
- end # V101
60
+ end # V104
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 V101
23
+ module V104
24
24
  class BackgroundService
25
25
  EVENTS = {
26
26
  recording_state_changed: 'recordingStateChanged',
@@ -58,6 +58,6 @@ module Selenium
58
58
  end
59
59
 
60
60
  end # BackgroundService
61
- end # V101
61
+ end # V104
62
62
  end # DevTools
63
63
  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 V101
23
+ module V104
24
24
  class Browser
25
25
  EVENTS = {
26
26
  download_will_begin: 'downloadWillBegin',
@@ -130,6 +130,6 @@ module Selenium
130
130
  end
131
131
 
132
132
  end # Browser
133
- end # V101
133
+ end # V104
134
134
  end # DevTools
135
135
  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 V101
23
+ module V104
24
24
  class CacheStorage
25
25
 
26
26
  def initialize(devtools)
@@ -64,6 +64,6 @@ module Selenium
64
64
  end
65
65
 
66
66
  end # CacheStorage
67
- end # V101
67
+ end # V104
68
68
  end # DevTools
69
69
  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 V101
23
+ module V104
24
24
  class Cast
25
25
  EVENTS = {
26
26
  sinks_updated: 'sinksUpdated',
@@ -66,6 +66,6 @@ module Selenium
66
66
  end
67
67
 
68
68
  end # Cast
69
- end # V101
69
+ end # V104
70
70
  end # DevTools
71
71
  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 V101
23
+ module V104
24
24
  class Console
25
25
  EVENTS = {
26
26
  message_added: 'messageAdded',
@@ -48,6 +48,6 @@ module Selenium
48
48
  end
49
49
 
50
50
  end # Console
51
- end # V101
51
+ end # V104
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 V101
23
+ module V104
24
24
  class CSS
25
25
  EVENTS = {
26
26
  fonts_updated: 'fontsUpdated',
@@ -189,6 +189,6 @@ module Selenium
189
189
  end
190
190
 
191
191
  end # CSS
192
- end # V101
192
+ end # V104
193
193
  end # DevTools
194
194
  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 V101
23
+ module V104
24
24
  class Database
25
25
  EVENTS = {
26
26
  add_database: 'addDatabase',
@@ -55,6 +55,6 @@ module Selenium
55
55
  end
56
56
 
57
57
  end # Database
58
- end # V101
58
+ end # V104
59
59
  end # DevTools
60
60
  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 V101
23
+ module V104
24
24
  class Debugger
25
25
  EVENTS = {
26
26
  breakpoint_resolved: 'breakpointResolved',
@@ -103,9 +103,10 @@ module Selenium
103
103
  breakpointId: breakpoint_id)
104
104
  end
105
105
 
106
- def restart_frame(call_frame_id:)
106
+ def restart_frame(call_frame_id:, mode: nil)
107
107
  @devtools.send_cmd('Debugger.restartFrame',
108
- callFrameId: call_frame_id)
108
+ callFrameId: call_frame_id,
109
+ mode: mode)
109
110
  end
110
111
 
111
112
  def resume(terminate_on_resume: nil)
@@ -215,6 +216,6 @@ module Selenium
215
216
  end
216
217
 
217
218
  end # Debugger
218
- end # V101
219
+ end # V104
219
220
  end # DevTools
220
221
  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 V101
23
+ module V104
24
24
  class DeviceOrientation
25
25
 
26
26
  def initialize(devtools)
@@ -44,6 +44,6 @@ module Selenium
44
44
  end
45
45
 
46
46
  end # DeviceOrientation
47
- end # V101
47
+ end # V104
48
48
  end # DevTools
49
49
  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 V101
23
+ module V104
24
24
  class DOM
25
25
  EVENTS = {
26
26
  attribute_modified: 'attributeModified',
@@ -330,6 +330,6 @@ module Selenium
330
330
  end
331
331
 
332
332
  end # DOM
333
- end # V101
333
+ end # V104
334
334
  end # DevTools
335
335
  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 V101
23
+ module V104
24
24
  class DOMDebugger
25
25
 
26
26
  def initialize(devtools)
@@ -89,6 +89,6 @@ module Selenium
89
89
  end
90
90
 
91
91
  end # DOMDebugger
92
- end # V101
92
+ end # V104
93
93
  end # DevTools
94
94
  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 V101
23
+ module V104
24
24
  class DOMSnapshot
25
25
 
26
26
  def initialize(devtools)
@@ -58,6 +58,6 @@ module Selenium
58
58
  end
59
59
 
60
60
  end # DOMSnapshot
61
- end # V101
61
+ end # V104
62
62
  end # DevTools
63
63
  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 V101
23
+ module V104
24
24
  class DOMStorage
25
25
  EVENTS = {
26
26
  dom_storage_item_added: 'domStorageItemAdded',
@@ -70,6 +70,6 @@ module Selenium
70
70
  end
71
71
 
72
72
  end # DOMStorage
73
- end # V101
73
+ end # V104
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 V101
23
+ module V104
24
24
  class Emulation
25
25
  EVENTS = {
26
26
  virtual_time_budget_expired: 'virtualTimeBudgetExpired',
@@ -182,6 +182,11 @@ module Selenium
182
182
  imageTypes: image_types)
183
183
  end
184
184
 
185
+ def set_hardware_concurrency_override(hardware_concurrency:)
186
+ @devtools.send_cmd('Emulation.setHardwareConcurrencyOverride',
187
+ hardwareConcurrency: hardware_concurrency)
188
+ end
189
+
185
190
  def set_user_agent_override(user_agent:, accept_language: nil, platform: nil, user_agent_metadata: nil)
186
191
  @devtools.send_cmd('Emulation.setUserAgentOverride',
187
192
  userAgent: user_agent,
@@ -196,6 +201,6 @@ module Selenium
196
201
  end
197
202
 
198
203
  end # Emulation
199
- end # V101
204
+ end # V104
200
205
  end # DevTools
201
206
  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 V101
23
+ module V104
24
24
  class EventBreakpoints
25
25
 
26
26
  def initialize(devtools)
@@ -43,6 +43,6 @@ module Selenium
43
43
  end
44
44
 
45
45
  end # EventBreakpoints
46
- end # V101
46
+ end # V104
47
47
  end # DevTools
48
48
  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 V101
23
+ module V104
24
24
  class Fetch
25
25
  EVENTS = {
26
26
  request_paused: 'requestPaused',
@@ -98,6 +98,6 @@ module Selenium
98
98
  end
99
99
 
100
100
  end # Fetch
101
- end # V101
101
+ end # V104
102
102
  end # DevTools
103
103
  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 V101
23
+ module V104
24
24
  class HeadlessExperimental
25
25
  EVENTS = {
26
26
  needs_begin_frames_changed: 'needsBeginFramesChanged',
@@ -52,6 +52,6 @@ module Selenium
52
52
  end
53
53
 
54
54
  end # HeadlessExperimental
55
- end # V101
55
+ end # V104
56
56
  end # DevTools
57
57
  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 V101
23
+ module V104
24
24
  class HeapProfiler
25
25
  EVENTS = {
26
26
  add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
@@ -85,21 +85,23 @@ module Selenium
85
85
  @devtools.send_cmd('HeapProfiler.stopSampling')
86
86
  end
87
87
 
88
- def stop_tracking_heap_objects(report_progress: nil, treat_global_objects_as_roots: nil, capture_numeric_value: nil)
88
+ def stop_tracking_heap_objects(report_progress: nil, treat_global_objects_as_roots: nil, capture_numeric_value: nil, expose_internals: nil)
89
89
  @devtools.send_cmd('HeapProfiler.stopTrackingHeapObjects',
90
90
  reportProgress: report_progress,
91
91
  treatGlobalObjectsAsRoots: treat_global_objects_as_roots,
92
- captureNumericValue: capture_numeric_value)
92
+ captureNumericValue: capture_numeric_value,
93
+ exposeInternals: expose_internals)
93
94
  end
94
95
 
95
- def take_heap_snapshot(report_progress: nil, treat_global_objects_as_roots: nil, capture_numeric_value: nil)
96
+ def take_heap_snapshot(report_progress: nil, treat_global_objects_as_roots: nil, capture_numeric_value: nil, expose_internals: nil)
96
97
  @devtools.send_cmd('HeapProfiler.takeHeapSnapshot',
97
98
  reportProgress: report_progress,
98
99
  treatGlobalObjectsAsRoots: treat_global_objects_as_roots,
99
- captureNumericValue: capture_numeric_value)
100
+ captureNumericValue: capture_numeric_value,
101
+ exposeInternals: expose_internals)
100
102
  end
101
103
 
102
104
  end # HeapProfiler
103
- end # V101
105
+ end # V104
104
106
  end # DevTools
105
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 V101
23
+ module V104
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 # V101
94
+ end # V104
95
95
  end # DevTools
96
96
  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 V101
23
+ module V104
24
24
  class Input
25
25
  EVENTS = {
26
26
  drag_intercepted: 'dragIntercepted',
@@ -163,6 +163,6 @@ module Selenium
163
163
  end
164
164
 
165
165
  end # Input
166
- end # V101
166
+ end # V104
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 V101
23
+ module V104
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 # V101
49
+ end # V104
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 V101
23
+ module V104
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 # V101
53
+ end # V104
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 V101
23
+ module V104
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 # V101
89
+ end # V104
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 V101
23
+ module V104
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 # V101
60
+ end # V104
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 V101
23
+ module V104
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 # V101
51
+ end # V104
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 V101
23
+ module V104
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 # V101
80
+ end # V104
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 V101
23
+ module V104
24
24
  class Network
25
25
  EVENTS = {
26
26
  data_received: 'dataReceived',
@@ -259,6 +259,6 @@ module Selenium
259
259
  end
260
260
 
261
261
  end # Network
262
- end # V101
262
+ end # V104
263
263
  end # DevTools
264
264
  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 V101
23
+ module V104
24
24
  class Overlay
25
25
  EVENTS = {
26
26
  inspect_node_requested: 'inspectNodeRequested',
@@ -197,6 +197,6 @@ module Selenium
197
197
  end
198
198
 
199
199
  end # Overlay
200
- end # V101
200
+ end # V104
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 V101
23
+ module V104
24
24
  class Page
25
25
  EVENTS = {
26
26
  dom_content_event_fired: 'domContentEventFired',
@@ -43,6 +43,7 @@ module Selenium
43
43
  javascript_dialog_opening: 'javascriptDialogOpening',
44
44
  lifecycle_event: 'lifecycleEvent',
45
45
  back_forward_cache_not_used: 'backForwardCacheNotUsed',
46
+ prerender_attempt_completed: 'prerenderAttemptCompleted',
46
47
  load_event_fired: 'loadEventFired',
47
48
  navigated_within_document: 'navigatedWithinDocument',
48
49
  screencast_frame: 'screencastFrame',
@@ -189,7 +190,7 @@ module Selenium
189
190
  entryId: entry_id)
190
191
  end
191
192
 
192
- def print_to_pdf(landscape: nil, display_header_footer: nil, print_background: nil, scale: nil, paper_width: nil, paper_height: nil, margin_top: nil, margin_bottom: nil, margin_left: nil, margin_right: nil, page_ranges: nil, ignore_invalid_page_ranges: nil, header_template: nil, footer_template: nil, prefer_css_page_size: nil, transfer_mode: nil)
193
+ def print_to_pdf(landscape: nil, display_header_footer: nil, print_background: nil, scale: nil, paper_width: nil, paper_height: nil, margin_top: nil, margin_bottom: nil, margin_left: nil, margin_right: nil, page_ranges: nil, header_template: nil, footer_template: nil, prefer_css_page_size: nil, transfer_mode: nil)
193
194
  @devtools.send_cmd('Page.printToPDF',
194
195
  landscape: landscape,
195
196
  displayHeaderFooter: display_header_footer,
@@ -202,7 +203,6 @@ module Selenium
202
203
  marginLeft: margin_left,
203
204
  marginRight: margin_right,
204
205
  pageRanges: page_ranges,
205
- ignoreInvalidPageRanges: ignore_invalid_page_ranges,
206
206
  headerTemplate: header_template,
207
207
  footerTemplate: footer_template,
208
208
  preferCSSPageSize: prefer_css_page_size,
@@ -389,6 +389,6 @@ module Selenium
389
389
  end
390
390
 
391
391
  end # Page
392
- end # V101
392
+ end # V104
393
393
  end # DevTools
394
394
  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 V101
23
+ module V104
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 # V101
57
+ end # V104
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 V101
23
+ module V104
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 # V101
44
+ end # V104
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 V101
23
+ module V104
24
24
  class Profiler
25
25
  EVENTS = {
26
26
  console_profile_finished: 'consoleProfileFinished',
@@ -90,6 +90,6 @@ module Selenium
90
90
  end
91
91
 
92
92
  end # Profiler
93
- end # V101
93
+ end # V104
94
94
  end # DevTools
95
95
  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 V101
23
+ module V104
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)
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)
53
53
  @devtools.send_cmd('Runtime.callFunctionOn',
54
54
  functionDeclaration: function_declaration,
55
55
  objectId: object_id,
@@ -61,7 +61,8 @@ module Selenium
61
61
  awaitPromise: await_promise,
62
62
  executionContextId: execution_context_id,
63
63
  objectGroup: object_group,
64
- throwOnSideEffect: throw_on_side_effect)
64
+ throwOnSideEffect: throw_on_side_effect,
65
+ generateWebDriverValue: generate_web_driver_value)
65
66
  end
66
67
 
67
68
  def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
@@ -84,7 +85,7 @@ module Selenium
84
85
  @devtools.send_cmd('Runtime.enable')
85
86
  end
86
87
 
87
- def evaluate(expression:, object_group: nil, include_command_line_api: nil, silent: nil, context_id: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, throw_on_side_effect: nil, timeout: nil, disable_breaks: nil, repl_mode: nil, allow_unsafe_eval_blocked_by_csp: nil, unique_context_id: nil)
88
+ def evaluate(expression:, object_group: nil, include_command_line_api: nil, silent: nil, context_id: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, throw_on_side_effect: nil, timeout: nil, disable_breaks: nil, repl_mode: nil, allow_unsafe_eval_blocked_by_csp: nil, unique_context_id: nil, generate_web_driver_value: nil)
88
89
  @devtools.send_cmd('Runtime.evaluate',
89
90
  expression: expression,
90
91
  objectGroup: object_group,
@@ -100,7 +101,8 @@ module Selenium
100
101
  disableBreaks: disable_breaks,
101
102
  replMode: repl_mode,
102
103
  allowUnsafeEvalBlockedByCSP: allow_unsafe_eval_blocked_by_csp,
103
- uniqueContextId: unique_context_id)
104
+ uniqueContextId: unique_context_id,
105
+ generateWebDriverValue: generate_web_driver_value)
104
106
  end
105
107
 
106
108
  def get_isolate_id
@@ -194,6 +196,6 @@ module Selenium
194
196
  end
195
197
 
196
198
  end # Runtime
197
- end # V101
199
+ end # V104
198
200
  end # DevTools
199
201
  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 V101
23
+ module V104
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 # V101
40
+ end # V104
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 V101
23
+ module V104
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 # V101
65
+ end # V104
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 V101
23
+ module V104
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 # V101
110
+ end # V104
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 V101
23
+ module V104
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -39,6 +39,11 @@ module Selenium
39
39
  @devtools.callbacks["Storage.#{event}"] << block
40
40
  end
41
41
 
42
+ def get_storage_key_for_frame(frame_id:)
43
+ @devtools.send_cmd('Storage.getStorageKeyForFrame',
44
+ frameId: frame_id)
45
+ end
46
+
42
47
  def clear_data_for_origin(origin:, storage_types:)
43
48
  @devtools.send_cmd('Storage.clearDataForOrigin',
44
49
  origin: origin,
@@ -113,6 +118,6 @@ module Selenium
113
118
  end
114
119
 
115
120
  end # Storage
116
- end # V101
121
+ end # V104
117
122
  end # DevTools
118
123
  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 V101
23
+ module V104
24
24
  class SystemInfo
25
25
 
26
26
  def initialize(devtools)
@@ -41,6 +41,6 @@ module Selenium
41
41
  end
42
42
 
43
43
  end # SystemInfo
44
- end # V101
44
+ end # V104
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 V101
23
+ module V104
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -141,6 +141,6 @@ module Selenium
141
141
  end
142
142
 
143
143
  end # Target
144
- end # V101
144
+ end # V104
145
145
  end # DevTools
146
146
  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 V101
23
+ module V104
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 # V101
49
+ end # V104
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 V101
23
+ module V104
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 # V101
73
+ end # V104
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 V101
23
+ module V104
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 # V101
64
+ end # V104
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 V101
23
+ module V104
24
24
  class WebAuthn
25
25
 
26
26
  def initialize(devtools)
@@ -32,8 +32,9 @@ module Selenium
32
32
  @devtools.callbacks["WebAuthn.#{event}"] << block
33
33
  end
34
34
 
35
- def enable
36
- @devtools.send_cmd('WebAuthn.enable')
35
+ def enable(enable_ui: nil)
36
+ @devtools.send_cmd('WebAuthn.enable',
37
+ enableUI: enable_ui)
37
38
  end
38
39
 
39
40
  def disable
@@ -91,6 +92,6 @@ module Selenium
91
92
  end
92
93
 
93
94
  end # WebAuthn
94
- end # V101
95
+ end # V104
95
96
  end # DevTools
96
97
  end # Selenium
@@ -0,0 +1 @@
1
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v104/*", &method(:require))
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.103.1'
22
+ VERSION = '0.104.0'
23
23
  end # DevTools
24
24
  end # Selenium
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-devtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.103.1
4
+ version: 0.104.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-07-14 00:00:00.000000000 Z
13
+ date: 2022-08-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: selenium-webdriver
@@ -42,53 +42,6 @@ files:
42
42
  - NOTICE
43
43
  - lib/selenium/devtools.rb
44
44
  - lib/selenium/devtools/README.md
45
- - lib/selenium/devtools/v101.rb
46
- - lib/selenium/devtools/v101/accessibility.rb
47
- - lib/selenium/devtools/v101/animation.rb
48
- - lib/selenium/devtools/v101/audits.rb
49
- - lib/selenium/devtools/v101/background_service.rb
50
- - lib/selenium/devtools/v101/browser.rb
51
- - lib/selenium/devtools/v101/cache_storage.rb
52
- - lib/selenium/devtools/v101/cast.rb
53
- - lib/selenium/devtools/v101/console.rb
54
- - lib/selenium/devtools/v101/css.rb
55
- - lib/selenium/devtools/v101/database.rb
56
- - lib/selenium/devtools/v101/debugger.rb
57
- - lib/selenium/devtools/v101/device_orientation.rb
58
- - lib/selenium/devtools/v101/dom.rb
59
- - lib/selenium/devtools/v101/dom_debugger.rb
60
- - lib/selenium/devtools/v101/dom_snapshot.rb
61
- - lib/selenium/devtools/v101/dom_storage.rb
62
- - lib/selenium/devtools/v101/emulation.rb
63
- - lib/selenium/devtools/v101/event_breakpoints.rb
64
- - lib/selenium/devtools/v101/fetch.rb
65
- - lib/selenium/devtools/v101/headless_experimental.rb
66
- - lib/selenium/devtools/v101/heap_profiler.rb
67
- - lib/selenium/devtools/v101/indexed_db.rb
68
- - lib/selenium/devtools/v101/input.rb
69
- - lib/selenium/devtools/v101/inspector.rb
70
- - lib/selenium/devtools/v101/io.rb
71
- - lib/selenium/devtools/v101/layer_tree.rb
72
- - lib/selenium/devtools/v101/log.rb
73
- - lib/selenium/devtools/v101/media.rb
74
- - lib/selenium/devtools/v101/memory.rb
75
- - lib/selenium/devtools/v101/network.rb
76
- - lib/selenium/devtools/v101/overlay.rb
77
- - lib/selenium/devtools/v101/page.rb
78
- - lib/selenium/devtools/v101/performance.rb
79
- - lib/selenium/devtools/v101/performance_timeline.rb
80
- - lib/selenium/devtools/v101/profiler.rb
81
- - lib/selenium/devtools/v101/runtime.rb
82
- - lib/selenium/devtools/v101/schema.rb
83
- - lib/selenium/devtools/v101/security.rb
84
- - lib/selenium/devtools/v101/service_worker.rb
85
- - lib/selenium/devtools/v101/storage.rb
86
- - lib/selenium/devtools/v101/system_info.rb
87
- - lib/selenium/devtools/v101/target.rb
88
- - lib/selenium/devtools/v101/tethering.rb
89
- - lib/selenium/devtools/v101/tracing.rb
90
- - lib/selenium/devtools/v101/web_audio.rb
91
- - lib/selenium/devtools/v101/web_authn.rb
92
45
  - lib/selenium/devtools/v102.rb
93
46
  - lib/selenium/devtools/v102/accessibility.rb
94
47
  - lib/selenium/devtools/v102/animation.rb
@@ -183,6 +136,53 @@ files:
183
136
  - lib/selenium/devtools/v103/tracing.rb
184
137
  - lib/selenium/devtools/v103/web_audio.rb
185
138
  - lib/selenium/devtools/v103/web_authn.rb
139
+ - lib/selenium/devtools/v104.rb
140
+ - lib/selenium/devtools/v104/accessibility.rb
141
+ - lib/selenium/devtools/v104/animation.rb
142
+ - lib/selenium/devtools/v104/audits.rb
143
+ - lib/selenium/devtools/v104/background_service.rb
144
+ - lib/selenium/devtools/v104/browser.rb
145
+ - lib/selenium/devtools/v104/cache_storage.rb
146
+ - lib/selenium/devtools/v104/cast.rb
147
+ - lib/selenium/devtools/v104/console.rb
148
+ - lib/selenium/devtools/v104/css.rb
149
+ - lib/selenium/devtools/v104/database.rb
150
+ - lib/selenium/devtools/v104/debugger.rb
151
+ - lib/selenium/devtools/v104/device_orientation.rb
152
+ - lib/selenium/devtools/v104/dom.rb
153
+ - lib/selenium/devtools/v104/dom_debugger.rb
154
+ - lib/selenium/devtools/v104/dom_snapshot.rb
155
+ - lib/selenium/devtools/v104/dom_storage.rb
156
+ - lib/selenium/devtools/v104/emulation.rb
157
+ - lib/selenium/devtools/v104/event_breakpoints.rb
158
+ - lib/selenium/devtools/v104/fetch.rb
159
+ - lib/selenium/devtools/v104/headless_experimental.rb
160
+ - lib/selenium/devtools/v104/heap_profiler.rb
161
+ - lib/selenium/devtools/v104/indexed_db.rb
162
+ - lib/selenium/devtools/v104/input.rb
163
+ - lib/selenium/devtools/v104/inspector.rb
164
+ - lib/selenium/devtools/v104/io.rb
165
+ - lib/selenium/devtools/v104/layer_tree.rb
166
+ - lib/selenium/devtools/v104/log.rb
167
+ - lib/selenium/devtools/v104/media.rb
168
+ - lib/selenium/devtools/v104/memory.rb
169
+ - lib/selenium/devtools/v104/network.rb
170
+ - lib/selenium/devtools/v104/overlay.rb
171
+ - lib/selenium/devtools/v104/page.rb
172
+ - lib/selenium/devtools/v104/performance.rb
173
+ - lib/selenium/devtools/v104/performance_timeline.rb
174
+ - lib/selenium/devtools/v104/profiler.rb
175
+ - lib/selenium/devtools/v104/runtime.rb
176
+ - lib/selenium/devtools/v104/schema.rb
177
+ - lib/selenium/devtools/v104/security.rb
178
+ - lib/selenium/devtools/v104/service_worker.rb
179
+ - lib/selenium/devtools/v104/storage.rb
180
+ - lib/selenium/devtools/v104/system_info.rb
181
+ - lib/selenium/devtools/v104/target.rb
182
+ - lib/selenium/devtools/v104/tethering.rb
183
+ - lib/selenium/devtools/v104/tracing.rb
184
+ - lib/selenium/devtools/v104/web_audio.rb
185
+ - lib/selenium/devtools/v104/web_authn.rb
186
186
  - lib/selenium/devtools/v85.rb
187
187
  - lib/selenium/devtools/v85/accessibility.rb
188
188
  - lib/selenium/devtools/v85/animation.rb
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  - !ruby/object:Gem::Version
254
254
  version: 1.3.1
255
255
  requirements: []
256
- rubygems_version: 3.0.3
256
+ rubygems_version: 3.0.3.1
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: DevTools Code for use with Selenium
@@ -1 +0,0 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v101/*", &method(:require))