selenium-devtools 0.89.0 → 0.91.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/v89/accessibility.rb +8 -2
  3. data/lib/selenium/devtools/v89/debugger.rb +0 -7
  4. data/lib/selenium/devtools/v89/network.rb +1 -0
  5. data/lib/selenium/devtools/v89/performance_timeline.rb +46 -0
  6. data/lib/selenium/devtools/v89/runtime.rb +3 -2
  7. data/lib/selenium/devtools/v89/tracing.rb +3 -2
  8. data/lib/selenium/devtools/v90.rb +1 -0
  9. data/lib/selenium/devtools/{v87 → v90}/accessibility.rb +10 -4
  10. data/lib/selenium/devtools/{v86 → v90}/animation.rb +2 -2
  11. data/lib/selenium/devtools/{v87 → v90}/application_cache.rb +2 -2
  12. data/lib/selenium/devtools/{v86 → v90}/audits.rb +7 -2
  13. data/lib/selenium/devtools/{v86 → v90}/background_service.rb +2 -2
  14. data/lib/selenium/devtools/{v86 → v90}/browser.rb +7 -2
  15. data/lib/selenium/devtools/{v86 → v90}/cache_storage.rb +2 -2
  16. data/lib/selenium/devtools/{v87 → v90}/cast.rb +2 -2
  17. data/lib/selenium/devtools/{v87 → v90}/console.rb +2 -2
  18. data/lib/selenium/devtools/{v86 → v90}/css.rb +2 -2
  19. data/lib/selenium/devtools/{v87 → v90}/database.rb +2 -2
  20. data/lib/selenium/devtools/{v86 → v90}/debugger.rb +2 -9
  21. data/lib/selenium/devtools/{v87 → v90}/device_orientation.rb +2 -2
  22. data/lib/selenium/devtools/{v87 → v90}/dom.rb +2 -2
  23. data/lib/selenium/devtools/{v86 → v90}/dom_debugger.rb +7 -2
  24. data/lib/selenium/devtools/{v86 → v90}/dom_snapshot.rb +2 -2
  25. data/lib/selenium/devtools/{v86 → v90}/dom_storage.rb +2 -2
  26. data/lib/selenium/devtools/{v87 → v90}/emulation.rb +7 -2
  27. data/lib/selenium/devtools/{v87 → v90}/fetch.rb +2 -2
  28. data/lib/selenium/devtools/{v87 → v90}/headless_experimental.rb +2 -2
  29. data/lib/selenium/devtools/{v87 → v90}/heap_profiler.rb +2 -2
  30. data/lib/selenium/devtools/{v86 → v90}/indexed_db.rb +2 -2
  31. data/lib/selenium/devtools/{v86 → v90}/input.rb +8 -3
  32. data/lib/selenium/devtools/{v87 → v90}/inspector.rb +2 -2
  33. data/lib/selenium/devtools/{v86 → v90}/io.rb +2 -2
  34. data/lib/selenium/devtools/{v86 → v90}/layer_tree.rb +2 -2
  35. data/lib/selenium/devtools/{v87 → v90}/log.rb +2 -2
  36. data/lib/selenium/devtools/{v87 → v90}/media.rb +2 -2
  37. data/lib/selenium/devtools/{v86 → v90}/memory.rb +2 -2
  38. data/lib/selenium/devtools/{v87 → v90}/network.rb +13 -6
  39. data/lib/selenium/devtools/{v86 → v90}/overlay.rb +12 -2
  40. data/lib/selenium/devtools/{v86 → v90}/page.rb +11 -4
  41. data/lib/selenium/devtools/{v86 → v90}/performance.rb +2 -2
  42. data/lib/selenium/devtools/v90/performance_timeline.rb +46 -0
  43. data/lib/selenium/devtools/{v87 → v90}/profiler.rb +2 -2
  44. data/lib/selenium/devtools/{v87 → v90}/runtime.rb +8 -6
  45. data/lib/selenium/devtools/{v86 → v90}/schema.rb +2 -2
  46. data/lib/selenium/devtools/{v86 → v90}/security.rb +2 -2
  47. data/lib/selenium/devtools/{v86 → v90}/service_worker.rb +2 -2
  48. data/lib/selenium/devtools/{v86 → v90}/storage.rb +12 -2
  49. data/lib/selenium/devtools/{v86 → v90}/system_info.rb +2 -2
  50. data/lib/selenium/devtools/{v86 → v90}/target.rb +2 -2
  51. data/lib/selenium/devtools/{v86 → v90}/tethering.rb +2 -2
  52. data/lib/selenium/devtools/{v86 → v90}/tracing.rb +8 -6
  53. data/lib/selenium/devtools/{v86 → v90}/web_audio.rb +2 -2
  54. data/lib/selenium/devtools/{v86 → v90}/web_authn.rb +2 -2
  55. data/lib/selenium/devtools/v91.rb +1 -0
  56. data/lib/selenium/devtools/{v86 → v91}/accessibility.rb +19 -4
  57. data/lib/selenium/devtools/{v87 → v91}/animation.rb +2 -2
  58. data/lib/selenium/devtools/{v86 → v91}/application_cache.rb +2 -2
  59. data/lib/selenium/devtools/{v87 → v91}/audits.rb +7 -2
  60. data/lib/selenium/devtools/{v87 → v91}/background_service.rb +2 -2
  61. data/lib/selenium/devtools/{v87 → v91}/browser.rb +20 -4
  62. data/lib/selenium/devtools/{v87 → v91}/cache_storage.rb +2 -2
  63. data/lib/selenium/devtools/{v86 → v91}/cast.rb +2 -2
  64. data/lib/selenium/devtools/{v86 → v91}/console.rb +2 -2
  65. data/lib/selenium/devtools/{v87 → v91}/css.rb +2 -2
  66. data/lib/selenium/devtools/{v86 → v91}/database.rb +2 -2
  67. data/lib/selenium/devtools/{v87 → v91}/debugger.rb +2 -9
  68. data/lib/selenium/devtools/{v86 → v91}/device_orientation.rb +2 -2
  69. data/lib/selenium/devtools/{v86 → v91}/dom.rb +2 -2
  70. data/lib/selenium/devtools/{v87 → v91}/dom_debugger.rb +7 -2
  71. data/lib/selenium/devtools/{v87 → v91}/dom_snapshot.rb +2 -2
  72. data/lib/selenium/devtools/{v87 → v91}/dom_storage.rb +2 -2
  73. data/lib/selenium/devtools/{v86 → v91}/emulation.rb +7 -2
  74. data/lib/selenium/devtools/{v86 → v91}/fetch.rb +2 -2
  75. data/lib/selenium/devtools/{v86 → v91}/headless_experimental.rb +2 -2
  76. data/lib/selenium/devtools/{v86 → v91}/heap_profiler.rb +2 -2
  77. data/lib/selenium/devtools/{v87 → v91}/indexed_db.rb +2 -2
  78. data/lib/selenium/devtools/{v87 → v91}/input.rb +25 -3
  79. data/lib/selenium/devtools/{v86 → v91}/inspector.rb +2 -2
  80. data/lib/selenium/devtools/{v87 → v91}/io.rb +2 -2
  81. data/lib/selenium/devtools/{v87 → v91}/layer_tree.rb +2 -2
  82. data/lib/selenium/devtools/{v86 → v91}/log.rb +2 -2
  83. data/lib/selenium/devtools/{v86 → v91}/media.rb +2 -2
  84. data/lib/selenium/devtools/{v87 → v91}/memory.rb +2 -2
  85. data/lib/selenium/devtools/{v86 → v91}/network.rb +32 -4
  86. data/lib/selenium/devtools/{v87 → v91}/overlay.rb +17 -2
  87. data/lib/selenium/devtools/{v87 → v91}/page.rb +16 -4
  88. data/lib/selenium/devtools/{v87 → v91}/performance.rb +2 -2
  89. data/lib/selenium/devtools/v91/performance_timeline.rb +46 -0
  90. data/lib/selenium/devtools/{v86 → v91}/profiler.rb +14 -2
  91. data/lib/selenium/devtools/{v86 → v91}/runtime.rb +8 -6
  92. data/lib/selenium/devtools/{v87 → v91}/schema.rb +2 -2
  93. data/lib/selenium/devtools/{v87 → v91}/security.rb +2 -2
  94. data/lib/selenium/devtools/{v87 → v91}/service_worker.rb +2 -2
  95. data/lib/selenium/devtools/{v87 → v91}/storage.rb +17 -2
  96. data/lib/selenium/devtools/{v87 → v91}/system_info.rb +2 -2
  97. data/lib/selenium/devtools/{v87 → v91}/target.rb +2 -2
  98. data/lib/selenium/devtools/{v87 → v91}/tethering.rb +2 -2
  99. data/lib/selenium/devtools/{v87 → v91}/tracing.rb +9 -6
  100. data/lib/selenium/devtools/{v87 → v91}/web_audio.rb +2 -2
  101. data/lib/selenium/devtools/{v87 → v91}/web_authn.rb +2 -2
  102. data/lib/selenium/devtools/version.rb +1 -1
  103. metadata +97 -94
  104. data/lib/selenium/devtools/v86.rb +0 -1
  105. data/lib/selenium/devtools/v87.rb +0 -1
