selenium-devtools 0.91.0 → 0.94.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -0
  3. data/LICENSE +202 -0
  4. data/NOTICE +2 -0
  5. data/lib/selenium/devtools/{v89 → v93}/accessibility.rb +2 -2
  6. data/lib/selenium/devtools/{v90 → v93}/animation.rb +2 -2
  7. data/lib/selenium/devtools/{v89 → v93}/application_cache.rb +2 -2
  8. data/lib/selenium/devtools/{v90 → v93}/audits.rb +2 -2
  9. data/lib/selenium/devtools/{v90 → v93}/background_service.rb +2 -2
  10. data/lib/selenium/devtools/{v91 → v93}/browser.rb +2 -2
  11. data/lib/selenium/devtools/{v88 → v93}/cache_storage.rb +2 -2
  12. data/lib/selenium/devtools/{v89 → v93}/cast.rb +2 -2
  13. data/lib/selenium/devtools/{v89 → v93}/console.rb +2 -2
  14. data/lib/selenium/devtools/{v91 → v93}/css.rb +9 -2
  15. data/lib/selenium/devtools/{v89 → v93}/database.rb +2 -2
  16. data/lib/selenium/devtools/{v89 → v93}/debugger.rb +2 -2
  17. data/lib/selenium/devtools/{v89 → v93}/device_orientation.rb +2 -2
  18. data/lib/selenium/devtools/{v89 → v93}/dom.rb +8 -2
  19. data/lib/selenium/devtools/{v90 → v93}/dom_debugger.rb +2 -2
  20. data/lib/selenium/devtools/{v88 → v93}/dom_snapshot.rb +6 -4
  21. data/lib/selenium/devtools/{v88 → v93}/dom_storage.rb +2 -2
  22. data/lib/selenium/devtools/{v89 → v93}/emulation.rb +2 -2
  23. data/lib/selenium/devtools/{v89 → v93}/fetch.rb +2 -2
  24. data/lib/selenium/devtools/{v89 → v93}/headless_experimental.rb +2 -2
  25. data/lib/selenium/devtools/{v89 → v93}/heap_profiler.rb +8 -6
  26. data/lib/selenium/devtools/{v90 → v93}/indexed_db.rb +2 -2
  27. data/lib/selenium/devtools/{v91 → v93}/input.rb +2 -2
  28. data/lib/selenium/devtools/{v90 → v93}/inspector.rb +2 -2
  29. data/lib/selenium/devtools/{v88 → v93}/io.rb +2 -2
  30. data/lib/selenium/devtools/{v90 → v93}/layer_tree.rb +2 -2
  31. data/lib/selenium/devtools/{v90 → v93}/log.rb +2 -2
  32. data/lib/selenium/devtools/{v89 → v93}/media.rb +2 -2
  33. data/lib/selenium/devtools/{v88 → v93}/memory.rb +2 -2
  34. data/lib/selenium/devtools/{v91 → v93}/network.rb +6 -8
  35. data/lib/selenium/devtools/{v91 → v93}/overlay.rb +7 -2
  36. data/lib/selenium/devtools/{v91 → v93}/page.rb +6 -4
  37. data/lib/selenium/devtools/{v90 → v93}/performance.rb +2 -2
  38. data/lib/selenium/devtools/{v91 → v93}/performance_timeline.rb +2 -2
  39. data/lib/selenium/devtools/{v89 → v93}/profiler.rb +2 -2
  40. data/lib/selenium/devtools/{v89 → v93}/runtime.rb +5 -4
  41. data/lib/selenium/devtools/{v88 → v93}/schema.rb +2 -2
  42. data/lib/selenium/devtools/{v88 → v93}/security.rb +2 -2
  43. data/lib/selenium/devtools/{v89 → v93}/service_worker.rb +2 -2
  44. data/lib/selenium/devtools/{v91 → v93}/storage.rb +2 -2
  45. data/lib/selenium/devtools/{v90 → v93}/system_info.rb +2 -2
  46. data/lib/selenium/devtools/{v90 → v93}/target.rb +2 -2
  47. data/lib/selenium/devtools/{v90 → v93}/tethering.rb +2 -2
  48. data/lib/selenium/devtools/{v91 → v93}/tracing.rb +2 -2
  49. data/lib/selenium/devtools/{v88 → v93}/web_audio.rb +2 -2
  50. data/lib/selenium/devtools/{v88 → v93}/web_authn.rb +2 -2
  51. data/lib/selenium/devtools/v93.rb +1 -0
  52. data/lib/selenium/devtools/{v90 → v94}/accessibility.rb +8 -6
  53. data/lib/selenium/devtools/{v91 → v94}/animation.rb +2 -2
  54. data/lib/selenium/devtools/{v90 → v94}/application_cache.rb +2 -2
  55. data/lib/selenium/devtools/{v91 → v94}/audits.rb +2 -2
  56. data/lib/selenium/devtools/{v91 → v94}/background_service.rb +2 -2
  57. data/lib/selenium/devtools/{v88 → v94}/browser.rb +15 -4
  58. data/lib/selenium/devtools/{v89 → v94}/cache_storage.rb +2 -2
  59. data/lib/selenium/devtools/{v88 → v94}/cast.rb +2 -2
  60. data/lib/selenium/devtools/{v90 → v94}/console.rb +2 -2
  61. data/lib/selenium/devtools/{v88 → v94}/css.rb +9 -2
  62. data/lib/selenium/devtools/{v88 → v94}/database.rb +2 -2
  63. data/lib/selenium/devtools/{v90 → v94}/debugger.rb +2 -2
  64. data/lib/selenium/devtools/{v90 → v94}/device_orientation.rb +2 -2
  65. data/lib/selenium/devtools/{v88 → v94}/dom.rb +13 -2
  66. data/lib/selenium/devtools/{v91 → v94}/dom_debugger.rb +2 -2
  67. data/lib/selenium/devtools/{v89 → v94}/dom_snapshot.rb +6 -4
  68. data/lib/selenium/devtools/{v90 → v94}/dom_storage.rb +2 -2
  69. data/lib/selenium/devtools/{v90 → v94}/emulation.rb +2 -2
  70. data/lib/selenium/devtools/{v90 → v94}/fetch.rb +5 -4
  71. data/lib/selenium/devtools/{v90 → v94}/headless_experimental.rb +2 -2
  72. data/lib/selenium/devtools/{v88 → v94}/heap_profiler.rb +8 -6
  73. data/lib/selenium/devtools/{v88 → v94}/indexed_db.rb +2 -2
  74. data/lib/selenium/devtools/{v89 → v94}/input.rb +28 -2
  75. data/lib/selenium/devtools/{v88 → v94}/inspector.rb +2 -2
  76. data/lib/selenium/devtools/{v90 → v94}/io.rb +2 -2
  77. data/lib/selenium/devtools/{v88 → v94}/layer_tree.rb +2 -2
  78. data/lib/selenium/devtools/{v88 → v94}/log.rb +2 -2
  79. data/lib/selenium/devtools/{v90 → v94}/media.rb +2 -2
  80. data/lib/selenium/devtools/{v89 → v94}/memory.rb +2 -2
  81. data/lib/selenium/devtools/{v90 → v94}/network.rb +16 -9
  82. data/lib/selenium/devtools/{v90 → v94}/overlay.rb +12 -2
  83. data/lib/selenium/devtools/{v90 → v94}/page.rb +16 -4
  84. data/lib/selenium/devtools/{v91 → v94}/performance.rb +2 -2
  85. data/lib/selenium/devtools/{v90 → v94}/performance_timeline.rb +2 -2
  86. data/lib/selenium/devtools/{v88 → v94}/profiler.rb +2 -2
  87. data/lib/selenium/devtools/{v90 → v94}/runtime.rb +5 -4
  88. data/lib/selenium/devtools/{v89 → v94}/schema.rb +2 -2
  89. data/lib/selenium/devtools/{v90 → v94}/security.rb +2 -2
  90. data/lib/selenium/devtools/{v88 → v94}/service_worker.rb +2 -2
  91. data/lib/selenium/devtools/{v90 → v94}/storage.rb +7 -2
  92. data/lib/selenium/devtools/{v91 → v94}/system_info.rb +2 -2
  93. data/lib/selenium/devtools/{v88 → v94}/target.rb +2 -2
  94. data/lib/selenium/devtools/{v89 → v94}/tethering.rb +2 -2
  95. data/lib/selenium/devtools/{v89 → v94}/tracing.rb +5 -4
  96. data/lib/selenium/devtools/{v89 → v94}/web_audio.rb +2 -2
  97. data/lib/selenium/devtools/{v89 → v94}/web_authn.rb +2 -2
  98. data/lib/selenium/devtools/v94.rb +1 -0
  99. data/lib/selenium/devtools/version.rb +1 -1
  100. data/lib/selenium/{devtools/v90/schema.rb → devtools.rb} +9 -19
  101. data/selenium-devtools.gemspec +43 -0
  102. metadata +120 -195
  103. data/lib/selenium/devtools/v88/accessibility.rb +0 -67
  104. data/lib/selenium/devtools/v88/animation.rb +0 -94
  105. data/lib/selenium/devtools/v88/application_cache.rb +0 -60
  106. data/lib/selenium/devtools/v88/audits.rb +0 -57
  107. data/lib/selenium/devtools/v88/background_service.rb +0 -63
  108. data/lib/selenium/devtools/v88/console.rb +0 -53
  109. data/lib/selenium/devtools/v88/debugger.rb +0 -227
  110. data/lib/selenium/devtools/v88/device_orientation.rb +0 -49
  111. data/lib/selenium/devtools/v88/dom_debugger.rb +0 -89
  112. data/lib/selenium/devtools/v88/emulation.rb +0 -192
  113. data/lib/selenium/devtools/v88/fetch.rb +0 -93
  114. data/lib/selenium/devtools/v88/headless_experimental.rb +0 -57
  115. data/lib/selenium/devtools/v88/input.rb +0 -142
  116. data/lib/selenium/devtools/v88/media.rb +0 -53
  117. data/lib/selenium/devtools/v88/network.rb +0 -241
  118. data/lib/selenium/devtools/v88/overlay.rb +0 -177
  119. data/lib/selenium/devtools/v88/page.rb +0 -370
  120. data/lib/selenium/devtools/v88/performance.rb +0 -59
  121. data/lib/selenium/devtools/v88/runtime.rb +0 -191
  122. data/lib/selenium/devtools/v88/storage.rb +0 -97
  123. data/lib/selenium/devtools/v88/system_info.rb +0 -46
  124. data/lib/selenium/devtools/v88/tethering.rb +0 -51
  125. data/lib/selenium/devtools/v88/tracing.rb +0 -73
  126. data/lib/selenium/devtools/v88.rb +0 -1
  127. data/lib/selenium/devtools/v89/animation.rb +0 -94
  128. data/lib/selenium/devtools/v89/audits.rb +0 -57
  129. data/lib/selenium/devtools/v89/background_service.rb +0 -63
  130. data/lib/selenium/devtools/v89/browser.rb +0 -124
  131. data/lib/selenium/devtools/v89/css.rb +0 -175
  132. data/lib/selenium/devtools/v89/dom_debugger.rb +0 -94
  133. data/lib/selenium/devtools/v89/dom_storage.rb +0 -75
  134. data/lib/selenium/devtools/v89/indexed_db.rb +0 -96
  135. data/lib/selenium/devtools/v89/inspector.rb +0 -51
  136. data/lib/selenium/devtools/v89/io.rb +0 -55
  137. data/lib/selenium/devtools/v89/layer_tree.rb +0 -91
  138. data/lib/selenium/devtools/v89/log.rb +0 -62
  139. data/lib/selenium/devtools/v89/network.rb +0 -244
  140. data/lib/selenium/devtools/v89/overlay.rb +0 -182
  141. data/lib/selenium/devtools/v89/page.rb +0 -372
  142. data/lib/selenium/devtools/v89/performance.rb +0 -59
  143. data/lib/selenium/devtools/v89/performance_timeline.rb +0 -46
  144. data/lib/selenium/devtools/v89/security.rb +0 -67
  145. data/lib/selenium/devtools/v89/storage.rb +0 -97
  146. data/lib/selenium/devtools/v89/system_info.rb +0 -46
  147. data/lib/selenium/devtools/v89/target.rb +0 -139
  148. data/lib/selenium/devtools/v89.rb +0 -1
  149. data/lib/selenium/devtools/v90/browser.rb +0 -124
  150. data/lib/selenium/devtools/v90/cache_storage.rb +0 -69
  151. data/lib/selenium/devtools/v90/cast.rb +0 -66
  152. data/lib/selenium/devtools/v90/css.rb +0 -175
  153. data/lib/selenium/devtools/v90/database.rb +0 -60
  154. data/lib/selenium/devtools/v90/dom.rb +0 -323
  155. data/lib/selenium/devtools/v90/dom_snapshot.rb +0 -61
  156. data/lib/selenium/devtools/v90/heap_profiler.rb +0 -103
  157. data/lib/selenium/devtools/v90/input.rb +0 -142
  158. data/lib/selenium/devtools/v90/memory.rb +0 -82
  159. data/lib/selenium/devtools/v90/profiler.rb +0 -119
  160. data/lib/selenium/devtools/v90/service_worker.rb +0 -112
  161. data/lib/selenium/devtools/v90/tracing.rb +0 -74
  162. data/lib/selenium/devtools/v90/web_audio.rb +0 -66
  163. data/lib/selenium/devtools/v90/web_authn.rb +0 -96
  164. data/lib/selenium/devtools/v90.rb +0 -1
  165. data/lib/selenium/devtools/v91/accessibility.rb +0 -73
  166. data/lib/selenium/devtools/v91/application_cache.rb +0 -60
  167. data/lib/selenium/devtools/v91/cache_storage.rb +0 -69
  168. data/lib/selenium/devtools/v91/cast.rb +0 -66
  169. data/lib/selenium/devtools/v91/console.rb +0 -53
  170. data/lib/selenium/devtools/v91/database.rb +0 -60
  171. data/lib/selenium/devtools/v91/debugger.rb +0 -220
  172. data/lib/selenium/devtools/v91/device_orientation.rb +0 -49
  173. data/lib/selenium/devtools/v91/dom.rb +0 -323
  174. data/lib/selenium/devtools/v91/dom_snapshot.rb +0 -61
  175. data/lib/selenium/devtools/v91/dom_storage.rb +0 -75
  176. data/lib/selenium/devtools/v91/emulation.rb +0 -192
  177. data/lib/selenium/devtools/v91/fetch.rb +0 -93
  178. data/lib/selenium/devtools/v91/headless_experimental.rb +0 -57
  179. data/lib/selenium/devtools/v91/heap_profiler.rb +0 -103
  180. data/lib/selenium/devtools/v91/indexed_db.rb +0 -96
  181. data/lib/selenium/devtools/v91/inspector.rb +0 -51
  182. data/lib/selenium/devtools/v91/io.rb +0 -55
  183. data/lib/selenium/devtools/v91/layer_tree.rb +0 -91
  184. data/lib/selenium/devtools/v91/log.rb +0 -62
  185. data/lib/selenium/devtools/v91/media.rb +0 -53
  186. data/lib/selenium/devtools/v91/memory.rb +0 -82
  187. data/lib/selenium/devtools/v91/profiler.rb +0 -119
  188. data/lib/selenium/devtools/v91/runtime.rb +0 -192
  189. data/lib/selenium/devtools/v91/schema.rb +0 -42
  190. data/lib/selenium/devtools/v91/security.rb +0 -67
  191. data/lib/selenium/devtools/v91/service_worker.rb +0 -112
  192. data/lib/selenium/devtools/v91/target.rb +0 -139
  193. data/lib/selenium/devtools/v91/tethering.rb +0 -51
  194. data/lib/selenium/devtools/v91/web_audio.rb +0 -66
  195. data/lib/selenium/devtools/v91/web_authn.rb +0 -96
  196. data/lib/selenium/devtools/v91.rb +0 -1
