selenium-devtools 0.0.1.alpha → 0.0.2.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/v84.rb +1 -0
  3. data/lib/selenium/devtools/v84/accessibility.rb +56 -0
  4. data/lib/selenium/devtools/v84/animation.rb +92 -0
  5. data/lib/selenium/devtools/v84/application_cache.rb +58 -0
  6. data/lib/selenium/devtools/v84/audits.rb +55 -0
  7. data/lib/selenium/devtools/v84/background_service.rb +61 -0
  8. data/lib/selenium/devtools/v84/browser.rb +117 -0
  9. data/lib/selenium/devtools/v84/cache_storage.rb +67 -0
  10. data/lib/selenium/devtools/v84/cast.rb +64 -0
  11. data/lib/selenium/devtools/v84/console.rb +51 -0
  12. data/lib/selenium/devtools/v84/css.rb +159 -0
  13. data/lib/selenium/devtools/v84/database.rb +58 -0
  14. data/lib/selenium/devtools/v84/debugger.rb +223 -0
  15. data/lib/selenium/devtools/v84/device_orientation.rb +47 -0
  16. data/lib/selenium/devtools/v84/dom.rb +314 -0
  17. data/lib/selenium/devtools/v84/dom_debugger.rb +87 -0
  18. data/lib/selenium/devtools/v84/dom_snapshot.rb +59 -0
  19. data/lib/selenium/devtools/v84/dom_storage.rb +73 -0
  20. data/lib/selenium/devtools/v84/emulation.rb +174 -0
  21. data/lib/selenium/devtools/v84/fetch.rb +91 -0
  22. data/lib/selenium/devtools/v84/headless_experimental.rb +55 -0
  23. data/lib/selenium/devtools/v84/heap_profiler.rb +101 -0
  24. data/lib/selenium/devtools/v84/indexed_db.rb +94 -0
  25. data/lib/selenium/devtools/v84/input.rb +134 -0
  26. data/lib/selenium/devtools/v84/inspector.rb +49 -0
  27. data/lib/selenium/devtools/v84/io.rb +53 -0
  28. data/lib/selenium/devtools/v84/layer_tree.rb +89 -0
  29. data/lib/selenium/devtools/v84/log.rb +60 -0
  30. data/lib/selenium/devtools/v84/media.rb +51 -0
  31. data/lib/selenium/devtools/v84/memory.rb +80 -0
  32. data/lib/selenium/devtools/v84/network.rb +222 -0
  33. data/lib/selenium/devtools/v84/overlay.rb +151 -0
  34. data/lib/selenium/devtools/v84/page.rb +368 -0
  35. data/lib/selenium/devtools/v84/performance.rb +57 -0
  36. data/lib/selenium/devtools/v84/profiler.rb +105 -0
  37. data/lib/selenium/devtools/v84/runtime.rb +187 -0
  38. data/lib/selenium/devtools/v84/schema.rb +40 -0
  39. data/lib/selenium/devtools/v84/security.rb +65 -0
  40. data/lib/selenium/devtools/v84/service_worker.rb +110 -0
  41. data/lib/selenium/devtools/v84/storage.rb +89 -0
  42. data/lib/selenium/devtools/v84/system_info.rb +44 -0
  43. data/lib/selenium/devtools/v84/target.rb +135 -0
  44. data/lib/selenium/devtools/v84/tethering.rb +49 -0
  45. data/lib/selenium/devtools/v84/tracing.rb +70 -0
  46. data/lib/selenium/devtools/v84/web_audio.rb +64 -0
  47. data/lib/selenium/devtools/v84/web_authn.rb +88 -0
  48. data/lib/selenium/devtools/v85.rb +1 -0
  49. data/lib/selenium/devtools/v85/accessibility.rb +56 -0
  50. data/lib/selenium/devtools/v85/animation.rb +92 -0
  51. data/lib/selenium/devtools/v85/application_cache.rb +58 -0
  52. data/lib/selenium/devtools/v85/audits.rb +55 -0
  53. data/lib/selenium/devtools/v85/background_service.rb +61 -0
  54. data/lib/selenium/devtools/v85/browser.rb +117 -0
  55. data/lib/selenium/devtools/v85/cache_storage.rb +67 -0
  56. data/lib/selenium/devtools/v85/cast.rb +64 -0
  57. data/lib/selenium/devtools/v85/console.rb +51 -0
  58. data/lib/selenium/devtools/v85/css.rb +159 -0
  59. data/lib/selenium/devtools/v85/database.rb +58 -0
  60. data/lib/selenium/devtools/v85/debugger.rb +223 -0
  61. data/lib/selenium/devtools/v85/device_orientation.rb +47 -0
  62. data/lib/selenium/devtools/v85/dom.rb +314 -0
  63. data/lib/selenium/devtools/v85/dom_debugger.rb +87 -0
  64. data/lib/selenium/devtools/v85/dom_snapshot.rb +59 -0
  65. data/lib/selenium/devtools/v85/dom_storage.rb +73 -0
  66. data/lib/selenium/devtools/v85/emulation.rb +174 -0
  67. data/lib/selenium/devtools/v85/fetch.rb +91 -0
  68. data/lib/selenium/devtools/v85/headless_experimental.rb +55 -0
  69. data/lib/selenium/devtools/v85/heap_profiler.rb +101 -0
  70. data/lib/selenium/devtools/v85/indexed_db.rb +94 -0
  71. data/lib/selenium/devtools/v85/input.rb +135 -0
  72. data/lib/selenium/devtools/v85/inspector.rb +49 -0
  73. data/lib/selenium/devtools/v85/io.rb +53 -0
  74. data/lib/selenium/devtools/v85/layer_tree.rb +89 -0
  75. data/lib/selenium/devtools/v85/log.rb +60 -0
  76. data/lib/selenium/devtools/v85/media.rb +51 -0
  77. data/lib/selenium/devtools/v85/memory.rb +80 -0
  78. data/lib/selenium/devtools/v85/network.rb +222 -0
  79. data/lib/selenium/devtools/v85/overlay.rb +152 -0
  80. data/lib/selenium/devtools/v85/page.rb +368 -0
  81. data/lib/selenium/devtools/v85/performance.rb +57 -0
  82. data/lib/selenium/devtools/v85/profiler.rb +105 -0
  83. data/lib/selenium/devtools/v85/runtime.rb +188 -0
  84. data/lib/selenium/devtools/v85/schema.rb +40 -0
  85. data/lib/selenium/devtools/v85/security.rb +65 -0
  86. data/lib/selenium/devtools/v85/service_worker.rb +110 -0
  87. data/lib/selenium/devtools/v85/storage.rb +89 -0
  88. data/lib/selenium/devtools/v85/system_info.rb +44 -0
  89. data/lib/selenium/devtools/v85/target.rb +137 -0
  90. data/lib/selenium/devtools/v85/tethering.rb +49 -0
  91. data/lib/selenium/devtools/v85/tracing.rb +70 -0
  92. data/lib/selenium/devtools/v85/web_audio.rb +64 -0
  93. data/lib/selenium/devtools/v85/web_authn.rb +88 -0
  94. data/lib/selenium/devtools/v86.rb +1 -0
  95. data/lib/selenium/devtools/v86/accessibility.rb +56 -0
  96. data/lib/selenium/devtools/v86/animation.rb +92 -0
  97. data/lib/selenium/devtools/v86/application_cache.rb +58 -0
  98. data/lib/selenium/devtools/v86/audits.rb +55 -0
  99. data/lib/selenium/devtools/v86/background_service.rb +61 -0
  100. data/lib/selenium/devtools/v86/browser.rb +117 -0
  101. data/lib/selenium/devtools/v86/cache_storage.rb +67 -0
  102. data/lib/selenium/devtools/v86/cast.rb +64 -0
  103. data/lib/selenium/devtools/v86/console.rb +51 -0
  104. data/lib/selenium/devtools/v86/css.rb +173 -0
  105. data/lib/selenium/devtools/v86/database.rb +58 -0
  106. data/lib/selenium/devtools/v86/debugger.rb +225 -0
  107. data/lib/selenium/devtools/v86/device_orientation.rb +47 -0
  108. data/lib/selenium/devtools/v86/dom.rb +321 -0
  109. data/lib/selenium/devtools/v86/dom_debugger.rb +87 -0
  110. data/lib/selenium/devtools/v86/dom_snapshot.rb +59 -0
  111. data/lib/selenium/devtools/v86/dom_storage.rb +73 -0
  112. data/lib/selenium/devtools/v86/emulation.rb +185 -0
  113. data/lib/selenium/devtools/v86/fetch.rb +91 -0
  114. data/lib/selenium/devtools/v86/headless_experimental.rb +55 -0
  115. data/lib/selenium/devtools/v86/heap_profiler.rb +101 -0
  116. data/lib/selenium/devtools/v86/indexed_db.rb +94 -0
  117. data/lib/selenium/devtools/v86/input.rb +135 -0
  118. data/lib/selenium/devtools/v86/inspector.rb +49 -0
  119. data/lib/selenium/devtools/v86/io.rb +53 -0
  120. data/lib/selenium/devtools/v86/layer_tree.rb +89 -0
  121. data/lib/selenium/devtools/v86/log.rb +60 -0
  122. data/lib/selenium/devtools/v86/media.rb +51 -0
  123. data/lib/selenium/devtools/v86/memory.rb +80 -0
  124. data/lib/selenium/devtools/v86/network.rb +227 -0
  125. data/lib/selenium/devtools/v86/overlay.rb +175 -0
  126. data/lib/selenium/devtools/v86/page.rb +368 -0
  127. data/lib/selenium/devtools/v86/performance.rb +57 -0
  128. data/lib/selenium/devtools/v86/profiler.rb +105 -0
  129. data/lib/selenium/devtools/v86/runtime.rb +188 -0
  130. data/lib/selenium/devtools/v86/schema.rb +40 -0
  131. data/lib/selenium/devtools/v86/security.rb +65 -0
  132. data/lib/selenium/devtools/v86/service_worker.rb +110 -0
  133. data/lib/selenium/devtools/v86/storage.rb +89 -0
  134. data/lib/selenium/devtools/v86/system_info.rb +44 -0
  135. data/lib/selenium/devtools/v86/target.rb +137 -0
  136. data/lib/selenium/devtools/v86/tethering.rb +49 -0
  137. data/lib/selenium/devtools/v86/tracing.rb +70 -0
  138. data/lib/selenium/devtools/v86/web_audio.rb +64 -0
  139. data/lib/selenium/devtools/v86/web_authn.rb +94 -0
  140. data/lib/selenium/devtools/v87.rb +1 -0
  141. data/lib/selenium/devtools/v87/accessibility.rb +65 -0
  142. data/lib/selenium/devtools/v87/animation.rb +92 -0
  143. data/lib/selenium/devtools/v87/application_cache.rb +58 -0
  144. data/lib/selenium/devtools/v87/audits.rb +55 -0
  145. data/lib/selenium/devtools/v87/background_service.rb +61 -0
  146. data/lib/selenium/devtools/v87/browser.rb +117 -0
  147. data/lib/selenium/devtools/v87/cache_storage.rb +67 -0
  148. data/lib/selenium/devtools/v87/cast.rb +64 -0
  149. data/lib/selenium/devtools/v87/console.rb +51 -0
  150. data/lib/selenium/devtools/v87/css.rb +173 -0
  151. data/lib/selenium/devtools/v87/database.rb +58 -0
  152. data/lib/selenium/devtools/v87/debugger.rb +225 -0
  153. data/lib/selenium/devtools/v87/device_orientation.rb +47 -0
  154. data/lib/selenium/devtools/v87/dom.rb +321 -0
  155. data/lib/selenium/devtools/v87/dom_debugger.rb +87 -0
  156. data/lib/selenium/devtools/v87/dom_snapshot.rb +59 -0
  157. data/lib/selenium/devtools/v87/dom_storage.rb +73 -0
  158. data/lib/selenium/devtools/v87/emulation.rb +185 -0
  159. data/lib/selenium/devtools/v87/fetch.rb +91 -0
  160. data/lib/selenium/devtools/v87/headless_experimental.rb +55 -0
  161. data/lib/selenium/devtools/v87/heap_profiler.rb +101 -0
  162. data/lib/selenium/devtools/v87/indexed_db.rb +94 -0
  163. data/lib/selenium/devtools/v87/input.rb +135 -0
  164. data/lib/selenium/devtools/v87/inspector.rb +49 -0
  165. data/lib/selenium/devtools/v87/io.rb +53 -0
  166. data/lib/selenium/devtools/v87/layer_tree.rb +89 -0
  167. data/lib/selenium/devtools/v87/log.rb +60 -0
  168. data/lib/selenium/devtools/v87/media.rb +51 -0
  169. data/lib/selenium/devtools/v87/memory.rb +80 -0
  170. data/lib/selenium/devtools/v87/network.rb +239 -0
  171. data/lib/selenium/devtools/v87/overlay.rb +175 -0
  172. data/lib/selenium/devtools/v87/page.rb +368 -0
  173. data/lib/selenium/devtools/v87/performance.rb +57 -0
  174. data/lib/selenium/devtools/v87/profiler.rb +117 -0
  175. data/lib/selenium/devtools/v87/runtime.rb +188 -0
  176. data/lib/selenium/devtools/v87/schema.rb +40 -0
  177. data/lib/selenium/devtools/v87/security.rb +65 -0
  178. data/lib/selenium/devtools/v87/service_worker.rb +110 -0
  179. data/lib/selenium/devtools/v87/storage.rb +89 -0
  180. data/lib/selenium/devtools/v87/system_info.rb +44 -0
  181. data/lib/selenium/devtools/v87/target.rb +137 -0
  182. data/lib/selenium/devtools/v87/tethering.rb +49 -0
  183. data/lib/selenium/devtools/v87/tracing.rb +70 -0
  184. data/lib/selenium/devtools/v87/web_audio.rb +64 -0
  185. data/lib/selenium/devtools/v87/web_authn.rb +94 -0
  186. data/lib/selenium/devtools/v88.rb +1 -1
  187. data/lib/selenium/devtools/v88/accessibility.rb +35 -43
  188. data/lib/selenium/devtools/v88/animation.rb +57 -65
  189. data/lib/selenium/devtools/v88/application_cache.rb +29 -37
  190. data/lib/selenium/devtools/v88/audits.rb +31 -39
  191. data/lib/selenium/devtools/v88/background_service.rb +32 -40
  192. data/lib/selenium/devtools/v88/browser.rb +100 -108
  193. data/lib/selenium/devtools/v88/cache_storage.rb +37 -45
  194. data/lib/selenium/devtools/v88/cast.rb +34 -42
  195. data/lib/selenium/devtools/v88/console.rb +27 -35
  196. data/lib/selenium/devtools/v88/css.rb +151 -159
  197. data/lib/selenium/devtools/v88/database.rb +29 -37
  198. data/lib/selenium/devtools/v88/debugger.rb +203 -211
  199. data/lib/selenium/devtools/v88/device_orientation.rb +20 -28
  200. data/lib/selenium/devtools/v88/dom.rb +299 -307
  201. data/lib/selenium/devtools/v88/dom_debugger.rb +53 -61
  202. data/lib/selenium/devtools/v88/dom_snapshot.rb +30 -38
  203. data/lib/selenium/devtools/v88/dom_storage.rb +42 -50
  204. data/lib/selenium/devtools/v88/emulation.rb +168 -176
  205. data/lib/selenium/devtools/v88/fetch.rb +58 -66
  206. data/lib/selenium/devtools/v88/headless_experimental.rb +31 -39
  207. data/lib/selenium/devtools/v88/heap_profiler.rb +77 -85
  208. data/lib/selenium/devtools/v88/indexed_db.rb +60 -68
  209. data/lib/selenium/devtools/v88/input.rb +106 -114
  210. data/lib/selenium/devtools/v88/inspector.rb +22 -30
  211. data/lib/selenium/devtools/v88/io.rb +29 -37
  212. data/lib/selenium/devtools/v88/layer_tree.rb +55 -63
  213. data/lib/selenium/devtools/v88/log.rb +30 -38
  214. data/lib/selenium/devtools/v88/media.rb +24 -32
  215. data/lib/selenium/devtools/v88/memory.rb +45 -53
  216. data/lib/selenium/devtools/v88/network.rb +217 -225
  217. data/lib/selenium/devtools/v88/overlay.rb +153 -161
  218. data/lib/selenium/devtools/v88/page.rb +346 -354
  219. data/lib/selenium/devtools/v88/performance.rb +28 -36
  220. data/lib/selenium/devtools/v88/profiler.rb +95 -103
  221. data/lib/selenium/devtools/v88/runtime.rb +167 -175
  222. data/lib/selenium/devtools/v88/schema.rb +14 -22
  223. data/lib/selenium/devtools/v88/security.rb +35 -43
  224. data/lib/selenium/devtools/v88/service_worker.rb +86 -94
  225. data/lib/selenium/devtools/v88/storage.rb +60 -68
  226. data/lib/selenium/devtools/v88/system_info.rb +17 -25
  227. data/lib/selenium/devtools/v88/target.rb +115 -123
  228. data/lib/selenium/devtools/v88/tethering.rb +22 -30
  229. data/lib/selenium/devtools/v88/tracing.rb +41 -49
  230. data/lib/selenium/devtools/v88/web_audio.rb +36 -44
  231. data/lib/selenium/devtools/v88/web_authn.rb +70 -78
  232. data/lib/selenium/devtools/version.rb +1 -1
  233. metadata +185 -1