@@ -20,8 +20,12 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V87
23
+ module V91
24
24
  class Browser
25
+ EVENTS = {
26
+ download_will_begin: 'downloadWillBegin',
27
+ download_progress: 'downloadProgress',
28
+ }.freeze
25
29
 
26
30
  def initialize(devtools)
27
31
  @devtools = devtools
@@ -52,11 +56,18 @@ module Selenium
52
56
  browserContextId: browser_context_id)
53
57
  end
54
58
 
55
- def set_download_behavior(behavior:, browser_context_id: nil, download_path: nil)
59
+ def set_download_behavior(behavior:, browser_context_id: nil, download_path: nil, events_enabled: nil)
56
60
  @devtools.send_cmd('Browser.setDownloadBehavior',
57
61
  behavior: behavior,
58
62
  browserContextId: browser_context_id,
59
- downloadPath: download_path)
63
+ downloadPath: download_path,
64
+ eventsEnabled: events_enabled)
65
+ end
66
+
67
+ def cancel_download(guid:, browser_context_id: nil)
68
+ @devtools.send_cmd('Browser.cancelDownload',
69
+ guid: guid,
70
+ browserContextId: browser_context_id)
60
71
  end
61
72
 
62
73
  def close
@@ -113,7 +124,12 @@ module Selenium
113
124
  image: image)