@@ -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 V91
23
+ module V94
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 # V91
57
+ end # V94
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 V90
23
+ module V94
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 # V90
44
+ end # V94
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 V88
23
+ module V94
24
24
  class Profiler
25
25
  EVENTS = {
26
26
  console_profile_finished: 'consoleProfileFinished',
@@ -114,6 +114,6 @@ module Selenium
114
114
  end
115
115
 
116
116
  end # Profiler
117
- end # V88
117
+ end # V94
118
118
  end # DevTools
119
119
  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 V90
23
+ module V94
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)
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)
53
53
  @devtools.send_cmd('Runtime.callFunctionOn',
54
54
  functionDeclaration: function_declaration,
55
55
  objectId: object_id,
@@ -60,7 +60,8 @@ module Selenium
60
60
  userGesture: user_gesture,
61
61
  awaitPromise: await_promise,
62
62
  executionContextId: execution_context_id,
63
- objectGroup: object_group)
63
+ objectGroup: object_group,
64
+ throwOnSideEffect: throw_on_side_effect)
64
65
  end
65
66
 
66
67
  def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
@@ -187,6 +188,6 @@ module Selenium
187
188
  end
188
189
 
189
190
  end # Runtime
190
- end # V90
191
+ end # V94
191
192
  end # DevTools