@@ -19,47 +19,39 @@
19
19
 
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
- module WebDriver
23
- class DevTools
24
- def performance
25
- @performance ||= V88::Performance.new(self)
22
+ module DevTools
23
+ class Performance
24
+ EVENTS = {
25
+ metrics: 'metrics',
26
+ }.freeze
27
+
28
+ def initialize(devtools)
29
+ @devtools = devtools
26
30
  end
27
31
 
28
- module V88
29
- class Performance
30
- EVENTS = {
31
- metrics: 'metrics',
32
- }.freeze
33
-
34
- def initialize(devtools)
35
- @devtools = devtools
36
- end
37
-
38
- def on(event, &block)
39
- event = EVENTS[event] if event.is_a?(Symbol)
40
- @devtools.callbacks["Performance.#{event}"] << block
41
- end
32
+ def on(event, &block)
33
+ event = EVENTS[event] if event.is_a?(Symbol)
34
+ @devtools.callbacks["Performance.#{event}"] << block
35
+ end
42
36
 
43
- def disable
44
- @devtools.send_cmd('Performance.disable')
45
- end
37
+ def disable
38
+ @devtools.send_cmd('Performance.disable')
39
+ end
46
40
 
47
- def enable(time_domain: nil)
48
- @devtools.send_cmd('Performance.enable',
49
- timeDomain: time_domain)
50
- end
41
+ def enable(time_domain: nil)
42
+ @devtools.send_cmd('Performance.enable',
43
+ timeDomain: time_domain)
44
+ end
51
45
 
