selenium-devtools 0.102.0 → 0.103.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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/{v100 → v103}/accessibility.rb +3 -4
  3. data/lib/selenium/devtools/{v100 → v103}/animation.rb +2 -2
  4. data/lib/selenium/devtools/{v100 → v103}/audits.rb +2 -2
  5. data/lib/selenium/devtools/{v100 → v103}/background_service.rb +2 -2
  6. data/lib/selenium/devtools/{v100 → v103}/browser.rb +2 -2
  7. data/lib/selenium/devtools/{v100 → v103}/cache_storage.rb +2 -2
  8. data/lib/selenium/devtools/{v100 → v103}/cast.rb +2 -2
  9. data/lib/selenium/devtools/{v100 → v103}/console.rb +2 -2
  10. data/lib/selenium/devtools/{v100 → v103}/css.rb +7 -2
  11. data/lib/selenium/devtools/{v100 → v103}/database.rb +2 -2
  12. data/lib/selenium/devtools/{v100 → v103}/debugger.rb +2 -2
  13. data/lib/selenium/devtools/{v100 → v103}/device_orientation.rb +2 -2
  14. data/lib/selenium/devtools/{v100 → v103}/dom.rb +2 -2
  15. data/lib/selenium/devtools/{v100 → v103}/dom_debugger.rb +2 -2
  16. data/lib/selenium/devtools/{v100 → v103}/dom_snapshot.rb +2 -2
  17. data/lib/selenium/devtools/{v100 → v103}/dom_storage.rb +7 -2
  18. data/lib/selenium/devtools/{v100 → v103}/emulation.rb +7 -2
  19. data/lib/selenium/devtools/{v100 → v103}/event_breakpoints.rb +2 -2
  20. data/lib/selenium/devtools/{v100 → v103}/fetch.rb +2 -2
  21. data/lib/selenium/devtools/{v100 → v103}/headless_experimental.rb +2 -2
  22. data/lib/selenium/devtools/{v100 → v103}/heap_profiler.rb +8 -6
  23. data/lib/selenium/devtools/{v100 → v103}/indexed_db.rb +2 -2
  24. data/lib/selenium/devtools/{v100 → v103}/input.rb +2 -2
  25. data/lib/selenium/devtools/{v100 → v103}/inspector.rb +2 -2
  26. data/lib/selenium/devtools/{v100 → v103}/io.rb +2 -2
  27. data/lib/selenium/devtools/{v100 → v103}/layer_tree.rb +2 -2
  28. data/lib/selenium/devtools/{v100 → v103}/log.rb +2 -2
  29. data/lib/selenium/devtools/{v100 → v103}/media.rb +2 -2
  30. data/lib/selenium/devtools/{v100 → v103}/memory.rb +2 -2
  31. data/lib/selenium/devtools/{v100 → v103}/network.rb +2 -2
  32. data/lib/selenium/devtools/{v100 → v103}/overlay.rb +2 -2
  33. data/lib/selenium/devtools/{v100 → v103}/page.rb +4 -4
  34. data/lib/selenium/devtools/{v100 → v103}/performance.rb +2 -2
  35. data/lib/selenium/devtools/{v100 → v103}/performance_timeline.rb +2 -2
  36. data/lib/selenium/devtools/{v100 → v103}/profiler.rb +2 -2
  37. data/lib/selenium/devtools/{v100 → v103}/runtime.rb +8 -6
  38. data/lib/selenium/devtools/{v100 → v103}/schema.rb +2 -2
  39. data/lib/selenium/devtools/{v100 → v103}/security.rb +2 -2
  40. data/lib/selenium/devtools/{v100 → v103}/service_worker.rb +2 -2
  41. data/lib/selenium/devtools/{v100 → v103}/storage.rb +2 -2
  42. data/lib/selenium/devtools/{v100 → v103}/system_info.rb +2 -2
  43. data/lib/selenium/devtools/{v100 → v103}/target.rb +2 -2
  44. data/lib/selenium/devtools/{v100 → v103}/tethering.rb +2 -2
  45. data/lib/selenium/devtools/{v100 → v103}/tracing.rb +2 -2
  46. data/lib/selenium/devtools/{v100 → v103}/web_audio.rb +2 -2
  47. data/lib/selenium/devtools/{v100 → v103}/web_authn.rb +5 -4
  48. data/lib/selenium/devtools/v103.rb +1 -0
  49. data/lib/selenium/devtools/version.rb +1 -1
  50. data/selenium-devtools.gemspec +0 -2
  51. metadata +51 -65
  52. data/lib/selenium/devtools/v100.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df391f70e9573a6684794be875adb6ca1f5f2a9bcccc8747f1d2d418c34d500f
