selenium-devtools 0.108.0 → 0.109.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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/NOTICE +1 -1
  4. data/lib/selenium/devtools/{v106 → v109}/accessibility.rb +2 -2
  5. data/lib/selenium/devtools/{v106 → v109}/animation.rb +2 -2
  6. data/lib/selenium/devtools/{v106 → v109}/audits.rb +2 -2
  7. data/lib/selenium/devtools/{v106 → v109}/background_service.rb +2 -2
  8. data/lib/selenium/devtools/{v106 → v109}/browser.rb +2 -2
  9. data/lib/selenium/devtools/{v106 → v109}/cache_storage.rb +2 -2
  10. data/lib/selenium/devtools/{v106 → v109}/cast.rb +2 -2
  11. data/lib/selenium/devtools/{v106 → v109}/console.rb +2 -2
  12. data/lib/selenium/devtools/{v106 → v109}/css.rb +2 -2
  13. data/lib/selenium/devtools/{v106 → v109}/database.rb +2 -2
  14. data/lib/selenium/devtools/{v106 → v109}/debugger.rb +2 -2
  15. data/lib/selenium/devtools/{v106 → v109}/device_orientation.rb +2 -2
  16. data/lib/selenium/devtools/{v106 → v109}/dom.rb +6 -4
  17. data/lib/selenium/devtools/{v106 → v109}/dom_debugger.rb +2 -2
  18. data/lib/selenium/devtools/{v106 → v109}/dom_snapshot.rb +2 -2
  19. data/lib/selenium/devtools/{v106 → v109}/dom_storage.rb +2 -2
  20. data/lib/selenium/devtools/{v106 → v109}/emulation.rb +2 -2
  21. data/lib/selenium/devtools/{v106 → v109}/event_breakpoints.rb +2 -2
  22. data/lib/selenium/devtools/{v106 → v109}/fetch.rb +2 -2
  23. data/lib/selenium/devtools/{v106 → v109}/headless_experimental.rb +2 -5
  24. data/lib/selenium/devtools/{v106 → v109}/heap_profiler.rb +6 -4
  25. data/lib/selenium/devtools/{v106 → v109}/indexed_db.rb +2 -2
  26. data/lib/selenium/devtools/{v106 → v109}/input.rb +2 -2
  27. data/lib/selenium/devtools/{v106 → v109}/inspector.rb +2 -2
  28. data/lib/selenium/devtools/{v106 → v109}/io.rb +2 -2
  29. data/lib/selenium/devtools/{v106 → v109}/layer_tree.rb +2 -2
  30. data/lib/selenium/devtools/{v106 → v109}/log.rb +2 -2
  31. data/lib/selenium/devtools/{v106 → v109}/media.rb +2 -2
  32. data/lib/selenium/devtools/{v106 → v109}/memory.rb +2 -2
  33. data/lib/selenium/devtools/{v106 → v109}/network.rb +2 -2
  34. data/lib/selenium/devtools/{v106 → v109}/overlay.rb +2 -2
  35. data/lib/selenium/devtools/{v106 → v109}/page.rb +10 -4
  36. data/lib/selenium/devtools/{v106 → v109}/performance.rb +2 -2
  37. data/lib/selenium/devtools/{v106 → v109}/performance_timeline.rb +2 -2
  38. data/lib/selenium/devtools/{v106 → v109}/profiler.rb +2 -14
  39. data/lib/selenium/devtools/{v106 → v109}/runtime.rb +2 -2
  40. data/lib/selenium/devtools/{v106 → v109}/schema.rb +2 -2
  41. data/lib/selenium/devtools/{v106 → v109}/security.rb +2 -2
  42. data/lib/selenium/devtools/{v106 → v109}/service_worker.rb +2 -2
  43. data/lib/selenium/devtools/{v106 → v109}/storage.rb +37 -2
  44. data/lib/selenium/devtools/{v106 → v109}/system_info.rb +2 -2
  45. data/lib/selenium/devtools/{v106 → v109}/target.rb +2 -2
  46. data/lib/selenium/devtools/{v106 → v109}/tethering.rb +2 -2
  47. data/lib/selenium/devtools/{v106 → v109}/tracing.rb +2 -2
  48. data/lib/selenium/devtools/{v106 → v109}/web_audio.rb +2 -2
  49. data/lib/selenium/devtools/{v106 → v109}/web_authn.rb +10 -2
  50. data/lib/selenium/devtools/v109.rb +1 -0
  51. data/lib/selenium/devtools/version.rb +1 -1
  52. data/selenium-devtools.gemspec +1 -1
  53. metadata +49 -49
  54. data/lib/selenium/devtools/v106.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: caae844e0c021f913c91b758ec12ccbf653f4907a7d16d98391996e6e842be66