52
- def set_time_domain(time_domain:)
53
- @devtools.send_cmd('Performance.setTimeDomain',
54
- timeDomain: time_domain)
55
- end
46
+ def set_time_domain(time_domain:)
47
+ @devtools.send_cmd('Performance.setTimeDomain',
48
+ timeDomain: time_domain)
49
+ end
56
50
 
57
- def get_metrics
58
- @devtools.send_cmd('Performance.getMetrics')
59
- end
51
+ def get_metrics
52
+ @devtools.send_cmd('Performance.getMetrics')
53
+ end
60
54
 
61
- end # V88
62
- end # Performance
63
- end # DevTools
64
- end # WebDriver
55
+ end # Performance
56
+ end # DevTools
65
57
  end # Selenium
@@ -19,107 +19,99 @@
19
19
 
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
- module WebDriver
23
- class DevTools
24
- def profiler
25
- @profiler ||= V88::Profiler.new(self)
26
- end
27
-
28
- module V88
29
- class Profiler
30
- EVENTS = {
31
- console_profile_finished: 'consoleProfileFinished',
32
- console_profile_started: 'consoleProfileStarted',
33
- precise_coverage_delta_update: 'preciseCoverageDeltaUpdate',
34
- }.freeze
35
-
36
- def initialize(devtools)
37
- @devtools = devtools
38
- end
39
-
40
- def on(event, &block)
41
- event = EVENTS[event] if event.is_a?(Symbol)
42
- @devtools.callbacks["Profiler.#{event}"] << block
43
- end
44
-
45
- def disable
46
- @devtools.send_cmd('Profiler.disable')
47
- end
48
-
49
- def enable
50
- @devtools.send_cmd('Profiler.enable')
51
- end
52
-
53
- def get_best_effort_coverage
54
- @devtools.send_cmd('Profiler.getBestEffortCoverage')
55
- end
56
-
57
- def set_sampling_interval(interval:)
58
- @devtools.send_cmd('Profiler.setSamplingInterval',
59
- interval: interval)
60
- end
61
-
62
- def start
63
- @devtools.send_cmd('Profiler.start')
64
- end
65
-
66
- def start_precise_coverage(call_count: nil, detailed: nil, allow_triggered_updates: nil)
67
- @devtools.send_cmd('Profiler.startPreciseCoverage',
68
- callCount: call_count,
69
- detailed: detailed,
70
- allowTriggeredUpdates: allow_triggered_updates)
71
- end
72
-
73
- def start_type_profile
74
- @devtools.send_cmd('Profiler.startTypeProfile')
75
- end
76
-
77
- def stop
78
- @devtools.send_cmd('Profiler.stop')
79
- end
80
-
81
- def stop_precise_coverage
82
- @devtools.send_cmd('Profiler.stopPreciseCoverage')
83
- end
84
-
85
- def stop_type_profile
86
- @devtools.send_cmd('Profiler.stopTypeProfile')
87
- end
88
-
89
- def take_precise_coverage
90
- @devtools.send_cmd('Profiler.takePreciseCoverage')
91
- end
92
-
93
- def take_type_profile
94
- @devtools.send_cmd('Profiler.takeTypeProfile')
95
- end
96
-
97
- def enable_counters
98
- @devtools.send_cmd('Profiler.enableCounters')
99
- end
100
-
101
- def disable_counters
102
- @devtools.send_cmd('Profiler.disableCounters')
103
- end
104
-
105
- def get_counters
106
- @devtools.send_cmd('Profiler.getCounters')
107
- end
108
-
109
- def enable_runtime_call_stats
110
- @devtools.send_cmd('Profiler.enableRuntimeCallStats')
111
- end
112
-
113
- def disable_runtime_call_stats
114
- @devtools.send_cmd('Profiler.disableRuntimeCallStats')
115
- end
116
-
117
- def get_runtime_call_stats
118
- @devtools.send_cmd('Profiler.getRuntimeCallStats')
119
- end
120
-
121
- end # V88
122
- end # Profiler
123
- end # DevTools
124
- end # WebDriver
22
+ module DevTools
23
+ class Profiler
24
+ EVENTS = {
25
+ console_profile_finished: 'consoleProfileFinished',
26
+ console_profile_started: 'consoleProfileStarted',
27
+ precise_coverage_delta_update: 'preciseCoverageDeltaUpdate',
28
+ }.freeze
29
+
30
+ def initialize(devtools)
31
+ @devtools = devtools
32
+ end
33
+
34
+ def on(event, &block)
35
+ event = EVENTS[event] if event.is_a?(Symbol)
36
+ @devtools.callbacks["Profiler.#{event}"] << block
37
+ end
38
+
39
+ def disable
40
+ @devtools.send_cmd('Profiler.disable')
41
+ end
42
+
43
+ def enable
44
+ @devtools.send_cmd('Profiler.enable')
45
+ end
46
+
47
+ def get_best_effort_coverage
48
+ @devtools.send_cmd('Profiler.getBestEffortCoverage')
49
+ end
50
+
51
+ def set_sampling_interval(interval:)
52
+ @devtools.send_cmd('Profiler.setSamplingInterval',
53
+ interval: interval)
54
+ end
55
+
56
+ def start
57
+ @devtools.send_cmd('Profiler.start')
58
+ end
59
+
60
+ def start_precise_coverage(call_count: nil, detailed: nil, allow_triggered_updates: nil)
61
+ @devtools.send_cmd('Profiler.startPreciseCoverage',
62
+ callCount: call_count,
63
+ detailed: detailed,
64
+ allowTriggeredUpdates: allow_triggered_updates)
65
+ end
66
+
67
+ def start_type_profile
68
+ @devtools.send_cmd('Profiler.startTypeProfile')
69
+ end
70
+
71
+ def stop
72
+ @devtools.send_cmd('Profiler.stop')
73
+ end
74
+
75
+ def stop_precise_coverage
76
+ @devtools.send_cmd('Profiler.stopPreciseCoverage')
77
+ end
78
+
79
+ def stop_type_profile
80
+ @devtools.send_cmd('Profiler.stopTypeProfile')
81
+ end
82
+
83
+ def take_precise_coverage
84
+ @devtools.send_cmd('Profiler.takePreciseCoverage')
85
+ end
86
+
87
+ def take_type_profile
88
+ @devtools.send_cmd('Profiler.takeTypeProfile')
89
+ end
90
+
91
+ def enable_counters
92
+ @devtools.send_cmd('Profiler.enableCounters')
93
+ end
94
+
95
+ def disable_counters
96
+ @devtools.send_cmd('Profiler.disableCounters')
97
+ end
98
+
99
+ def get_counters
100
+ @devtools.send_cmd('Profiler.getCounters')
101
+ end
102
+
103
+ def enable_runtime_call_stats
104
+ @devtools.send_cmd('Profiler.enableRuntimeCallStats')
105
+ end
106
+
107
+ def disable_runtime_call_stats
108
+ @devtools.send_cmd('Profiler.disableRuntimeCallStats')
109
+ end
110
+
111
+ def get_runtime_call_stats
112
+ @devtools.send_cmd('Profiler.getRuntimeCallStats')
113
+ end
114
+
115
+ end # Profiler
116
+ end # DevTools
125
117
  end # Selenium