114
125
  end
115
126
 
127
+ def execute_browser_command(command_id:)
128
+ @devtools.send_cmd('Browser.executeBrowserCommand',
129
+ commandId: command_id)
130
+ end
131
+
116
132
  end # Browser
117
- end # V87
133
+ end # V91
118
134
  end # DevTools
119
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 V87
23
+ module V91
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 # V87
67
+ end # V91
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 V86
23
+ module V91
24
24
  class Cast
25
25
  EVENTS = {
26
26
  sinks_updated: 'sinksUpdated',
@@ -61,6 +61,6 @@ module Selenium
61
61
  end
62
62
 
63
63
  end # Cast
64
- end # V86
64
+ end # V91
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 V86
23
+ module V91
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 # V86
51
+ end # V91
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 V87
23
+ module V91
24
24
  class CSS
25
25
  EVENTS = {
26
26
  fonts_updated: 'fontsUpdated',
@@ -170,6 +170,6 @@ module Selenium
170
170
  end
171
171
 
172
172
  end # CSS
173
- end # V87
173
+ end # V91
174
174
  end # DevTools
175
175
  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 V86
23
+ module V91
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 # V86
58
+ end # V91
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 V87
23
+ module V91
24
24
  class Debugger
25
25
  EVENTS = {
26
26
  breakpoint_resolved: 'breakpointResolved',
@@ -67,13 +67,6 @@ module Selenium
67
67
  timeout: timeout)
68
68
  end
69
69
 
70
- def execute_wasm_evaluator(call_frame_id:, evaluator:, timeout: nil)
71
- @devtools.send_cmd('Debugger.executeWasmEvaluator',
72
- callFrameId: call_frame_id,
73
- evaluator: evaluator,
74
- timeout: timeout)
75
- end
76
-
77
70
  def get_possible_breakpoints(start:, _end: nil, restrict_to_function: nil)
78
71
  @devtools.send_cmd('Debugger.getPossibleBreakpoints',
79
72
  start: start,
@@ -222,6 +215,6 @@ module Selenium
222
215
  end
223
216
 
224
217
  end # Debugger
225
- end # V87
218
+ end # V91
226
219
  end # DevTools
227
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 V86
23
+ module V91
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 # V86
47
+ end # V91
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 V86
23
+ module V91
24
24
  class DOM
25
25
  EVENTS = {
26
26
  attribute_modified: 'attributeModified',
@@ -318,6 +318,6 @@ module Selenium
318
318
  end
319
319
 
320
320
  end # DOM
321
- end # V86
321
+ end # V91
322
322
  end # DevTools
323
323
  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 V87
23
+ module V91
24
24
  class DOMDebugger
25
25
 
26
26
  def initialize(devtools)
@@ -61,6 +61,11 @@ module Selenium
61
61
  url: url)
62
62
  end
63
63
 
64
+ def set_break_on_csp_violation(violation_types:)
65
+ @devtools.send_cmd('DOMDebugger.setBreakOnCSPViolation',
66
+ violationTypes: violation_types)
67
+ end
68
+
64
69
  def set_dom_breakpoint(node_id:, type:)
65
70
  @devtools.send_cmd('DOMDebugger.setDOMBreakpoint',
66
71
  nodeId: node_id,
@@ -84,6 +89,6 @@ module Selenium
84
89
  end
85
90
 
86
91
  end # DOMDebugger
87
- end # V87
92
+ end # V91
88
93
  end # DevTools
89
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 V87
23
+ module V91
24
24
  class DOMSnapshot
25
25
 
26
26
  def initialize(devtools)
@@ -56,6 +56,6 @@ module Selenium
56
56
  end
57
57
 
58
58
  end # DOMSnapshot
59
- end # V87
59
+ end # V91
60
60
  end # DevTools
61
61
  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 V87
23
+ module V91
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 # V87
73
+ end # V91
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 V86
23
+ module V91
24
24
  class Emulation
25
25
  EVENTS = {
26
26
  virtual_time_budget_expired: 'virtualTimeBudgetExpired',
@@ -173,6 +173,11 @@ module Selenium
173
173
  height: height)
174
174
  end
175
175
 
176
+ def set_disabled_image_types(image_types:)
177
+ @devtools.send_cmd('Emulation.setDisabledImageTypes',
178
+ imageTypes: image_types)
179
+ end
180
+
176
181
  def set_user_agent_override(user_agent:, accept_language: nil, platform: nil, user_agent_metadata: nil)
177
182
  @devtools.send_cmd('Emulation.setUserAgentOverride',
178
183
  userAgent: user_agent,
@@ -182,6 +187,6 @@ module Selenium
182
187
  end
183
188
 
184
189
  end # Emulation
185
- end # V86
190
+ end # V91
186
191
  end # DevTools
187
192
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V86
23
+ module V91
24
24
  class Fetch
25
25
  EVENTS = {
26
26
  request_paused: 'requestPaused',
@@ -88,6 +88,6 @@ module Selenium
88
88
  end
89
89
 
90
90
  end # Fetch
91
- end # V86
91
+ end # V91
92
92
  end # DevTools
93
93
  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 V86
23
+ module V91
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 # V86
55
+ end # V91
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 V86
23
+ module V91
24
24
  class HeapProfiler
25
25
  EVENTS = {
26
26
  add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
@@ -98,6 +98,6 @@ module Selenium
98
98
  end
99
99
 
100
100
  end # HeapProfiler
101
- end # V86
101
+ end # V91
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 V87
23
+ module V91
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 # V87
94
+ end # V91
95
95
  end # DevTools
96
96
  end # Selenium
@@ -20,8 +20,11 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V87
23
+ module V91
24
24
  class Input
25
+ EVENTS = {
26
+ drag_intercepted: 'dragIntercepted',
27
+ }.freeze
25
28
 
26
29
  def initialize(devtools)
27
30
  @devtools = devtools
@@ -32,6 +35,15 @@ module Selenium
32
35
  @devtools.callbacks["Input.#{event}"] << block
33
36
  end
34
37
 
38
+ def dispatch_drag_event(type:, x:, y:, data:, modifiers: nil)
39
+ @devtools.send_cmd('Input.dispatchDragEvent',
40
+ type: type,
41
+ x: x,
42
+ y: y,
43
+ data: data,
44
+ modifiers: modifiers)
45
+ end
46
+
35
47
  def dispatch_key_event(type:, modifiers: nil, timestamp: nil, text: nil, unmodified_text: nil, key_identifier: nil, code: nil, key: nil, windows_virtual_key_code: nil, native_virtual_key_code: nil, auto_repeat: nil, is_keypad: nil, is_system_key: nil, location: nil, commands: nil)
36
48
  @devtools.send_cmd('Input.dispatchKeyEvent',
37
49
  type: type,
@@ -56,7 +68,7 @@ module Selenium
56
68
  text: text)
57
69
  end
58
70
 
59
- def dispatch_mouse_event(type:, x:, y:, modifiers: nil, timestamp: nil, button: nil, buttons: nil, click_count: nil, delta_x: nil, delta_y: nil, pointer_type: nil)
71
+ def dispatch_mouse_event(type:, x:, y:, modifiers: nil, timestamp: nil, button: nil, buttons: nil, click_count: nil, force: nil, tangential_pressure: nil, tilt_x: nil, tilt_y: nil, twist: nil, delta_x: nil, delta_y: nil, pointer_type: nil)
60
72
  @devtools.send_cmd('Input.dispatchMouseEvent',
61
73
  type: type,
62
74
  x: x,
@@ -66,6 +78,11 @@ module Selenium
66
78
  button: button,
67
79
  buttons: buttons,
68
80
  clickCount: click_count,
81
+ force: force,
82
+ tangentialPressure: tangential_pressure,
83
+ tiltX: tilt_x,
84
+ tiltY: tilt_y,
85
+ twist: twist,
69
86
  deltaX: delta_x,
70
87
  deltaY: delta_y,
71
88
  pointerType: pointer_type)
@@ -97,6 +114,11 @@ module Selenium
97
114
  ignore: ignore)
98
115
  end
99
116
 
117
+ def set_intercept_drags(enabled:)
118
+ @devtools.send_cmd('Input.setInterceptDrags',
119
+ enabled: enabled)
120
+ end
121
+
100
122
  def synthesize_pinch_gesture(x:, y:, scale_factor:, relative_speed: nil, gesture_source_type: nil)
101
123
  @devtools.send_cmd('Input.synthesizePinchGesture',
102
124
  x: x,
@@ -132,6 +154,6 @@ module Selenium
132
154
  end
133
155
 
134
156
  end # Input
135
- end # V87
157
+ end # V91
136
158
  end # DevTools
137
159
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V86
23
+ module V91
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 # V86
49
+ end # V91
50
50
  end # DevTools
51
51
  end # Selenium