4
- data.tar.gz: 07e6b8d462638584df66814d5cc8f2d5594050280695a79efed8f06533e924a7
3
+ metadata.gz: e02df160d103b4397b7db8fb1c0fb12d16933be1648b1826872daf05f79fae4c
4
+ data.tar.gz: bf36516e75b16705619bf3271b22a71f95429640f6ca2968001e8f7b1efbe347
5
5
  SHA512:
6
- metadata.gz: 517b85e9ca61741cf3211ca32e4537597383cf466ffea76cec244852ecdf22af8c29536d9f4a6ef3df8fffc7aab4e022d8b277490366795f3286eb42d1153fd2
7
- data.tar.gz: dcaf7ef98356341bc2eeaff64c69ef5ec23a59e7016c9a456c796434bb6473f8380659bb815e5ecc419ac0c28ecc887a2e4a777d02d6318d76f1645d8c0b77c5
6
+ metadata.gz: fe32db31f23a819a930bbea6c1ba613678b3fce2c4e14614e7208878bc76ebbc717804ad238962815b56b81e83117cfe48eb3a1c8fe9ec604225d93479b55e83
7
+ data.tar.gz: 800b0e4d8e561603896d1c19a8a2caa0e1d61acfb75a0f28734ec631200e98dc7ac1cbadaa1f0bda91c20f375108f9f37783813258c24445a2ab849060a45cf5
data/LICENSE CHANGED
@@ -187,7 +187,7 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright 2022 Software Freedom Conservancy (SFC)
190
+ Copyright 2023 Software Freedom Conservancy (SFC)
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
data/NOTICE CHANGED
@@ -1,2 +1,2 @@
1
- Copyright 2011-2022 Software Freedom Conservancy
1
+ Copyright 2011-2023 Software Freedom Conservancy
2
2
  Copyright 2004-2011 Selenium committers
@@ -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 V106
23
+ module V109
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 # V106
89
+ end # V109
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 V106
23
+ module V109
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 # V106
92
+ end # V109
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 V106
23
+ module V109
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 # V106
60
+ end # V109
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 V106
23
+ module V109
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 # V106
61
+ end # V109
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 V106
23
+ module V109
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 # V106
133
+ end # V109
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 V106
23
+ module V109
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 # V106
67
+ end # V109
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 V106
23
+ module V109
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 # V106
69
+ end # V109
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 V106
23
+ module V109
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 # V106
51
+ end # V109
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 V106
23
+ module V109
24
24
  class CSS