@@ -19,179 +19,171 @@
19
19
 
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
- module WebDriver
23
- class DevTools
24
- def runtime
25
- @runtime ||= V88::Runtime.new(self)
26
- end
27
-
28
- module V88
29
- class Runtime
30
- EVENTS = {
31
- binding_called: 'bindingCalled',
32
- console_api_called: 'consoleAPICalled',
33
- exception_revoked: 'exceptionRevoked',
34
- exception_thrown: 'exceptionThrown',
35
- execution_context_created: 'executionContextCreated',
36
- execution_context_destroyed: 'executionContextDestroyed',
37
- execution_contexts_cleared: 'executionContextsCleared',
38
- inspect_requested: 'inspectRequested',
39
- }.freeze
40
-
41
- def initialize(devtools)
42
- @devtools = devtools
43
- end
44
-
45
- def on(event, &block)
46
- event = EVENTS[event] if event.is_a?(Symbol)
47
- @devtools.callbacks["Runtime.#{event}"] << block
48
- end
49
-
50
- def await_promise(promise_object_id:, return_by_value: nil, generate_preview: nil)
51
- @devtools.send_cmd('Runtime.awaitPromise',
52
- promiseObjectId: promise_object_id,
53
- returnByValue: return_by_value,
54
- generatePreview: generate_preview)
55
- end
56
-
57
- 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)
58
- @devtools.send_cmd('Runtime.callFunctionOn',
59
- functionDeclaration: function_declaration,
60
- objectId: object_id,
61
- arguments: arguments,
62
- silent: silent,
63
- returnByValue: return_by_value,
64
- generatePreview: generate_preview,
65
- userGesture: user_gesture,
66
- awaitPromise: await_promise,
67
- executionContextId: execution_context_id,
68
- objectGroup: object_group)
69
- end
70
-
71
- def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
72
- @devtools.send_cmd('Runtime.compileScript',
73
- expression: expression,
74
- sourceURL: source_url,
75
- persistScript: persist_script,
76
- executionContextId: execution_context_id)
77
- end
78
-
79
- def disable
80
- @devtools.send_cmd('Runtime.disable')
81
- end
82
-
83
- def discard_console_entries
84
- @devtools.send_cmd('Runtime.discardConsoleEntries')
85
- end
86
-
87
- def enable
88
- @devtools.send_cmd('Runtime.enable')
89
- end
90
-
91
- 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)
92
- @devtools.send_cmd('Runtime.evaluate',
93
- expression: expression,
94
- objectGroup: object_group,
95
- includeCommandLineAPI: include_command_line_api,
96
- silent: silent,
97
- contextId: context_id,
98
- returnByValue: return_by_value,
99
- generatePreview: generate_preview,
100
- userGesture: user_gesture,
101
- awaitPromise: await_promise,
102
- throwOnSideEffect: throw_on_side_effect,
103
- timeout: timeout,
104
- disableBreaks: disable_breaks,
105
- replMode: repl_mode,
106
- allowUnsafeEvalBlockedByCSP: allow_unsafe_eval_blocked_by_csp)
107
- end
108
-
109
- def get_isolate_id
110
- @devtools.send_cmd('Runtime.getIsolateId')
111
- end
112
-
113
- def get_heap_usage
114
- @devtools.send_cmd('Runtime.getHeapUsage')
115
- end
116
-
117
- def get_properties(object_id:, own_properties: nil, accessor_properties_only: nil, generate_preview: nil)
118
- @devtools.send_cmd('Runtime.getProperties',
119
- objectId: object_id,
120
- ownProperties: own_properties,
121
- accessorPropertiesOnly: accessor_properties_only,
122
- generatePreview: generate_preview)
123
- end
124
-
125
- def global_lexical_scope_names(execution_context_id: nil)
126
- @devtools.send_cmd('Runtime.globalLexicalScopeNames',
127
- executionContextId: execution_context_id)
128
- end
129
-
130
- def query_objects(prototype_object_id:, object_group: nil)
131
- @devtools.send_cmd('Runtime.queryObjects',
132
- prototypeObjectId: prototype_object_id,
133
- objectGroup: object_group)
134
- end
135
-
136
- def release_object(object_id:)
137
- @devtools.send_cmd('Runtime.releaseObject',
138
- objectId: object_id)
139
- end
140
-
141
- def release_object_group(object_group:)
142
- @devtools.send_cmd('Runtime.releaseObjectGroup',
143
- objectGroup: object_group)
144
- end
145
-
146
- def run_if_waiting_for_debugger
147
- @devtools.send_cmd('Runtime.runIfWaitingForDebugger')
148
- end
149
-
150
- def run_script(script_id:, execution_context_id: nil, object_group: nil, silent: nil, include_command_line_api: nil, return_by_value: nil, generate_preview: nil, await_promise: nil)
151
- @devtools.send_cmd('Runtime.runScript',
152
- scriptId: script_id,
153
- executionContextId: execution_context_id,
154
- objectGroup: object_group,
155
- silent: silent,
156
- includeCommandLineAPI: include_command_line_api,
157
- returnByValue: return_by_value,
158
- generatePreview: generate_preview,
159
- awaitPromise: await_promise)
160
- end
161
-
162
- def set_async_call_stack_depth(max_depth:)
163
- @devtools.send_cmd('Runtime.setAsyncCallStackDepth',
164
- maxDepth: max_depth)
165
- end
166
-
167
- def set_custom_object_formatter_enabled(enabled:)
168
- @devtools.send_cmd('Runtime.setCustomObjectFormatterEnabled',
169
- enabled: enabled)
170
- end
171
-
172
- def set_max_call_stack_size_to_capture(size:)
173
- @devtools.send_cmd('Runtime.setMaxCallStackSizeToCapture',
174
- size: size)
175
- end
176
-
177
- def terminate_execution
178
- @devtools.send_cmd('Runtime.terminateExecution')
179
- end
180
-
181
- def add_binding(name:, execution_context_id: nil, execution_context_name: nil)
182
- @devtools.send_cmd('Runtime.addBinding',
183
- name: name,
184
- executionContextId: execution_context_id,
185
- executionContextName: execution_context_name)
186
- end
187
-
188
- def remove_binding(name:)
189
- @devtools.send_cmd('Runtime.removeBinding',
190
- name: name)
191
- end
192
-
193
- end # V88
194
- end # Runtime
195
- end # DevTools
196
- end # WebDriver
22
+ module DevTools
23
+ class Runtime
24
+ EVENTS = {
25
+ binding_called: 'bindingCalled',
26
+ console_api_called: 'consoleAPICalled',
27
+ exception_revoked: 'exceptionRevoked',
28
+ exception_thrown: 'exceptionThrown',
29
+ execution_context_created: 'executionContextCreated',
30
+ execution_context_destroyed: 'executionContextDestroyed',
31
+ execution_contexts_cleared: 'executionContextsCleared',
32
+ inspect_requested: 'inspectRequested',
33
+ }.freeze
34
+
35
+ def initialize(devtools)
36
+ @devtools = devtools
37
+ end
38
+
39
+ def on(event, &block)
40
+ event = EVENTS[event] if event.is_a?(Symbol)
41
+ @devtools.callbacks["Runtime.#{event}"] << block
42
+ end
43
+
44
+ def await_promise(promise_object_id:, return_by_value: nil, generate_preview: nil)
45
+ @devtools.send_cmd('Runtime.awaitPromise',
46
+ promiseObjectId: promise_object_id,
47
+ returnByValue: return_by_value,
48
+ generatePreview: generate_preview)
49
+ end
50
+
51
+ 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)
52
+ @devtools.send_cmd('Runtime.callFunctionOn',
53
+ functionDeclaration: function_declaration,
54
+ objectId: object_id,
55
+ arguments: arguments,
56
+ silent: silent,
57
+ returnByValue: return_by_value,
58
+ generatePreview: generate_preview,
59
+ userGesture: user_gesture,
60
+ awaitPromise: await_promise,
61
+ executionContextId: execution_context_id,
62
+ objectGroup: object_group)
63
+ end
64
+
65
+ def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
66
+ @devtools.send_cmd('Runtime.compileScript',
67
+ expression: expression,
68
+ sourceURL: source_url,
69
+ persistScript: persist_script,
70
+ executionContextId: execution_context_id)
71
+ end
72
+
73
+ def disable
74
+ @devtools.send_cmd('Runtime.disable')
75
+ end
76
+
77
+ def discard_console_entries
78
+ @devtools.send_cmd('Runtime.discardConsoleEntries')
79
+ end
80
+
81
+ def enable
82
+ @devtools.send_cmd('Runtime.enable')
83
+ end
84
+
85
+ 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)
86
+ @devtools.send_cmd('Runtime.evaluate',
87
+ expression: expression,
88
+ objectGroup: object_group,
89
+ includeCommandLineAPI: include_command_line_api,
90
+ silent: silent,
91
+ contextId: context_id,
92
+ returnByValue: return_by_value,
93
+ generatePreview: generate_preview,
94
+ userGesture: user_gesture,
95
+ awaitPromise: await_promise,
96
+ throwOnSideEffect: throw_on_side_effect,
97
+ timeout: timeout,
98
+ disableBreaks: disable_breaks,
99
+ replMode: repl_mode,
100
+ allowUnsafeEvalBlockedByCSP: allow_unsafe_eval_blocked_by_csp)
101
+ end
102
+
103
+ def get_isolate_id
104
+ @devtools.send_cmd('Runtime.getIsolateId')
105
+ end
106
+
107
+ def get_heap_usage
108
+ @devtools.send_cmd('Runtime.getHeapUsage')
109
+ end
110
+
111
+ def get_properties(object_id:, own_properties: nil, accessor_properties_only: nil, generate_preview: nil)
112
+ @devtools.send_cmd('Runtime.getProperties',
113
+ objectId: object_id,
114
+ ownProperties: own_properties,
115
+ accessorPropertiesOnly: accessor_properties_only,
116
+ generatePreview: generate_preview)
117
+ end
118
+
119
+ def global_lexical_scope_names(execution_context_id: nil)
120
+ @devtools.send_cmd('Runtime.globalLexicalScopeNames',
121
+ executionContextId: execution_context_id)
122
+ end
123
+
124
+ def query_objects(prototype_object_id:, object_group: nil)
125
+ @devtools.send_cmd('Runtime.queryObjects',
126
+ prototypeObjectId: prototype_object_id,
127
+ objectGroup: object_group)
128
+ end
129
+
130
+ def release_object(object_id:)
131
+ @devtools.send_cmd('Runtime.releaseObject',
132
+ objectId: object_id)
133
+ end
134
+
135
+ def release_object_group(object_group:)
136
+ @devtools.send_cmd('Runtime.releaseObjectGroup',
137
+ objectGroup: object_group)
138
+ end
139
+
140
+ def run_if_waiting_for_debugger
141
+ @devtools.send_cmd('Runtime.runIfWaitingForDebugger')
142
+ end
143
+
144
+ def run_script(script_id:, execution_context_id: nil, object_group: nil, silent: nil, include_command_line_api: nil, return_by_value: nil, generate_preview: nil, await_promise: nil)
145
+ @devtools.send_cmd('Runtime.runScript',
146
+ scriptId: script_id,
147
+ executionContextId: execution_context_id,
148
+ objectGroup: object_group,
149
+ silent: silent,
150
+ includeCommandLineAPI: include_command_line_api,
151
+ returnByValue: return_by_value,
152
+ generatePreview: generate_preview,
153
+ awaitPromise: await_promise)
154
+ end
155
+
156
+ def set_async_call_stack_depth(max_depth:)
157
+ @devtools.send_cmd('Runtime.setAsyncCallStackDepth',
158
+ maxDepth: max_depth)
159
+ end
160
+
161
+ def set_custom_object_formatter_enabled(enabled:)
162
+ @devtools.send_cmd('Runtime.setCustomObjectFormatterEnabled',
163
+ enabled: enabled)
164
+ end
165
+
166
+ def set_max_call_stack_size_to_capture(size:)
167
+ @devtools.send_cmd('Runtime.setMaxCallStackSizeToCapture',
168
+ size: size)
169
+ end
170
+
171
+ def terminate_execution
172
+ @devtools.send_cmd('Runtime.terminateExecution')
173
+ end
174
+
175
+ def add_binding(name:, execution_context_id: nil, execution_context_name: nil)
176
+ @devtools.send_cmd('Runtime.addBinding',
177
+ name: name,
178
+ executionContextId: execution_context_id,
179
+ executionContextName: execution_context_name)
180
+ end
181
+
182
+ def remove_binding(name:)
183
+ @devtools.send_cmd('Runtime.removeBinding',
184
+ name: name)
185
+ end
186
+
187
+ end # Runtime
188
+ end # DevTools
197
189
  end # Selenium