4
- data.tar.gz: 2e308489940a91339ee813dbce120b9af89b6c03d0c69ad44382419dc83e8fa1
3
+ metadata.gz: 77b88b46727d1073f37494ef5c7d99fb89f8e955c9a96376a05b75bae0fc978d
4
+ data.tar.gz: bd86905865f465ccd5db59efd3ced514d7191da1104969173988c1f36dbe184a
5
5
  SHA512:
6
- metadata.gz: 322fcf254549fd55e6dd9a79350cb71208ab10d750d77fc4613bcc2a716d93be642b28fd1f2e8123fd1731d63902e50c596faba67a50cceb229fee37a4c0ae3c
7
- data.tar.gz: a0d01afdd95ad41f743cc3d1ffa7b3c07c078796e6e3b8af27da6ad23d680c06ac6775227402bba473870649a889ea2f321c4fca75d249241de5f37007539992
6
+ metadata.gz: 9c7a58df9c5dc75732d1f3cb9ddbbde6eac89eb174c796b0395eaa4d21a88096966c3b3dc190d756c347c50a2f4dda29d240ee3ebfee49727e411690c70f38b1
7
+ data.tar.gz: fb281dae14c497eabc51e05eeae9f04d122d3651c23c769d99574da377f0d8d77bdb1fd873defb256957660e564b6fcbaa6caa926147382fbc1c95ab249349f2
@@ -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 V100
23
+ module V103
24
24
  class Accessibility
25
25
  EVENTS = {
26
26
  load_complete: 'loadComplete',
@@ -52,10 +52,9 @@ module Selenium
52
52
  fetchRelatives: fetch_relatives)
53
53
  end
54
54
 
55
- def get_full_ax_tree(depth: nil, max_depth: nil, frame_id: nil)
55
+ def get_full_ax_tree(depth: nil, frame_id: nil)
56
56
  @devtools.send_cmd('Accessibility.getFullAXTree',
57
57
  depth: depth,
58
- max_depth: max_depth,
59
58
  frameId: frame_id)
60
59
  end
61
60
 
@@ -87,6 +86,6 @@ module Selenium
87
86
  end
88
87
 
89
88
  end # Accessibility
90
- end # V100
89
+ end # V103
91
90
  end # DevTools
92
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 V100
23
+ module V103
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 # V100
92
+ end # V103
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 V100
23
+ module V103
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 # V100
60
+ end # V103
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 V100
23
+ module V103
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 # V100
61
+ end # V103
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 V100
23
+ module V103
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 # V100
133
+ end # V103
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 V100
23
+ module V103
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 # V100
67
+ end # V103
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 V100
23
+ module V103
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 # V100
69
+ end # V103
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 V100
23
+ module V103
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 # V100
51
+ end # V103
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 V100
23
+ module V103
24
24
  class CSS
25
25
  EVENTS = {
26
26
  fonts_updated: 'fontsUpdated',
@@ -104,6 +104,11 @@ module Selenium
104
104
  styleSheetId: style_sheet_id)
105
105
  end
106
106
 
107
+ def get_layers_for_node(node_id:)
108
+ @devtools.send_cmd('CSS.getLayersForNode',
109
+ nodeId: node_id)
110
+ end
111
+
107
112
  def track_computed_style_updates(properties_to_track:)
108
113
  @devtools.send_cmd('CSS.trackComputedStyleUpdates',
109
114
  propertiesToTrack: properties_to_track)
@@ -184,6 +189,6 @@ module Selenium
184
189
  end
185
190
 
186
191
  end # CSS
187
- end # V100
192
+ end # V103
188
193
  end # DevTools