25
25
  EVENTS = {
26
26
  fonts_updated: 'fontsUpdated',
@@ -196,6 +196,6 @@ module Selenium
196
196
  end
197
197
 
198
198
  end # CSS
199
- end # V106
199
+ end # V109
200
200
  end # DevTools
201
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 V106
23
+ module V109
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 # V106
58
+ end # V109
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 V106
23
+ module V109
24
24
  class Debugger
25
25
  EVENTS = {
26
26
  breakpoint_resolved: 'breakpointResolved',
@@ -227,6 +227,6 @@ module Selenium
227
227
  end
228
228
 
229
229
  end # Debugger
230
- end # V106
230
+ end # V109
231
231
  end # DevTools
232
232
  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 V106
23
+ module V109
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 # V106
47
+ end # V109
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 V106
23
+ module V109
24
24
  class DOM
25
25
  EVENTS = {
26
26
  attribute_modified: 'attributeModified',
@@ -323,10 +323,12 @@ module Selenium
323
323
  frameId: frame_id)
324
324
  end
325
325
 
326
- def get_container_for_node(node_id:, container_name: nil)
326
+ def get_container_for_node(node_id:, container_name: nil, physical_axes: nil, logical_axes: nil)
327
327
  @devtools.send_cmd('DOM.getContainerForNode',
328
328
  nodeId: node_id,
329
- containerName: container_name)
329
+ containerName: container_name,
330
+ physicalAxes: physical_axes,
331
+ logicalAxes: logical_axes)
330
332
  end
331
333
 
332
334
  def get_querying_descendants_for_container(node_id:)
@@ -335,6 +337,6 @@ module Selenium
335
337
  end
336
338
 
337
339
  end # DOM
338
- end # V106
340
+ end # V109
339
341
  end # DevTools
340
342
  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 V106
23
+ module V109
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 # V106
92
+ end # V109
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 V106
23
+ module V109
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 # V106
61
+ end # V109
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 V106
23
+ module V109
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 # V106
73
+ end # V109
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 V106
23
+ module V109
24
24
  class Emulation
25
25
  EVENTS = {
26
26
  virtual_time_budget_expired: 'virtualTimeBudgetExpired',
@@ -201,6 +201,6 @@ module Selenium
201
201
  end
202
202
 
203
203
  end # Emulation
204
- end # V106
204
+ end # V109
205
205
  end # DevTools
206
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 V106
23
+ module V109
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 # V106
46
+ end # V109
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 V106
23
+ module V109
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 # V106
101
+ end # V109
102
102
  end # DevTools
103
103
  end # Selenium
@@ -20,11 +20,8 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V106
23
+ module V109
24
24
  class HeadlessExperimental
25
- EVENTS = {
26
- needs_begin_frames_changed: 'needsBeginFramesChanged',
27
- }.freeze
28
25
 
29
26
  def initialize(devtools)
30
27
  @devtools = devtools
@@ -52,6 +49,6 @@ module Selenium
52
49
  end
53
50
 
54
51
  end # HeadlessExperimental
55
- end # V106
52
+ end # V109
56
53
  end # DevTools
57
54
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V106
23
+ module V109
24
24
  class HeapProfiler
25
25
  EVENTS = {
26
26
  add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
@@ -71,9 +71,11 @@ module Selenium
71
71
  @devtools.send_cmd('HeapProfiler.getSamplingProfile')
72
72
  end
73
73
 
74
- def start_sampling(sampling_interval: nil)
74
+ def start_sampling(sampling_interval: nil, include_objects_collected_by_major_gc: nil, include_objects_collected_by_minor_gc: nil)
75
75
  @devtools.send_cmd('HeapProfiler.startSampling',
76
- samplingInterval: sampling_interval)
76
+ samplingInterval: sampling_interval,
77
+ includeObjectsCollectedByMajorGC: include_objects_collected_by_major_gc,
78
+ includeObjectsCollectedByMinorGC: include_objects_collected_by_minor_gc)
77
79
  end
78
80
 
79
81
  def start_tracking_heap_objects(track_allocations: nil)
@@ -102,6 +104,6 @@ module Selenium
102
104
  end
103
105
 
104
106
  end # HeapProfiler
105
- end # V106
107
+ end # V109
106
108
  end # DevTools
107
109
  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 V106
23
+ module V109
24
24
  class IndexedDB
25
25
 
26
26
  def initialize(devtools)
@@ -98,6 +98,6 @@ module Selenium
98
98
  end
99
99
 
100
100
  end # IndexedDB
101
- end # V106
101
+ end # V109
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 V106
23
+ module V109
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 # V106
166
+ end # V109
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 V106
23
+ module V109
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 # V106
49
+ end # V109
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 V106
23
+ module V109
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 # V106
53
+ end # V109
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 V106
23
+ module V109
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 # V106
89
+ end # V109
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 V106
23
+ module V109
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 # V106
60
+ end # V109
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 V106
23
+ module V109
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 # V106
51
+ end # V109
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 V106
23
+ module V109
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 # V106
80
+ end # V109
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 V106
23
+ module V109
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 # V106
262
+ end # V109
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 V106
23
+ module V109
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 # V106
200
+ end # V109
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 V106
23
+ module V109
24
24
  class Page
25
25
  EVENTS = {
26
26
  dom_content_event_fired: 'domContentEventFired',
@@ -77,13 +77,14 @@ module Selenium
77
77
  @devtools.send_cmd('Page.bringToFront')
78
78
  end
79
79
 
80
- def capture_screenshot(format: nil, quality: nil, clip: nil, from_surface: nil, capture_beyond_viewport: nil)
80
+ def capture_screenshot(format: nil, quality: nil, clip: nil, from_surface: nil, capture_beyond_viewport: nil, optimize_for_speed: nil)
81
81
  @devtools.send_cmd('Page.captureScreenshot',
82
82
  format: format,
83
83
  quality: quality,
84
84
  clip: clip,
85
85
  fromSurface: from_surface,
86
- captureBeyondViewport: capture_beyond_viewport)
86
+ captureBeyondViewport: capture_beyond_viewport,
87
+ optimizeForSpeed: optimize_for_speed)
87
88
  end
88
89
 
89
90
  def capture_snapshot(format: nil)
@@ -140,6 +141,11 @@ module Selenium
140
141
  @devtools.send_cmd('Page.getAppId')
141
142
  end
142
143
 
144
+ def get_ad_script_id(frame_id:)
145
+ @devtools.send_cmd('Page.getAdScriptId',
146
+ frameId: frame_id)
147
+ end
148
+
143
149
  def get_cookies
144
150
  @devtools.send_cmd('Page.getCookies')
145
151
  end
@@ -389,6 +395,6 @@ module Selenium
389
395
  end
390
396
 
391
397
  end # Page
392
- end # V106
398
+ end # V109
393
399
  end # DevTools
394
400
  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 V106
23
+ module V109
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 # V106
57
+ end # V109
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 V106
23
+ module V109
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 # V106
44
+ end # V109
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 V106
23
+ module V109
24
24
  class Profiler
25
25
  EVENTS = {
26
26
  console_profile_finished: 'consoleProfileFinished',
@@ -65,10 +65,6 @@ module Selenium
65
65
  allowTriggeredUpdates: allow_triggered_updates)
66
66
  end
67
67
 
68
- def start_type_profile
69
- @devtools.send_cmd('Profiler.startTypeProfile')
70
- end
71
-
72
68
  def stop
73
69
  @devtools.send_cmd('Profiler.stop')
74
70
  end
@@ -77,19 +73,11 @@ module Selenium
77
73
  @devtools.send_cmd('Profiler.stopPreciseCoverage')
78
74
  end
79
75
 
80
- def stop_type_profile
81
- @devtools.send_cmd('Profiler.stopTypeProfile')
82
- end
83
-
84
76
  def take_precise_coverage
85
77
  @devtools.send_cmd('Profiler.takePreciseCoverage')
86
78
  end
87
79
 
88
- def take_type_profile
89
- @devtools.send_cmd('Profiler.takeTypeProfile')
90
- end
91
-
92
80
  end # Profiler
93
- end # V106
81
+ end # V109
94
82
  end # DevTools
95
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 V106
23
+ module V109
24
24
  class Runtime
25
25
  EVENTS = {
26
26
  binding_called: 'bindingCalled',
@@ -196,6 +196,6 @@ module Selenium
196
196
  end
197
197
 
198
198
  end # Runtime
199
- end # V106
199
+ end # V109
200
200
  end # DevTools
201
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 V106
23
+ module V109
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 # V106
40
+ end # V109
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 V106
23
+ module V109
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 # V106
65
+ end # V109
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 V106
23
+ module V109
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 # V106
110
+ end # V109
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 V106
23
+ module V109
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -28,6 +28,7 @@ module Selenium
28
28
  indexed_db_content_updated: 'indexedDBContentUpdated',
29
29
  indexed_db_list_updated: 'indexedDBListUpdated',
30
30
  interest_group_accessed: 'interestGroupAccessed',
31
+ shared_storage_accessed: 'sharedStorageAccessed',
31
32
  }.freeze
32
33
 
33
34
  def initialize(devtools)
@@ -133,7 +134,41 @@ module Selenium
133
134
  enable: enable)
134
135
  end
135
136
 
137
+ def get_shared_storage_metadata(owner_origin:)
138
+ @devtools.send_cmd('Storage.getSharedStorageMetadata',
139
+ ownerOrigin: owner_origin)
140
+ end
141
+
142
+ def get_shared_storage_entries(owner_origin:)
143
+ @devtools.send_cmd('Storage.getSharedStorageEntries',
144
+ ownerOrigin: owner_origin)
145
+ end
146
+
147
+ def set_shared_storage_entry(owner_origin:, key:, value:, ignore_if_present: nil)
148
+ @devtools.send_cmd('Storage.setSharedStorageEntry',
149
+ ownerOrigin: owner_origin,
150
+ key: key,
151
+ value: value,
152
+ ignoreIfPresent: ignore_if_present)
153
+ end
154
+
155
+ def delete_shared_storage_entry(owner_origin:, key:)
156
+ @devtools.send_cmd('Storage.deleteSharedStorageEntry',
157
+ ownerOrigin: owner_origin,
158
+ key: key)
159
+ end
160
+
161
+ def clear_shared_storage_entries(owner_origin:)
162
+ @devtools.send_cmd('Storage.clearSharedStorageEntries',
163
+ ownerOrigin: owner_origin)
164
+ end
165
+
166
+ def set_shared_storage_tracking(enable:)
167
+ @devtools.send_cmd('Storage.setSharedStorageTracking',
168
+ enable: enable)
169
+ end
170
+
136
171
  end # Storage
137
- end # V106
172
+ end # V109
138
173
  end # DevTools
139
174
  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 V106
23
+ module V109
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 # V106
44
+ end # V109
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 V106
23
+ module V109
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -145,6 +145,6 @@ module Selenium
145
145
  end
146
146
 
147
147
  end # Target
148
- end # V106
148
+ end # V109
149
149
  end # DevTools
150
150
  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 V106
23
+ module V109
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 # V106
49
+ end # V109
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 V106
23
+ module V109
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 # V106
73
+ end # V109
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 V106
23
+ module V109
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 # V106
64
+ end # V109
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 V106
23
+ module V109
24
24
  class WebAuthn
25
25
 
26
26
  def initialize(devtools)
@@ -46,6 +46,14 @@ module Selenium
46
46
  options: options)
