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
@@ -1,372 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- # This file is automatically generated. Any changes will be lost!
21
- module Selenium
22
- module DevTools
23
- module V89
24
- class Page
25
- EVENTS = {
26
- dom_content_event_fired: 'domContentEventFired',
27
- file_chooser_opened: 'fileChooserOpened',
28
- frame_attached: 'frameAttached',
29
- frame_cleared_scheduled_navigation: 'frameClearedScheduledNavigation',
30
- frame_detached: 'frameDetached',
31
- frame_navigated: 'frameNavigated',
32
- document_opened: 'documentOpened',
33
- frame_resized: 'frameResized',
34
- frame_requested_navigation: 'frameRequestedNavigation',
35
- frame_scheduled_navigation: 'frameScheduledNavigation',
36
- frame_started_loading: 'frameStartedLoading',
37
- frame_stopped_loading: 'frameStoppedLoading',
38
- download_will_begin: 'downloadWillBegin',
39
- download_progress: 'downloadProgress',
40
- interstitial_hidden: 'interstitialHidden',
41
- interstitial_shown: 'interstitialShown',
42
- javascript_dialog_closed: 'javascriptDialogClosed',
43
- javascript_dialog_opening: 'javascriptDialogOpening',
44
- lifecycle_event: 'lifecycleEvent',
45
- load_event_fired: 'loadEventFired',
46
- navigated_within_document: 'navigatedWithinDocument',
47
- screencast_frame: 'screencastFrame',
48
- screencast_visibility_changed: 'screencastVisibilityChanged',
49
- window_open: 'windowOpen',
50
- compilation_cache_produced: 'compilationCacheProduced',
51
- }.freeze
52
-
53
- def initialize(devtools)
54
- @devtools = devtools
55
- end
56
-
57
- def on(event, &block)
58
- event = EVENTS[event] if event.is_a?(Symbol)
59
- @devtools.callbacks["Page.#{event}"] << block
60
- end
61
-
62
- def add_script_to_evaluate_on_load(script_source:)
63
- @devtools.send_cmd('Page.addScriptToEvaluateOnLoad',
64
- scriptSource: script_source)
65
- end
66
-
67
- def add_script_to_evaluate_on_new_document(source:, world_name: nil)
68
- @devtools.send_cmd('Page.addScriptToEvaluateOnNewDocument',
69
- source: source,
70
- worldName: world_name)
71
- end
72
-
73
- def bring_to_front
74
- @devtools.send_cmd('Page.bringToFront')
75
- end
76
-
77
- def capture_screenshot(format: nil, quality: nil, clip: nil, from_surface: nil, capture_beyond_viewport: nil)
78
- @devtools.send_cmd('Page.captureScreenshot',
79
- format: format,
80
- quality: quality,
81
- clip: clip,
82
- fromSurface: from_surface,
83
- captureBeyondViewport: capture_beyond_viewport)
84
- end
85
-
86
- def capture_snapshot(format: nil)
87
- @devtools.send_cmd('Page.captureSnapshot',
88
- format: format)
89
- end
90
-
91
- def clear_device_metrics_override
92
- @devtools.send_cmd('Page.clearDeviceMetricsOverride')
93
- end
94
-
95
- def clear_device_orientation_override
96
- @devtools.send_cmd('Page.clearDeviceOrientationOverride')
97
- end
98
-
99
- def clear_geolocation_override
100
- @devtools.send_cmd('Page.clearGeolocationOverride')
101
- end
102
-
103
- def create_isolated_world(frame_id:, world_name: nil, grant_univeral_access: nil)
104
- @devtools.send_cmd('Page.createIsolatedWorld',
105
- frameId: frame_id,
106
- worldName: world_name,
107
- grantUniveralAccess: grant_univeral_access)
108
- end
109
-
110
- def delete_cookie(cookie_name:, url:)
111
- @devtools.send_cmd('Page.deleteCookie',
112
- cookieName: cookie_name,
113
- url: url)
114
- end
115
-
116
- def disable
117
- @devtools.send_cmd('Page.disable')
118
- end
119
-
120
- def enable
121
- @devtools.send_cmd('Page.enable')
122
- end
123
-
124
- def get_app_manifest
125
- @devtools.send_cmd('Page.getAppManifest')
126
- end
127
-
128
- def get_installability_errors
129
- @devtools.send_cmd('Page.getInstallabilityErrors')
130
- end
131
-
132
- def get_manifest_icons
133
- @devtools.send_cmd('Page.getManifestIcons')
134
- end
135
-
136
- def get_cookies
137
- @devtools.send_cmd('Page.getCookies')
138
- end
139
-
140
- def get_frame_tree
141
- @devtools.send_cmd('Page.getFrameTree')
142
- end
143
-
144
- def get_layout_metrics
145
- @devtools.send_cmd('Page.getLayoutMetrics')
146
- end
147
-
148
- def get_navigation_history
149
- @devtools.send_cmd('Page.getNavigationHistory')
150
- end
151
-
152
- def reset_navigation_history
153
- @devtools.send_cmd('Page.resetNavigationHistory')
154
- end
155
-
156
- def get_resource_content(frame_id:, url:)
157
- @devtools.send_cmd('Page.getResourceContent',
158
- frameId: frame_id,
159
- url: url)
160
- end
161
-
162
- def get_resource_tree
163
- @devtools.send_cmd('Page.getResourceTree')
164
- end
165
-
166
- def handle_javascript_dialog(accept:, prompt_text: nil)
167
- @devtools.send_cmd('Page.handleJavaScriptDialog',
168
- accept: accept,
169
- promptText: prompt_text)
170
- end
171
-
172
- def navigate(url:, referrer: nil, transition_type: nil, frame_id: nil, referrer_policy: nil)
173
- @devtools.send_cmd('Page.navigate',
174
- url: url,
175
- referrer: referrer,
176
- transitionType: transition_type,
177
- frameId: frame_id,
178
- referrerPolicy: referrer_policy)
179
- end
180
-
181
- def navigate_to_history_entry(entry_id:)
182
- @devtools.send_cmd('Page.navigateToHistoryEntry',
183
- entryId: entry_id)
184
- end
185
-
186
- 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)
187
- @devtools.send_cmd('Page.printToPDF',
188
- landscape: landscape,
189
- displayHeaderFooter: display_header_footer,
190
- printBackground: print_background,
191
- scale: scale,
192
- paperWidth: paper_width,
193
- paperHeight: paper_height,
194
- marginTop: margin_top,
195
- marginBottom: margin_bottom,
196
- marginLeft: margin_left,
197
- marginRight: margin_right,
198
- pageRanges: page_ranges,
199
- ignoreInvalidPageRanges: ignore_invalid_page_ranges,
200
- headerTemplate: header_template,
201
- footerTemplate: footer_template,
202
- preferCSSPageSize: prefer_css_page_size,
203
- transferMode: transfer_mode)
204
- end
205
-
206
- def reload(ignore_cache: nil, script_to_evaluate_on_load: nil)
207
- @devtools.send_cmd('Page.reload',
208
- ignoreCache: ignore_cache,
209
- scriptToEvaluateOnLoad: script_to_evaluate_on_load)
210
- end
211
-
212
- def remove_script_to_evaluate_on_load(identifier:)
213
- @devtools.send_cmd('Page.removeScriptToEvaluateOnLoad',
214
- identifier: identifier)
215
- end
216
-
217
- def remove_script_to_evaluate_on_new_document(identifier:)
218
- @devtools.send_cmd('Page.removeScriptToEvaluateOnNewDocument',
219
- identifier: identifier)
220
- end
221
-
222
- def screencast_frame_ack(session_id:)
223
- @devtools.send_cmd('Page.screencastFrameAck',
224
- sessionId: session_id)
225
- end
226
-
227
- def search_in_resource(frame_id:, url:, query:, case_sensitive: nil, is_regex: nil)
228
- @devtools.send_cmd('Page.searchInResource',
229
- frameId: frame_id,
230
- url: url,
231
- query: query,
232
- caseSensitive: case_sensitive,
233
- isRegex: is_regex)
234
- end
235
-
236
- def set_ad_blocking_enabled(enabled:)
237
- @devtools.send_cmd('Page.setAdBlockingEnabled',
238
- enabled: enabled)
239
- end
240
-
241
- def set_bypass_csp(enabled:)
242
- @devtools.send_cmd('Page.setBypassCSP',
243
- enabled: enabled)
244
- end
245
-
246
- def set_device_metrics_override(width:, height:, device_scale_factor:, mobile:, scale: nil, screen_width: nil, screen_height: nil, position_x: nil, position_y: nil, dont_set_visible_size: nil, screen_orientation: nil, viewport: nil)
247
- @devtools.send_cmd('Page.setDeviceMetricsOverride',
248
- width: width,
249
- height: height,
250
- deviceScaleFactor: device_scale_factor,
251
- mobile: mobile,
252
- scale: scale,
253
- screenWidth: screen_width,
254
- screenHeight: screen_height,
255
- positionX: position_x,
256
- positionY: position_y,
257
- dontSetVisibleSize: dont_set_visible_size,
258
- screenOrientation: screen_orientation,
259
- viewport: viewport)
260
- end
261
-
262
- def set_device_orientation_override(alpha:, beta:, gamma:)
263
- @devtools.send_cmd('Page.setDeviceOrientationOverride',
264
- alpha: alpha,
265
- beta: beta,
266
- gamma: gamma)
267
- end
268
-
269
- def set_font_families(font_families:)
270
- @devtools.send_cmd('Page.setFontFamilies',
271
- fontFamilies: font_families)
272
- end
273
-
274
- def set_font_sizes(font_sizes:)
275
- @devtools.send_cmd('Page.setFontSizes',
276
- fontSizes: font_sizes)
277
- end
278
-
279
- def set_document_content(frame_id:, html:)
280
- @devtools.send_cmd('Page.setDocumentContent',
281
- frameId: frame_id,
282
- html: html)
283
- end
284
-
285
- def set_download_behavior(behavior:, download_path: nil)
286
- @devtools.send_cmd('Page.setDownloadBehavior',
287
- behavior: behavior,
288
- downloadPath: download_path)
289
- end
290
-
291
- def set_geolocation_override(latitude: nil, longitude: nil, accuracy: nil)
292
- @devtools.send_cmd('Page.setGeolocationOverride',
293
- latitude: latitude,
294
- longitude: longitude,
295
- accuracy: accuracy)
296
- end
297
-
298
- def set_lifecycle_events_enabled(enabled:)
299
- @devtools.send_cmd('Page.setLifecycleEventsEnabled',
300
- enabled: enabled)
301
- end
302
-
303
- def set_touch_emulation_enabled(enabled:, configuration: nil)
304
- @devtools.send_cmd('Page.setTouchEmulationEnabled',
305
- enabled: enabled,
306
- configuration: configuration)
307
- end
308
-
309
- def start_screencast(format: nil, quality: nil, max_width: nil, max_height: nil, every_nth_frame: nil)
310
- @devtools.send_cmd('Page.startScreencast',
311
- format: format,
312
- quality: quality,
313
- maxWidth: max_width,
314
- maxHeight: max_height,
315
- everyNthFrame: every_nth_frame)
316
- end
317
-
318
- def stop_loading
319
- @devtools.send_cmd('Page.stopLoading')
320
- end
321
-
322
- def crash
323
- @devtools.send_cmd('Page.crash')
324
- end
325
-
326
- def close
327
- @devtools.send_cmd('Page.close')
328
- end
329
-
330
- def set_web_lifecycle_state(state:)
331
- @devtools.send_cmd('Page.setWebLifecycleState',
332
- state: state)
333
- end
334
-
335
- def stop_screencast
336
- @devtools.send_cmd('Page.stopScreencast')
337
- end
338
-
339
- def set_produce_compilation_cache(enabled:)
340
- @devtools.send_cmd('Page.setProduceCompilationCache',
341
- enabled: enabled)
342
- end
343
-
344
- def add_compilation_cache(url:, data:)
345
- @devtools.send_cmd('Page.addCompilationCache',
346
- url: url,
347
- data: data)
348
- end
349
-
350
- def clear_compilation_cache
351
- @devtools.send_cmd('Page.clearCompilationCache')
352
- end
353
-
354
- def generate_test_report(message:, group: nil)
355
- @devtools.send_cmd('Page.generateTestReport',
356
- message: message,
357
- group: group)
358
- end
359
-
360
- def wait_for_debugger
361
- @devtools.send_cmd('Page.waitForDebugger')
362
- end
363
-
364
- def set_intercept_file_chooser_dialog(enabled:)
365
- @devtools.send_cmd('Page.setInterceptFileChooserDialog',
366
- enabled: enabled)
367
- end
368
-
369
- end # Page
370
- end # V89
371
- end # DevTools
372
- end # Selenium
@@ -1,59 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- # This file is automatically generated. Any changes will be lost!
21
- module Selenium
22
- module DevTools
23
- module V89
24
- class Performance
25
- EVENTS = {
26
- metrics: 'metrics',
27
- }.freeze
28
-
29
- def initialize(devtools)
30
- @devtools = devtools
31
- end
32
-
33
- def on(event, &block)
34
- event = EVENTS[event] if event.is_a?(Symbol)
35
- @devtools.callbacks["Performance.#{event}"] << block
36
- end
37
-
38
- def disable
39
- @devtools.send_cmd('Performance.disable')
40
- end
41
-
42
- def enable(time_domain: nil)
43
- @devtools.send_cmd('Performance.enable',
44
- timeDomain: time_domain)
45
- end
46
-
47
- def set_time_domain(time_domain:)
48
- @devtools.send_cmd('Performance.setTimeDomain',
49
- timeDomain: time_domain)
50
- end
51
-
52
- def get_metrics
53
- @devtools.send_cmd('Performance.getMetrics')
54
- end
55
-
56
- end # Performance
57
- end # V89
58
- end # DevTools
59
- end # Selenium
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- # This file is automatically generated. Any changes will be lost!
21
- module Selenium
22
- module DevTools
23
- module V89
24
- class PerformanceTimeline
25
- EVENTS = {
26
- timeline_event_added: 'timelineEventAdded',
27
- }.freeze
28
-
29
- def initialize(devtools)
30
- @devtools = devtools
31
- end
32
-
33
- def on(event, &block)
34
- event = EVENTS[event] if event.is_a?(Symbol)
35
- @devtools.callbacks["PerformanceTimeline.#{event}"] << block
36
- end
37
-
38
- def enable(event_types:)
39
- @devtools.send_cmd('PerformanceTimeline.enable',
40
- eventTypes: event_types)
41
- end
42
-
43
- end # PerformanceTimeline
44
- end # V89
45
- end # DevTools
46
- end # Selenium
@@ -1,67 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- # This file is automatically generated. Any changes will be lost!
21
- module Selenium
22
- module DevTools
23
- module V89
24
- class Security
25
- EVENTS = {
26
- certificate_error: 'certificateError',
27
- visible_security_state_changed: 'visibleSecurityStateChanged',
28
- security_state_changed: 'securityStateChanged',
29
- }.freeze
30
-
31
- def initialize(devtools)
32
- @devtools = devtools
33
- end
34
-
35
- def on(event, &block)
36
- event = EVENTS[event] if event.is_a?(Symbol)
37
- @devtools.callbacks["Security.#{event}"] << block
38
- end
39
-
40
- def disable
41
- @devtools.send_cmd('Security.disable')
42
- end
43
-
44
- def enable
45
- @devtools.send_cmd('Security.enable')
46
- end
47
-
48
- def set_ignore_certificate_errors(ignore:)
49
- @devtools.send_cmd('Security.setIgnoreCertificateErrors',
50
- ignore: ignore)
51
- end
52
-
53
- def handle_certificate_error(event_id:, action:)
54
- @devtools.send_cmd('Security.handleCertificateError',
55
- eventId: event_id,
56
- action: action)
57
- end
58
-
59
- def set_override_certificate_errors(override:)
60
- @devtools.send_cmd('Security.setOverrideCertificateErrors',
61
- override: override)
62
- end
63
-
64
- end # Security
65
- end # V89
66
- end # DevTools
67
- end # Selenium
@@ -1,97 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- # This file is automatically generated. Any changes will be lost!
21
- module Selenium
22
- module DevTools
23
- module V89
24
- class Storage
25
- EVENTS = {
26
- cache_storage_content_updated: 'cacheStorageContentUpdated',
27
- cache_storage_list_updated: 'cacheStorageListUpdated',
28
- indexed_db_content_updated: 'indexedDBContentUpdated',
29
- indexed_db_list_updated: 'indexedDBListUpdated',
30
- }.freeze
31
-
32
- def initialize(devtools)
33
- @devtools = devtools
34
- end
35
-
36
- def on(event, &block)
37
- event = EVENTS[event] if event.is_a?(Symbol)
38
- @devtools.callbacks["Storage.#{event}"] << block
39
- end
40
-
41
- def clear_data_for_origin(origin:, storage_types:)
42
- @devtools.send_cmd('Storage.clearDataForOrigin',
43
- origin: origin,
44
- storageTypes: storage_types)
45
- end
46
-
47
- def get_cookies(browser_context_id: nil)
48
- @devtools.send_cmd('Storage.getCookies',
49
- browserContextId: browser_context_id)
50
- end
51
-
52
- def set_cookies(cookies:, browser_context_id: nil)
53
- @devtools.send_cmd('Storage.setCookies',
54
- cookies: cookies,
55
- browserContextId: browser_context_id)
56
- end
57
-
58
- def clear_cookies(browser_context_id: nil)
59
- @devtools.send_cmd('Storage.clearCookies',
60
- browserContextId: browser_context_id)
61
- end
62
-
63
- def get_usage_and_quota(origin:)
64
- @devtools.send_cmd('Storage.getUsageAndQuota',
65
- origin: origin)
66
- end
67
-
68
- def override_quota_for_origin(origin:, quota_size: nil)
69
- @devtools.send_cmd('Storage.overrideQuotaForOrigin',
70
- origin: origin,
71
- quotaSize: quota_size)
72
- end
73
-
74
- def track_cache_storage_for_origin(origin:)
75
- @devtools.send_cmd('Storage.trackCacheStorageForOrigin',
76
- origin: origin)
77
- end
78
-
79
- def track_indexed_db_for_origin(origin:)
80
- @devtools.send_cmd('Storage.trackIndexedDBForOrigin',
81
- origin: origin)
82
- end
83
-
84
- def untrack_cache_storage_for_origin(origin:)
85
- @devtools.send_cmd('Storage.untrackCacheStorageForOrigin',
86
- origin: origin)
87
- end
88
-
89
- def untrack_indexed_db_for_origin(origin:)
90
- @devtools.send_cmd('Storage.untrackIndexedDBForOrigin',
91
- origin: origin)
92
- end
93
-
94
- end # Storage
95
- end # V89
96
- end # DevTools
97
- end # Selenium
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- # This file is automatically generated. Any changes will be lost!
21
- module Selenium
22
- module DevTools
23
- module V89
24
- class SystemInfo
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["SystemInfo.#{event}"] << block
33
- end
34
-
35
- def get_info
36
- @devtools.send_cmd('SystemInfo.getInfo')
37
- end
38
-
39
- def get_process_info
40
- @devtools.send_cmd('SystemInfo.getProcessInfo')
41
- end
42
-
43
- end # SystemInfo
44
- end # V89
45
- end # DevTools
46
- end # Selenium