192
193
  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 V89
23
+ module V94
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 # V89
40
+ end # V94
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 V90
23
+ module V94
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 # V90
65
+ end # V94
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 V88
23
+ module V94
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 # V88
110
+ end # V94
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 V90
23
+ module V94
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -95,7 +95,12 @@ module Selenium
95
95
  @devtools.send_cmd('Storage.getTrustTokens')
96
96
  end
97
97
 
98
+ def clear_trust_tokens(issuer_origin:)
99
+ @devtools.send_cmd('Storage.clearTrustTokens',
100
+ issuerOrigin: issuer_origin)
101
+ end
102
+
98
103
  end # Storage
99
- end # V90
104
+ end # V94
100
105
  end # DevTools
101
106
  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 V91
23
+ module V94
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 # V91
44
+ end # V94
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 V88
23
+ module V94
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -134,6 +134,6 @@ module Selenium
134
134
  end
135
135
 
136
136
  end # Target
137
- end # V88
137
+ end # V94
138
138
  end # DevTools
139
139
  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 V89
23
+ module V94
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 # V89
49
+ end # V94
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 V89
23
+ module V94
24
24
  class Tracing
25
25
  EVENTS = {
26
26
  buffer_usage: 'bufferUsage',
@@ -56,7 +56,7 @@ module Selenium
56
56
  levelOfDetail: level_of_detail)