47
47
  end
48
48
 
49
+ def set_response_override_bits(authenticator_id:, is_bogus_signature: nil, is_bad_uv: nil, is_bad_up: nil)
50
+ @devtools.send_cmd('WebAuthn.setResponseOverrideBits',
51
+ authenticatorId: authenticator_id,
52
+ isBogusSignature: is_bogus_signature,
53
+ isBadUV: is_bad_uv,
54
+ isBadUP: is_bad_up)
55
+ end
56
+
49
57
  def remove_virtual_authenticator(authenticator_id:)
50
58
  @devtools.send_cmd('WebAuthn.removeVirtualAuthenticator',
51
59
  authenticatorId: authenticator_id)
@@ -92,6 +100,6 @@ module Selenium
92
100
  end
93
101
 
94
102
  end # WebAuthn
95
- end # V106
103
+ end # V109
96
104
  end # DevTools
97
105
  end # Selenium
@@ -0,0 +1 @@
1
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v109/*", &method(:require))
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.108.0'
22
+ VERSION = '0.109.0'
23
23
  end # DevTools
24
24
  end # Selenium
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  'lib/selenium/devtools.rb'
40
40
  ] + Dir['lib/selenium/devtools/**/*']
41
41
 
42
- s.require_paths = ["lib"]
42
+ s.require_paths = ['lib']
43
43
 