189
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 V100
23
+ module V103
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 # V100
58
+ end # V103
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 V100
23
+ module V103
24
24
  class Debugger
25
25
  EVENTS = {
26
26
  breakpoint_resolved: 'breakpointResolved',
@@ -215,6 +215,6 @@ module Selenium
215
215
  end
216
216
 
217
217
  end # Debugger
218
- end # V100
218
+ end # V103
219
219
  end # DevTools
220
220
  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 V100
23
+ module V103
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 # V100
47
+ end # V103
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 V100
23
+ module V103
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 # V100
333
+ end # V103
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 V100
23
+ module V103
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 # V100
92
+ end # V103
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 V100
23
+ module V103
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 # V100
61
+ end # V103
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 V100
23
+ module V103
24
24
  class DOMStorage
25
25
  EVENTS = {
26
26
  dom_storage_item_added: 'domStorageItemAdded',
@@ -69,7 +69,12 @@ module Selenium
69
69
  value: value)
70
70
  end
71
71
 
72
+ def get_storage_key_for_frame(frame_id:)
73
+ @devtools.send_cmd('DOMStorage.getStorageKeyForFrame',
74
+ frameId: frame_id)
75
+ end
76
+
72
77
  end # DOMStorage
73
- end # V100
78
+ end # V103
74
79
  end # DevTools
75
80
  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 V100
23
+ module V103
24
24
  class Emulation
25
25
  EVENTS = {
26
26
  virtual_time_budget_expired: 'virtualTimeBudgetExpired',
@@ -190,7 +190,12 @@ module Selenium
190
190
  userAgentMetadata: user_agent_metadata)
191
191
  end
192
192
 
193
+ def set_automation_override(enabled:)
194
+ @devtools.send_cmd('Emulation.setAutomationOverride',
195
+ enabled: enabled)
196
+ end
197
+
193
198
  end # Emulation
194
- end # V100
199
+ end # V103
195
200
  end # DevTools
196
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 V100
23
+ module V103
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 # V100
46
+ end # V103
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 V100
23
+ module V103
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 # V100
101
+ end # V103
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 V100
23
+ module V103
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 # V100
55
+ end # V103
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 V100
23
+ module V103
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 # V100
105
+ end # V103
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 V100
23
+ module V103
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 # V100
94
+ end # V103
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 V100
23
+ module V103
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 # V100
166
+ end # V103
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 V100
23
+ module V103
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 # V100
49
+ end # V103
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 V100
23
+ module V103
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 # V100
53
+ end # V103
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 V100
23
+ module V103
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 # V100
89
+ end # V103
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 V100
23
+ module V103
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 # V100
60
+ end # V103
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 V100
23
+ module V103
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 # V100
51
+ end # V103
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 V100
23
+ module V103
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 # V100
80
+ end # V103
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 V100
23
+ module V103
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 # V100
262
+ end # V103
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 V100
23
+ module V103
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 # V100
200
+ end # V103
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 V100
23
+ module V103
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 # V100
392
+ end # V103
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 V100
23
+ module V103
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 # V100
57
+ end # V103
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 V100
23
+ module V103
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 # V100
44
+ end # V103
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 V100
23
+ module V103
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 # V100
93
+ end # V103
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 V100
23
+ module V103
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 # V100
199
+ end # V103
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 V100
23
+ module V103
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 # V100
40
+ end # V103
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 V100
23
+ module V103
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 # V100
65
+ end # V103
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 V100
23
+ module V103
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 # V100
110
+ end # V103
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 V100
23
+ module V103
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -113,6 +113,6 @@ module Selenium
113
113
  end
114
114
 
115
115
  end # Storage
116
- end # V100
116
+ end # V103
117
117
  end # DevTools
118
118
  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 V100
23
+ module V103
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 # V100
44
+ end # V103
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 V100
23
+ module V103
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 # V100
144
+ end # V103
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 V100
23
+ module V103
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 # V100
49
+ end # V103
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 V100
23
+ module V103
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 # V100
73
+ end # V103
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 V100
23
+ module V103
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 # V100
64
+ end # V103
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 V100
23
+ module V103
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 # V100
95
+ end # V103
95
96
  end # DevTools
96
97
  end # Selenium
@@ -0,0 +1 @@
1
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v103/*", &method(:require))
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.102.0'
22
+ VERSION = '0.103.0'
23
23
  end # DevTools
24
24
  end # Selenium
@@ -39,6 +39,4 @@ Gem::Specification.new do |s|
39
39
  ] + Dir['lib/selenium/devtools/**/*']
40
40
 
41
41
  s.require_paths = ["lib"]
42
-
43
- s.add_runtime_dependency 'websocket', ['~> 1.0']
44
42
  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.102.0
4
+ version: 0.103.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
@@ -10,22 +10,8 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-05-24 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: websocket
17
- requirement: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: '1.0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - "~>"
27
- - !ruby/object:Gem::Version
28
- version: '1.0'
13
+ date: 2022-06-22 00:00:00.000000000 Z
14
+ dependencies: []
29
15
  description: |2
30
16
  Selenium WebDriver now supports limited DevTools interactions.
31
17
  This project allows users to specify desired versioning.
@@ -42,53 +28,6 @@ files:
42
28
  - NOTICE
43
29
  - lib/selenium/devtools.rb
44
30
  - lib/selenium/devtools/README.md
45
- - lib/selenium/devtools/v100.rb
46
- - lib/selenium/devtools/v100/accessibility.rb
47
- - lib/selenium/devtools/v100/animation.rb
48
- - lib/selenium/devtools/v100/audits.rb
49
- - lib/selenium/devtools/v100/background_service.rb
50
- - lib/selenium/devtools/v100/browser.rb
51
- - lib/selenium/devtools/v100/cache_storage.rb
52
- - lib/selenium/devtools/v100/cast.rb
53
- - lib/selenium/devtools/v100/console.rb
54
- - lib/selenium/devtools/v100/css.rb
55
- - lib/selenium/devtools/v100/database.rb
56
- - lib/selenium/devtools/v100/debugger.rb
57
- - lib/selenium/devtools/v100/device_orientation.rb
58
- - lib/selenium/devtools/v100/dom.rb
59
- - lib/selenium/devtools/v100/dom_debugger.rb
60
- - lib/selenium/devtools/v100/dom_snapshot.rb
61
- - lib/selenium/devtools/v100/dom_storage.rb
62
- - lib/selenium/devtools/v100/emulation.rb
63
- - lib/selenium/devtools/v100/event_breakpoints.rb
64
- - lib/selenium/devtools/v100/fetch.rb
65
- - lib/selenium/devtools/v100/headless_experimental.rb
66
- - lib/selenium/devtools/v100/heap_profiler.rb
67
- - lib/selenium/devtools/v100/indexed_db.rb
68
- - lib/selenium/devtools/v100/input.rb
69
- - lib/selenium/devtools/v100/inspector.rb
70
- - lib/selenium/devtools/v100/io.rb
71
- - lib/selenium/devtools/v100/layer_tree.rb
72
- - lib/selenium/devtools/v100/log.rb
73
- - lib/selenium/devtools/v100/media.rb
74
- - lib/selenium/devtools/v100/memory.rb
75
- - lib/selenium/devtools/v100/network.rb
76
- - lib/selenium/devtools/v100/overlay.rb
77
- - lib/selenium/devtools/v100/page.rb
78
- - lib/selenium/devtools/v100/performance.rb
79
- - lib/selenium/devtools/v100/performance_timeline.rb
80
- - lib/selenium/devtools/v100/profiler.rb
81
- - lib/selenium/devtools/v100/runtime.rb
82
- - lib/selenium/devtools/v100/schema.rb
83
- - lib/selenium/devtools/v100/security.rb
84
- - lib/selenium/devtools/v100/service_worker.rb
85
- - lib/selenium/devtools/v100/storage.rb
86
- - lib/selenium/devtools/v100/system_info.rb
87
- - lib/selenium/devtools/v100/target.rb
88
- - lib/selenium/devtools/v100/tethering.rb
89
- - lib/selenium/devtools/v100/tracing.rb
90
- - lib/selenium/devtools/v100/web_audio.rb
91
- - lib/selenium/devtools/v100/web_authn.rb
92
31
  - lib/selenium/devtools/v101.rb
93
32
  - lib/selenium/devtools/v101/accessibility.rb
94
33
  - lib/selenium/devtools/v101/animation.rb
@@ -183,6 +122,53 @@ files:
183
122
  - lib/selenium/devtools/v102/tracing.rb
184
123
  - lib/selenium/devtools/v102/web_audio.rb
185
124
  - lib/selenium/devtools/v102/web_authn.rb
125
+ - lib/selenium/devtools/v103.rb
126
+ - lib/selenium/devtools/v103/accessibility.rb
127
+ - lib/selenium/devtools/v103/animation.rb
128
+ - lib/selenium/devtools/v103/audits.rb
129
+ - lib/selenium/devtools/v103/background_service.rb
130
+ - lib/selenium/devtools/v103/browser.rb
131
+ - lib/selenium/devtools/v103/cache_storage.rb
132
+ - lib/selenium/devtools/v103/cast.rb
133
+ - lib/selenium/devtools/v103/console.rb
134
+ - lib/selenium/devtools/v103/css.rb
135
+ - lib/selenium/devtools/v103/database.rb
136
+ - lib/selenium/devtools/v103/debugger.rb
137
+ - lib/selenium/devtools/v103/device_orientation.rb
138
+ - lib/selenium/devtools/v103/dom.rb
139
+ - lib/selenium/devtools/v103/dom_debugger.rb
140
+ - lib/selenium/devtools/v103/dom_snapshot.rb
141
+ - lib/selenium/devtools/v103/dom_storage.rb
142
+ - lib/selenium/devtools/v103/emulation.rb
143
+ - lib/selenium/devtools/v103/event_breakpoints.rb
144
+ - lib/selenium/devtools/v103/fetch.rb
145
+ - lib/selenium/devtools/v103/headless_experimental.rb
146
+ - lib/selenium/devtools/v103/heap_profiler.rb
147
+ - lib/selenium/devtools/v103/indexed_db.rb
148
+ - lib/selenium/devtools/v103/input.rb
149
+ - lib/selenium/devtools/v103/inspector.rb
150
+ - lib/selenium/devtools/v103/io.rb
151
+ - lib/selenium/devtools/v103/layer_tree.rb
152
+ - lib/selenium/devtools/v103/log.rb
153
+ - lib/selenium/devtools/v103/media.rb
154
+ - lib/selenium/devtools/v103/memory.rb
155
+ - lib/selenium/devtools/v103/network.rb
156
+ - lib/selenium/devtools/v103/overlay.rb
157
+ - lib/selenium/devtools/v103/page.rb
158
+ - lib/selenium/devtools/v103/performance.rb
159
+ - lib/selenium/devtools/v103/performance_timeline.rb
160
+ - lib/selenium/devtools/v103/profiler.rb
161
+ - lib/selenium/devtools/v103/runtime.rb
162
+ - lib/selenium/devtools/v103/schema.rb
163
+ - lib/selenium/devtools/v103/security.rb
164
+ - lib/selenium/devtools/v103/service_worker.rb
165
+ - lib/selenium/devtools/v103/storage.rb
166
+ - lib/selenium/devtools/v103/system_info.rb
167
+ - lib/selenium/devtools/v103/target.rb
168
+ - lib/selenium/devtools/v103/tethering.rb
169
+ - lib/selenium/devtools/v103/tracing.rb
170
+ - lib/selenium/devtools/v103/web_audio.rb
171
+ - lib/selenium/devtools/v103/web_authn.rb
186
172
  - lib/selenium/devtools/v85.rb
187
173
  - lib/selenium/devtools/v85/accessibility.rb
188
174
  - lib/selenium/devtools/v85/animation.rb
@@ -253,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
239
  - !ruby/object:Gem::Version
254
240
  version: 1.3.1
255
241
  requirements: []
256
- rubygems_version: 3.0.3
242
+ rubygems_version: 3.0.3.1
257
243
  signing_key:
258
244
  specification_version: 4
259
245
  summary: DevTools Code for use with Selenium
@@ -1 +0,0 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v100/*", &method(:require))