57
57
  end
58
58
 
59
- def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil, perfetto_config: nil)
59
+ def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil, perfetto_config: nil, tracing_backend: nil)
60
60
  @devtools.send_cmd('Tracing.start',
61
61
  categories: categories,
62
62
  options: options,
@@ -65,10 +65,11 @@ module Selenium
65
65
  streamFormat: stream_format,
66
66
  streamCompression: stream_compression,
67
67
  traceConfig: trace_config,
68
- perfettoConfig: perfetto_config)
68
+ perfettoConfig: perfetto_config,
69
+ tracingBackend: tracing_backend)
69
70
  end
70
71
 
71
72
  end # Tracing
72
- end # V89
73
+ end # V94
73
74
  end # DevTools
74
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 V89
23
+ module V94
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 # V89
64
+ end # V94
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 V89
23
+ module V94
24
24
  class WebAuthn
25
25
 
26
26
  def initialize(devtools)
@@ -91,6 +91,6 @@ module Selenium
91
91
  end
92
92
 
93
93
  end # WebAuthn
94
- end # V89
94
+ end # V94
95
95
  end # DevTools
96
96
  end # Selenium
@@ -0,0 +1 @@
1
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v94/*", &method(:require))
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.91.0'
22
+ VERSION = '0.94.0'
23
23
  end # DevTools
24
24
  end # Selenium
@@ -17,26 +17,16 @@
17
17
  # specific language governing permissions and limitations
18
18
  # under the License.
19
19
 
20
- # This file is automatically generated. Any changes will be lost!
20
+ require 'websocket'
21
+
21
22
  module Selenium
22
23
  module DevTools
23
- module V90
24
- class Schema
25
-
26
- def initialize(devtools)
27
- @devtools = devtools
28
- end
29
-
30
- def on(event, &block)
31
- event = EVENTS[event] if event.is_a?(Symbol)
32
- @devtools.callbacks["Schema.#{event}"] << block
33
- end
34
-
35
- def get_domains
36
- @devtools.send_cmd('Schema.getDomains')
37
- end
24
+ class << self
25
+ attr_accessor :version
38
26
 
39
- end # Schema
40
- end # V90
27
+ def load_version
28
+ require "selenium/devtools/v#{@version}"
29
+ end
30
+ end
41
31
  end # DevTools
42
- end # Selenium
32
+ end # Selenium
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ root = File.realpath(File.dirname(__FILE__))
4
+ raise "cwd must be #{root} when reading gemspec" if root != Dir.pwd
5
+
6
+ $LOAD_PATH.push(File.expand_path('lib', root))
7
+ require 'selenium/devtools/version'
8
+
9
+ Gem::Specification.new do |s|
10
+ s.name = 'selenium-devtools'
11
+ s.version = Selenium::DevTools::VERSION
12
+
13
+ s.authors = ['Alex Rodionov', 'Titus Fortner', 'Thomas Walpole']
14
+ s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com', 'twalpole@gmail.com']
15
+
16
+ s.summary = 'DevTools Code for use with Selenium'
17
+ s.description = <<-DESCRIPTION
18
+ Selenium WebDriver now supports limited DevTools interactions.
19
+ This project allows users to specify desired versioning.
20
+ DESCRIPTION
21
+
22
+ s.license = 'Apache-2.0'
23
+ s.homepage = 'https://selenium.dev'
24
+ s.metadata = {
25
+ 'changelog_uri' => 'https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES',
26
+ 'source_code_uri' => 'https://github.com/SeleniumHQ/selenium/tree/trunk/rb'
27
+ }
28
+
29
+ s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
30
+ s.required_ruby_version = Gem::Requirement.new('>= 2.5')
31
+
32
+ s.files = [
33
+ 'LICENSE',
34
+ 'NOTICE',
35
+ 'Gemfile',
36
+ 'selenium-devtools.gemspec',
37
+ 'lib/selenium/devtools.rb'
38
+ ] + Dir['lib/selenium/devtools/**/*']
39
+
40
+ s.require_paths = ["lib"]
41
+
42
+ s.add_runtime_dependency 'websocket', ['~> 1.0']
43
+ end