44
44
  s.add_runtime_dependency 'selenium-webdriver', '~> 4.2'
45
45
  end
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.108.0
4
+ version: 0.109.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-11-30 00:00:00.000000000 Z
13
+ date: 2023-01-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: selenium-webdriver
@@ -41,53 +41,6 @@ files:
41
41
  - LICENSE
42
42
  - NOTICE
43
43
  - lib/selenium/devtools.rb
44
- - lib/selenium/devtools/v106.rb
45
- - lib/selenium/devtools/v106/accessibility.rb
46
- - lib/selenium/devtools/v106/animation.rb
47
- - lib/selenium/devtools/v106/audits.rb
48
- - lib/selenium/devtools/v106/background_service.rb
49
- - lib/selenium/devtools/v106/browser.rb
50
- - lib/selenium/devtools/v106/cache_storage.rb
51
- - lib/selenium/devtools/v106/cast.rb
52
- - lib/selenium/devtools/v106/console.rb
53
- - lib/selenium/devtools/v106/css.rb
54
- - lib/selenium/devtools/v106/database.rb
55
- - lib/selenium/devtools/v106/debugger.rb
56
- - lib/selenium/devtools/v106/device_orientation.rb
57
- - lib/selenium/devtools/v106/dom.rb
58
- - lib/selenium/devtools/v106/dom_debugger.rb
59
- - lib/selenium/devtools/v106/dom_snapshot.rb
60
- - lib/selenium/devtools/v106/dom_storage.rb
61
- - lib/selenium/devtools/v106/emulation.rb
62
- - lib/selenium/devtools/v106/event_breakpoints.rb
63
- - lib/selenium/devtools/v106/fetch.rb
64
- - lib/selenium/devtools/v106/headless_experimental.rb
65
- - lib/selenium/devtools/v106/heap_profiler.rb
66
- - lib/selenium/devtools/v106/indexed_db.rb
67
- - lib/selenium/devtools/v106/input.rb
68
- - lib/selenium/devtools/v106/inspector.rb
69
- - lib/selenium/devtools/v106/io.rb
70
- - lib/selenium/devtools/v106/layer_tree.rb
71
- - lib/selenium/devtools/v106/log.rb
72
- - lib/selenium/devtools/v106/media.rb
73
- - lib/selenium/devtools/v106/memory.rb
74
- - lib/selenium/devtools/v106/network.rb
75
- - lib/selenium/devtools/v106/overlay.rb
76
- - lib/selenium/devtools/v106/page.rb
77
- - lib/selenium/devtools/v106/performance.rb
78
- - lib/selenium/devtools/v106/performance_timeline.rb
79
- - lib/selenium/devtools/v106/profiler.rb
80
- - lib/selenium/devtools/v106/runtime.rb
81
- - lib/selenium/devtools/v106/schema.rb
82
- - lib/selenium/devtools/v106/security.rb
83
- - lib/selenium/devtools/v106/service_worker.rb
84
- - lib/selenium/devtools/v106/storage.rb
85
- - lib/selenium/devtools/v106/system_info.rb
86
- - lib/selenium/devtools/v106/target.rb
87
- - lib/selenium/devtools/v106/tethering.rb
88
- - lib/selenium/devtools/v106/tracing.rb
89
- - lib/selenium/devtools/v106/web_audio.rb
90
- - lib/selenium/devtools/v106/web_authn.rb
91
44
  - lib/selenium/devtools/v107.rb
92
45
  - lib/selenium/devtools/v107/accessibility.rb
93
46
  - lib/selenium/devtools/v107/animation.rb
@@ -182,6 +135,53 @@ files:
182
135
  - lib/selenium/devtools/v108/tracing.rb
183
136
  - lib/selenium/devtools/v108/web_audio.rb
184
137
  - lib/selenium/devtools/v108/web_authn.rb
138
+ - lib/selenium/devtools/v109.rb
139
+ - lib/selenium/devtools/v109/accessibility.rb
140
+ - lib/selenium/devtools/v109/animation.rb
141
+ - lib/selenium/devtools/v109/audits.rb
142
+ - lib/selenium/devtools/v109/background_service.rb
143
+ - lib/selenium/devtools/v109/browser.rb
144
+ - lib/selenium/devtools/v109/cache_storage.rb
145
+ - lib/selenium/devtools/v109/cast.rb
146
+ - lib/selenium/devtools/v109/console.rb
147
+ - lib/selenium/devtools/v109/css.rb
148
+ - lib/selenium/devtools/v109/database.rb
149
+ - lib/selenium/devtools/v109/debugger.rb
150
+ - lib/selenium/devtools/v109/device_orientation.rb
151
+ - lib/selenium/devtools/v109/dom.rb
152
+ - lib/selenium/devtools/v109/dom_debugger.rb
153
+ - lib/selenium/devtools/v109/dom_snapshot.rb
154
+ - lib/selenium/devtools/v109/dom_storage.rb
155
+ - lib/selenium/devtools/v109/emulation.rb
156
+ - lib/selenium/devtools/v109/event_breakpoints.rb
157
+ - lib/selenium/devtools/v109/fetch.rb
158
+ - lib/selenium/devtools/v109/headless_experimental.rb
159
+ - lib/selenium/devtools/v109/heap_profiler.rb
160
+ - lib/selenium/devtools/v109/indexed_db.rb
161
+ - lib/selenium/devtools/v109/input.rb
162
+ - lib/selenium/devtools/v109/inspector.rb
163
+ - lib/selenium/devtools/v109/io.rb
164
+ - lib/selenium/devtools/v109/layer_tree.rb
165
+ - lib/selenium/devtools/v109/log.rb
166
+ - lib/selenium/devtools/v109/media.rb
167
+ - lib/selenium/devtools/v109/memory.rb
168
+ - lib/selenium/devtools/v109/network.rb
169
+ - lib/selenium/devtools/v109/overlay.rb
170
+ - lib/selenium/devtools/v109/page.rb
171
+ - lib/selenium/devtools/v109/performance.rb
172
+ - lib/selenium/devtools/v109/performance_timeline.rb
173
+ - lib/selenium/devtools/v109/profiler.rb
174
+ - lib/selenium/devtools/v109/runtime.rb
175
+ - lib/selenium/devtools/v109/schema.rb
176
+ - lib/selenium/devtools/v109/security.rb
177
+ - lib/selenium/devtools/v109/service_worker.rb
178
+ - lib/selenium/devtools/v109/storage.rb
179
+ - lib/selenium/devtools/v109/system_info.rb
180
+ - lib/selenium/devtools/v109/target.rb
181
+ - lib/selenium/devtools/v109/tethering.rb
182
+ - lib/selenium/devtools/v109/tracing.rb
183
+ - lib/selenium/devtools/v109/web_audio.rb
184
+ - lib/selenium/devtools/v109/web_authn.rb
185
185
  - lib/selenium/devtools/v85.rb
186
186
  - lib/selenium/devtools/v85/accessibility.rb
187
187
  - lib/selenium/devtools/v85/animation.rb
@@ -1 +0,0 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v106/*", &method(:require))