selenium-devtools 0.105.0 → 0.107.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/{v102 → v106}/accessibility.rb +2 -2
  3. data/lib/selenium/devtools/{v102 → v106}/animation.rb +2 -2
  4. data/lib/selenium/devtools/{v102 → v106}/audits.rb +2 -2
  5. data/lib/selenium/devtools/{v101 → v106}/background_service.rb +2 -2
  6. data/lib/selenium/devtools/{v101 → v106}/browser.rb +2 -2
  7. data/lib/selenium/devtools/{v102 → v106}/cache_storage.rb +2 -2
  8. data/lib/selenium/devtools/{v103 → v106}/cast.rb +2 -2
  9. data/lib/selenium/devtools/{v102 → v106}/console.rb +2 -2
  10. data/lib/selenium/devtools/{v102 → v106}/css.rb +9 -2
  11. data/lib/selenium/devtools/{v102 → v106}/database.rb +2 -2
  12. data/lib/selenium/devtools/{v104 → v106}/debugger.rb +15 -4
  13. data/lib/selenium/devtools/{v101 → v106}/device_orientation.rb +2 -2
  14. data/lib/selenium/devtools/{v102 → v106}/dom.rb +7 -2
  15. data/lib/selenium/devtools/{v103 → v106}/dom_debugger.rb +2 -2
  16. data/lib/selenium/devtools/{v102 → v106}/dom_snapshot.rb +2 -2
  17. data/lib/selenium/devtools/{v101 → v106}/dom_storage.rb +2 -2
  18. data/lib/selenium/devtools/{v104 → v106}/emulation.rb +2 -2
  19. data/lib/selenium/devtools/{v102 → v106}/event_breakpoints.rb +2 -2
  20. data/lib/selenium/devtools/{v101 → v106}/fetch.rb +2 -2
  21. data/lib/selenium/devtools/{v101 → v106}/headless_experimental.rb +2 -2
  22. data/lib/selenium/devtools/{v103 → v106}/heap_profiler.rb +2 -2
  23. data/lib/selenium/devtools/{v103 → v106}/indexed_db.rb +17 -10
  24. data/lib/selenium/devtools/{v101 → v106}/input.rb +2 -2
  25. data/lib/selenium/devtools/{v102 → v106}/inspector.rb +2 -2
  26. data/lib/selenium/devtools/{v101 → v106}/io.rb +2 -2
  27. data/lib/selenium/devtools/{v102 → v106}/layer_tree.rb +2 -2
  28. data/lib/selenium/devtools/{v103 → v106}/log.rb +2 -2
  29. data/lib/selenium/devtools/{v102 → v106}/media.rb +2 -2
  30. data/lib/selenium/devtools/{v102 → v106}/memory.rb +2 -2
  31. data/lib/selenium/devtools/{v103 → v106}/network.rb +2 -2
  32. data/lib/selenium/devtools/{v101 → v106}/overlay.rb +2 -2
  33. data/lib/selenium/devtools/{v103 → v106}/page.rb +2 -2
  34. data/lib/selenium/devtools/{v101 → v106}/performance.rb +2 -2
  35. data/lib/selenium/devtools/{v103 → v106}/performance_timeline.rb +2 -2
  36. data/lib/selenium/devtools/{v102 → v106}/profiler.rb +2 -2
  37. data/lib/selenium/devtools/{v102 → v106}/runtime.rb +2 -2
  38. data/lib/selenium/devtools/{v102 → v106}/schema.rb +2 -2
  39. data/lib/selenium/devtools/{v102 → v106}/security.rb +2 -2
  40. data/lib/selenium/devtools/{v103 → v106}/service_worker.rb +2 -2
  41. data/lib/selenium/devtools/{v104 → v106}/storage.rb +18 -2
  42. data/lib/selenium/devtools/{v103 → v106}/system_info.rb +2 -2
  43. data/lib/selenium/devtools/{v103 → v106}/target.rb +14 -10
  44. data/lib/selenium/devtools/{v101 → v106}/tethering.rb +2 -2
  45. data/lib/selenium/devtools/{v101 → v106}/tracing.rb +2 -2
  46. data/lib/selenium/devtools/{v101 → v106}/web_audio.rb +2 -2
  47. data/lib/selenium/devtools/{v103 → v106}/web_authn.rb +2 -2
  48. data/lib/selenium/devtools/v106.rb +1 -0
  49. data/lib/selenium/devtools/{v101 → v107}/accessibility.rb +2 -2
  50. data/lib/selenium/devtools/{v103 → v107}/animation.rb +2 -2
  51. data/lib/selenium/devtools/{v103 → v107}/audits.rb +2 -2
  52. data/lib/selenium/devtools/{v103 → v107}/background_service.rb +2 -2
  53. data/lib/selenium/devtools/{v103 → v107}/browser.rb +2 -2
  54. data/lib/selenium/devtools/{v101 → v107}/cache_storage.rb +2 -2
  55. data/lib/selenium/devtools/{v104 → v107}/cast.rb +2 -2
  56. data/lib/selenium/devtools/{v101 → v107}/console.rb +2 -2
  57. data/lib/selenium/devtools/{v101 → v107}/css.rb +9 -2
  58. data/lib/selenium/devtools/{v103 → v107}/database.rb +2 -2
  59. data/lib/selenium/devtools/{v103 → v107}/debugger.rb +18 -6
  60. data/lib/selenium/devtools/{v102 → v107}/device_orientation.rb +2 -2
  61. data/lib/selenium/devtools/{v103 → v107}/dom.rb +7 -2
  62. data/lib/selenium/devtools/{v104 → v107}/dom_debugger.rb +2 -2
  63. data/lib/selenium/devtools/{v103 → v107}/dom_snapshot.rb +2 -2
  64. data/lib/selenium/devtools/{v102 → v107}/dom_storage.rb +2 -2
  65. data/lib/selenium/devtools/{v103 → v107}/emulation.rb +7 -2
  66. data/lib/selenium/devtools/{v103 → v107}/event_breakpoints.rb +2 -2
  67. data/lib/selenium/devtools/{v103 → v107}/fetch.rb +2 -2
  68. data/lib/selenium/devtools/{v102 → v107}/headless_experimental.rb +2 -2
  69. data/lib/selenium/devtools/{v104 → v107}/heap_profiler.rb +2 -2
  70. data/lib/selenium/devtools/{v101 → v107}/indexed_db.rb +17 -10
  71. data/lib/selenium/devtools/{v103 → v107}/input.rb +2 -2
  72. data/lib/selenium/devtools/{v103 → v107}/inspector.rb +2 -2
  73. data/lib/selenium/devtools/{v103 → v107}/io.rb +2 -2
  74. data/lib/selenium/devtools/{v103 → v107}/layer_tree.rb +2 -2
  75. data/lib/selenium/devtools/{v104 → v107}/log.rb +2 -2
  76. data/lib/selenium/devtools/{v103 → v107}/media.rb +2 -2
  77. data/lib/selenium/devtools/{v101 → v107}/memory.rb +2 -2
  78. data/lib/selenium/devtools/{v102 → v107}/network.rb +2 -2
  79. data/lib/selenium/devtools/{v103 → v107}/overlay.rb +2 -2
  80. data/lib/selenium/devtools/{v104 → v107}/page.rb +2 -2
  81. data/lib/selenium/devtools/{v103 → v107}/performance.rb +2 -2
  82. data/lib/selenium/devtools/{v102 → v107}/performance_timeline.rb +2 -2
  83. data/lib/selenium/devtools/{v101 → v107}/profiler.rb +2 -2
  84. data/lib/selenium/devtools/{v103 → v107}/runtime.rb +2 -2
  85. data/lib/selenium/devtools/{v103 → v107}/schema.rb +2 -2
  86. data/lib/selenium/devtools/{v101 → v107}/security.rb +2 -2
  87. data/lib/selenium/devtools/{v104 → v107}/service_worker.rb +2 -2
  88. data/lib/selenium/devtools/{v103 → v107}/storage.rb +23 -2
  89. data/lib/selenium/devtools/{v102 → v107}/system_info.rb +2 -2
  90. data/lib/selenium/devtools/{v104 → v107}/target.rb +14 -10
  91. data/lib/selenium/devtools/{v103 → v107}/tethering.rb +2 -2
  92. data/lib/selenium/devtools/{v102 → v107}/tracing.rb +2 -2
  93. data/lib/selenium/devtools/{v102 → v107}/web_audio.rb +2 -2
  94. data/lib/selenium/devtools/{v104 → v107}/web_authn.rb +2 -2
  95. data/lib/selenium/devtools/v107.rb +1 -0
  96. data/lib/selenium/devtools/version.rb +1 -1
  97. metadata +97 -191
  98. data/lib/selenium/devtools/v101/animation.rb +0 -94
  99. data/lib/selenium/devtools/v101/audits.rb +0 -62
  100. data/lib/selenium/devtools/v101/cast.rb +0 -71
  101. data/lib/selenium/devtools/v101/database.rb +0 -60
  102. data/lib/selenium/devtools/v101/debugger.rb +0 -220
  103. data/lib/selenium/devtools/v101/dom.rb +0 -335
  104. data/lib/selenium/devtools/v101/dom_debugger.rb +0 -94
  105. data/lib/selenium/devtools/v101/dom_snapshot.rb +0 -63
  106. data/lib/selenium/devtools/v101/emulation.rb +0 -201
  107. data/lib/selenium/devtools/v101/event_breakpoints.rb +0 -48
  108. data/lib/selenium/devtools/v101/heap_profiler.rb +0 -105
  109. data/lib/selenium/devtools/v101/inspector.rb +0 -51
  110. data/lib/selenium/devtools/v101/layer_tree.rb +0 -91
  111. data/lib/selenium/devtools/v101/log.rb +0 -62
  112. data/lib/selenium/devtools/v101/media.rb +0 -53
  113. data/lib/selenium/devtools/v101/network.rb +0 -264
  114. data/lib/selenium/devtools/v101/page.rb +0 -394
  115. data/lib/selenium/devtools/v101/performance_timeline.rb +0 -46
  116. data/lib/selenium/devtools/v101/runtime.rb +0 -199
  117. data/lib/selenium/devtools/v101/schema.rb +0 -42
  118. data/lib/selenium/devtools/v101/service_worker.rb +0 -112
  119. data/lib/selenium/devtools/v101/storage.rb +0 -118
  120. data/lib/selenium/devtools/v101/system_info.rb +0 -46
  121. data/lib/selenium/devtools/v101/target.rb +0 -146
  122. data/lib/selenium/devtools/v101/web_authn.rb +0 -96
  123. data/lib/selenium/devtools/v101.rb +0 -1
  124. data/lib/selenium/devtools/v102/background_service.rb +0 -63
  125. data/lib/selenium/devtools/v102/browser.rb +0 -135
  126. data/lib/selenium/devtools/v102/cast.rb +0 -71
  127. data/lib/selenium/devtools/v102/debugger.rb +0 -220
  128. data/lib/selenium/devtools/v102/dom_debugger.rb +0 -94
  129. data/lib/selenium/devtools/v102/emulation.rb +0 -201
  130. data/lib/selenium/devtools/v102/fetch.rb +0 -103
  131. data/lib/selenium/devtools/v102/heap_profiler.rb +0 -105
  132. data/lib/selenium/devtools/v102/indexed_db.rb +0 -96
  133. data/lib/selenium/devtools/v102/input.rb +0 -168
  134. data/lib/selenium/devtools/v102/io.rb +0 -55
  135. data/lib/selenium/devtools/v102/log.rb +0 -62
  136. data/lib/selenium/devtools/v102/overlay.rb +0 -202
  137. data/lib/selenium/devtools/v102/page.rb +0 -395
  138. data/lib/selenium/devtools/v102/performance.rb +0 -59
  139. data/lib/selenium/devtools/v102/service_worker.rb +0 -112
  140. data/lib/selenium/devtools/v102/storage.rb +0 -118
  141. data/lib/selenium/devtools/v102/target.rb +0 -146
  142. data/lib/selenium/devtools/v102/tethering.rb +0 -51
  143. data/lib/selenium/devtools/v102/web_authn.rb +0 -96
  144. data/lib/selenium/devtools/v102.rb +0 -1
  145. data/lib/selenium/devtools/v103/accessibility.rb +0 -91
  146. data/lib/selenium/devtools/v103/cache_storage.rb +0 -69
  147. data/lib/selenium/devtools/v103/console.rb +0 -53
  148. data/lib/selenium/devtools/v103/css.rb +0 -194
  149. data/lib/selenium/devtools/v103/device_orientation.rb +0 -49
  150. data/lib/selenium/devtools/v103/dom_storage.rb +0 -80
  151. data/lib/selenium/devtools/v103/headless_experimental.rb +0 -57
  152. data/lib/selenium/devtools/v103/memory.rb +0 -82
  153. data/lib/selenium/devtools/v103/profiler.rb +0 -95
  154. data/lib/selenium/devtools/v103/security.rb +0 -67
  155. data/lib/selenium/devtools/v103/tracing.rb +0 -75
  156. data/lib/selenium/devtools/v103/web_audio.rb +0 -66
  157. data/lib/selenium/devtools/v103.rb +0 -1
  158. data/lib/selenium/devtools/v104/accessibility.rb +0 -91
  159. data/lib/selenium/devtools/v104/animation.rb +0 -94
  160. data/lib/selenium/devtools/v104/audits.rb +0 -62
  161. data/lib/selenium/devtools/v104/background_service.rb +0 -63
  162. data/lib/selenium/devtools/v104/browser.rb +0 -135
  163. data/lib/selenium/devtools/v104/cache_storage.rb +0 -69
  164. data/lib/selenium/devtools/v104/console.rb +0 -53
  165. data/lib/selenium/devtools/v104/css.rb +0 -194
  166. data/lib/selenium/devtools/v104/database.rb +0 -60
  167. data/lib/selenium/devtools/v104/device_orientation.rb +0 -49
  168. data/lib/selenium/devtools/v104/dom.rb +0 -335
  169. data/lib/selenium/devtools/v104/dom_snapshot.rb +0 -63
  170. data/lib/selenium/devtools/v104/dom_storage.rb +0 -75
  171. data/lib/selenium/devtools/v104/event_breakpoints.rb +0 -48
  172. data/lib/selenium/devtools/v104/fetch.rb +0 -103
  173. data/lib/selenium/devtools/v104/headless_experimental.rb +0 -57
  174. data/lib/selenium/devtools/v104/indexed_db.rb +0 -96
  175. data/lib/selenium/devtools/v104/input.rb +0 -168
  176. data/lib/selenium/devtools/v104/inspector.rb +0 -51
  177. data/lib/selenium/devtools/v104/io.rb +0 -55
  178. data/lib/selenium/devtools/v104/layer_tree.rb +0 -91
  179. data/lib/selenium/devtools/v104/media.rb +0 -53
  180. data/lib/selenium/devtools/v104/memory.rb +0 -82
  181. data/lib/selenium/devtools/v104/network.rb +0 -264
  182. data/lib/selenium/devtools/v104/overlay.rb +0 -202
  183. data/lib/selenium/devtools/v104/performance.rb +0 -59
  184. data/lib/selenium/devtools/v104/performance_timeline.rb +0 -46
  185. data/lib/selenium/devtools/v104/profiler.rb +0 -95
  186. data/lib/selenium/devtools/v104/runtime.rb +0 -201
  187. data/lib/selenium/devtools/v104/schema.rb +0 -42
  188. data/lib/selenium/devtools/v104/security.rb +0 -67
  189. data/lib/selenium/devtools/v104/system_info.rb +0 -46
  190. data/lib/selenium/devtools/v104/tethering.rb +0 -51
  191. data/lib/selenium/devtools/v104/tracing.rb +0 -75
  192. data/lib/selenium/devtools/v104/web_audio.rb +0 -66
  193. data/lib/selenium/devtools/v104.rb +0 -1
@@ -1,395 +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 V102
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
- back_forward_cache_not_used: 'backForwardCacheNotUsed',
46
- prerender_attempt_completed: 'prerenderAttemptCompleted',
47
- load_event_fired: 'loadEventFired',
48
- navigated_within_document: 'navigatedWithinDocument',
49
- screencast_frame: 'screencastFrame',
50
- screencast_visibility_changed: 'screencastVisibilityChanged',
51
- window_open: 'windowOpen',
52
- compilation_cache_produced: 'compilationCacheProduced',
53
- }.freeze
54
-
55
- def initialize(devtools)
56
- @devtools = devtools
57
- end
58
-
59
- def on(event, &block)
60
- event = EVENTS[event] if event.is_a?(Symbol)
61
- @devtools.callbacks["Page.#{event}"] << block
62
- end
63
-
64
- def add_script_to_evaluate_on_load(script_source:)
65
- @devtools.send_cmd('Page.addScriptToEvaluateOnLoad',
66
- scriptSource: script_source)
67
- end
68
-
69
- def add_script_to_evaluate_on_new_document(source:, world_name: nil, include_command_line_api: nil)
70
- @devtools.send_cmd('Page.addScriptToEvaluateOnNewDocument',
71
- source: source,
72
- worldName: world_name,
73
- includeCommandLineAPI: include_command_line_api)
74
- end
75
-
76
- def bring_to_front
77
- @devtools.send_cmd('Page.bringToFront')
78
- end
79
-
80
- def capture_screenshot(format: nil, quality: nil, clip: nil, from_surface: nil, capture_beyond_viewport: nil)
81
- @devtools.send_cmd('Page.captureScreenshot',
82
- format: format,
83
- quality: quality,
84
- clip: clip,
85
- fromSurface: from_surface,
86
- captureBeyondViewport: capture_beyond_viewport)
87
- end
88
-
89
- def capture_snapshot(format: nil)
90
- @devtools.send_cmd('Page.captureSnapshot',
91
- format: format)
92
- end
93
-
94
- def clear_device_metrics_override
95
- @devtools.send_cmd('Page.clearDeviceMetricsOverride')
96
- end
97
-
98
- def clear_device_orientation_override
99
- @devtools.send_cmd('Page.clearDeviceOrientationOverride')
100
- end
101
-
102
- def clear_geolocation_override
103
- @devtools.send_cmd('Page.clearGeolocationOverride')
104
- end
105
-
106
- def create_isolated_world(frame_id:, world_name: nil, grant_univeral_access: nil)
107
- @devtools.send_cmd('Page.createIsolatedWorld',
108
- frameId: frame_id,
109
- worldName: world_name,
110
- grantUniveralAccess: grant_univeral_access)
111
- end
112
-
113
- def delete_cookie(cookie_name:, url:)
114
- @devtools.send_cmd('Page.deleteCookie',
115
- cookieName: cookie_name,
116
- url: url)
117
- end
118
-
119
- def disable
120
- @devtools.send_cmd('Page.disable')
121
- end
122
-
123
- def enable
124
- @devtools.send_cmd('Page.enable')
125
- end
126
-
127
- def get_app_manifest
128
- @devtools.send_cmd('Page.getAppManifest')
129
- end
130
-
131
- def get_installability_errors
132
- @devtools.send_cmd('Page.getInstallabilityErrors')
133
- end
134
-
135
- def get_manifest_icons
136
- @devtools.send_cmd('Page.getManifestIcons')
137
- end
138
-
139
- def get_app_id
140
- @devtools.send_cmd('Page.getAppId')
141
- end
142
-
143
- def get_cookies
144
- @devtools.send_cmd('Page.getCookies')
145
- end
146
-
147
- def get_frame_tree
148
- @devtools.send_cmd('Page.getFrameTree')
149
- end
150
-
151
- def get_layout_metrics
152
- @devtools.send_cmd('Page.getLayoutMetrics')
153
- end
154
-
155
- def get_navigation_history
156
- @devtools.send_cmd('Page.getNavigationHistory')
157
- end
158
-
159
- def reset_navigation_history
160
- @devtools.send_cmd('Page.resetNavigationHistory')
161
- end
162
-
163
- def get_resource_content(frame_id:, url:)
164
- @devtools.send_cmd('Page.getResourceContent',
165
- frameId: frame_id,
166
- url: url)
167
- end
168
-
169
- def get_resource_tree
170
- @devtools.send_cmd('Page.getResourceTree')
171
- end
172
-
173
- def handle_javascript_dialog(accept:, prompt_text: nil)
174
- @devtools.send_cmd('Page.handleJavaScriptDialog',
175
- accept: accept,
176
- promptText: prompt_text)
177
- end
178
-
179
- def navigate(url:, referrer: nil, transition_type: nil, frame_id: nil, referrer_policy: nil)
180
- @devtools.send_cmd('Page.navigate',
181
- url: url,
182
- referrer: referrer,
183
- transitionType: transition_type,
184
- frameId: frame_id,
185
- referrerPolicy: referrer_policy)
186
- end
187
-
188
- def navigate_to_history_entry(entry_id:)
189
- @devtools.send_cmd('Page.navigateToHistoryEntry',
190
- entryId: entry_id)
191
- end
192
-
193
- def print_to_pdf(landscape: nil, display_header_footer: nil, print_background: nil, scale: nil, paper_width: nil, paper_height: nil, margin_top: nil, margin_bottom: nil, margin_left: nil, margin_right: nil, page_ranges: nil, ignore_invalid_page_ranges: nil, header_template: nil, footer_template: nil, prefer_css_page_size: nil, transfer_mode: nil)
194
- @devtools.send_cmd('Page.printToPDF',
195
- landscape: landscape,
196
- displayHeaderFooter: display_header_footer,
197
- printBackground: print_background,
198
- scale: scale,
199
- paperWidth: paper_width,
200
- paperHeight: paper_height,
201
- marginTop: margin_top,
202
- marginBottom: margin_bottom,
203
- marginLeft: margin_left,
204
- marginRight: margin_right,
205
- pageRanges: page_ranges,
206
- ignoreInvalidPageRanges: ignore_invalid_page_ranges,
207
- headerTemplate: header_template,
208
- footerTemplate: footer_template,
209
- preferCSSPageSize: prefer_css_page_size,
210
- transferMode: transfer_mode)
211
- end
212
-
213
- def reload(ignore_cache: nil, script_to_evaluate_on_load: nil)
214
- @devtools.send_cmd('Page.reload',
215
- ignoreCache: ignore_cache,
216
- scriptToEvaluateOnLoad: script_to_evaluate_on_load)
217
- end
218
-
219
- def remove_script_to_evaluate_on_load(identifier:)
220
- @devtools.send_cmd('Page.removeScriptToEvaluateOnLoad',
221
- identifier: identifier)
222
- end
223
-
224
- def remove_script_to_evaluate_on_new_document(identifier:)
225
- @devtools.send_cmd('Page.removeScriptToEvaluateOnNewDocument',
226
- identifier: identifier)
227
- end
228
-
229
- def screencast_frame_ack(session_id:)
230
- @devtools.send_cmd('Page.screencastFrameAck',
231
- sessionId: session_id)
232
- end
233
-
234
- def search_in_resource(frame_id:, url:, query:, case_sensitive: nil, is_regex: nil)
235
- @devtools.send_cmd('Page.searchInResource',
236
- frameId: frame_id,
237
- url: url,
238
- query: query,
239
- caseSensitive: case_sensitive,
240
- isRegex: is_regex)
241
- end
242
-
243
- def set_ad_blocking_enabled(enabled:)
244
- @devtools.send_cmd('Page.setAdBlockingEnabled',
245
- enabled: enabled)
246
- end
247
-
248
- def set_bypass_csp(enabled:)
249
- @devtools.send_cmd('Page.setBypassCSP',
250
- enabled: enabled)
251
- end
252
-
253
- def get_permissions_policy_state(frame_id:)
254
- @devtools.send_cmd('Page.getPermissionsPolicyState',
255
- frameId: frame_id)
256
- end
257
-
258
- def get_origin_trials(frame_id:)
259
- @devtools.send_cmd('Page.getOriginTrials',
260
- frameId: frame_id)
261
- end
262
-
263
- 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)
264
- @devtools.send_cmd('Page.setDeviceMetricsOverride',
265
- width: width,
266
- height: height,
267
- deviceScaleFactor: device_scale_factor,
268
- mobile: mobile,
269
- scale: scale,
270
- screenWidth: screen_width,
271
- screenHeight: screen_height,
272
- positionX: position_x,
273
- positionY: position_y,
274
- dontSetVisibleSize: dont_set_visible_size,
275
- screenOrientation: screen_orientation,
276
- viewport: viewport)
277
- end
278
-
279
- def set_device_orientation_override(alpha:, beta:, gamma:)
280
- @devtools.send_cmd('Page.setDeviceOrientationOverride',
281
- alpha: alpha,
282
- beta: beta,
283
- gamma: gamma)
284
- end
285
-
286
- def set_font_families(font_families:, for_scripts: nil)
287
- @devtools.send_cmd('Page.setFontFamilies',
288
- fontFamilies: font_families,
289
- forScripts: for_scripts)
290
- end
291
-
292
- def set_font_sizes(font_sizes:)
293
- @devtools.send_cmd('Page.setFontSizes',
294
- fontSizes: font_sizes)
295
- end
296
-
297
- def set_document_content(frame_id:, html:)
298
- @devtools.send_cmd('Page.setDocumentContent',
299
- frameId: frame_id,
300
- html: html)
301
- end
302
-
303
- def set_download_behavior(behavior:, download_path: nil)
304
- @devtools.send_cmd('Page.setDownloadBehavior',
305
- behavior: behavior,
306
- downloadPath: download_path)
307
- end
308
-
309
- def set_geolocation_override(latitude: nil, longitude: nil, accuracy: nil)
310
- @devtools.send_cmd('Page.setGeolocationOverride',
311
- latitude: latitude,
312
- longitude: longitude,
313
- accuracy: accuracy)
314
- end
315
-
316
- def set_lifecycle_events_enabled(enabled:)
317
- @devtools.send_cmd('Page.setLifecycleEventsEnabled',
318
- enabled: enabled)
319
- end
320
-
321
- def set_touch_emulation_enabled(enabled:, configuration: nil)
322
- @devtools.send_cmd('Page.setTouchEmulationEnabled',
323
- enabled: enabled,
324
- configuration: configuration)
325
- end
326
-
327
- def start_screencast(format: nil, quality: nil, max_width: nil, max_height: nil, every_nth_frame: nil)
328
- @devtools.send_cmd('Page.startScreencast',
329
- format: format,
330
- quality: quality,
331
- maxWidth: max_width,
332
- maxHeight: max_height,
333
- everyNthFrame: every_nth_frame)
334
- end
335
-
336
- def stop_loading
337
- @devtools.send_cmd('Page.stopLoading')
338
- end
339
-
340
- def crash
341
- @devtools.send_cmd('Page.crash')
342
- end
343
-
344
- def close
345
- @devtools.send_cmd('Page.close')
346
- end
347
-
348
- def set_web_lifecycle_state(state:)
349
- @devtools.send_cmd('Page.setWebLifecycleState',
350
- state: state)
351
- end
352
-
353
- def stop_screencast
354
- @devtools.send_cmd('Page.stopScreencast')
355
- end
356
-
357
- def produce_compilation_cache(scripts:)
358
- @devtools.send_cmd('Page.produceCompilationCache',
359
- scripts: scripts)
360
- end
361
-
362
- def add_compilation_cache(url:, data:)
363
- @devtools.send_cmd('Page.addCompilationCache',
364
- url: url,
365
- data: data)
366
- end
367
-
368
- def clear_compilation_cache
369
- @devtools.send_cmd('Page.clearCompilationCache')
370
- end
371
-
372
- def set_spc_transaction_mode(mode:)
373
- @devtools.send_cmd('Page.setSPCTransactionMode',
374
- mode: mode)
375
- end
376
-
377
- def generate_test_report(message:, group: nil)
378
- @devtools.send_cmd('Page.generateTestReport',
379
- message: message,
380
- group: group)
381
- end
382
-
383
- def wait_for_debugger
384
- @devtools.send_cmd('Page.waitForDebugger')
385
- end
386
-
387
- def set_intercept_file_chooser_dialog(enabled:)
388
- @devtools.send_cmd('Page.setInterceptFileChooserDialog',
389
- enabled: enabled)
390
- end
391
-
392
- end # Page
393
- end # V102
394
- end # DevTools
395
- 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 V102
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 # V102
58
- end # DevTools
59
- end # Selenium
@@ -1,112 +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 V102
24
- class ServiceWorker
25
- EVENTS = {
26
- worker_error_reported: 'workerErrorReported',
27
- worker_registration_updated: 'workerRegistrationUpdated',
28
- worker_version_updated: 'workerVersionUpdated',
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["ServiceWorker.#{event}"] << block
38
- end
39
-
40
- def deliver_push_message(origin:, registration_id:, data:)
41
- @devtools.send_cmd('ServiceWorker.deliverPushMessage',
42
- origin: origin,
43
- registrationId: registration_id,
44
- data: data)
45
- end
46
-
47
- def disable
48
- @devtools.send_cmd('ServiceWorker.disable')
49
- end
50
-
51
- def dispatch_sync_event(origin:, registration_id:, tag:, last_chance:)
52
- @devtools.send_cmd('ServiceWorker.dispatchSyncEvent',
53
- origin: origin,
54
- registrationId: registration_id,
55
- tag: tag,
56
- lastChance: last_chance)
57
- end
58
-
59
- def dispatch_periodic_sync_event(origin:, registration_id:, tag:)
60
- @devtools.send_cmd('ServiceWorker.dispatchPeriodicSyncEvent',
61
- origin: origin,
62
- registrationId: registration_id,
63
- tag: tag)
64
- end
65
-
66
- def enable
67
- @devtools.send_cmd('ServiceWorker.enable')
68
- end
69
-
70
- def inspect_worker(version_id:)
71
- @devtools.send_cmd('ServiceWorker.inspectWorker',
72
- versionId: version_id)
73
- end
74
-
75
- def set_force_update_on_page_load(force_update_on_page_load:)
76
- @devtools.send_cmd('ServiceWorker.setForceUpdateOnPageLoad',
77
- forceUpdateOnPageLoad: force_update_on_page_load)
78
- end
79
-
80
- def skip_waiting(scope_url:)
81
- @devtools.send_cmd('ServiceWorker.skipWaiting',
82
- scopeURL: scope_url)
83
- end
84
-
85
- def start_worker(scope_url:)
86
- @devtools.send_cmd('ServiceWorker.startWorker',
87
- scopeURL: scope_url)
88
- end
89
-
90
- def stop_all_workers
91
- @devtools.send_cmd('ServiceWorker.stopAllWorkers')
92
- end
93
-
94
- def stop_worker(version_id:)
95
- @devtools.send_cmd('ServiceWorker.stopWorker',
96
- versionId: version_id)
97
- end
98
-
99
- def unregister(scope_url:)
100
- @devtools.send_cmd('ServiceWorker.unregister',
101
- scopeURL: scope_url)
102
- end
103
-
104
- def update_registration(scope_url:)
105
- @devtools.send_cmd('ServiceWorker.updateRegistration',
106
- scopeURL: scope_url)
107
- end
108
-
109
- end # ServiceWorker
110
- end # V102
111
- end # DevTools
112
- end # Selenium
@@ -1,118 +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 V102
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
- interest_group_accessed: 'interestGroupAccessed',
31
- }.freeze
32
-
33
- def initialize(devtools)
34
- @devtools = devtools
35
- end
36
-
37
- def on(event, &block)
38
- event = EVENTS[event] if event.is_a?(Symbol)
39
- @devtools.callbacks["Storage.#{event}"] << block
40
- end
41
-
42
- def clear_data_for_origin(origin:, storage_types:)
43
- @devtools.send_cmd('Storage.clearDataForOrigin',
44
- origin: origin,
45
- storageTypes: storage_types)
46
- end
47
-
48
- def get_cookies(browser_context_id: nil)
49
- @devtools.send_cmd('Storage.getCookies',
50
- browserContextId: browser_context_id)
51
- end
52
-
53
- def set_cookies(cookies:, browser_context_id: nil)
54
- @devtools.send_cmd('Storage.setCookies',
55
- cookies: cookies,
56
- browserContextId: browser_context_id)
57
- end
58
-
59
- def clear_cookies(browser_context_id: nil)
60
- @devtools.send_cmd('Storage.clearCookies',
61
- browserContextId: browser_context_id)
62
- end
63
-
64
- def get_usage_and_quota(origin:)
65
- @devtools.send_cmd('Storage.getUsageAndQuota',
66
- origin: origin)
67
- end
68
-
69
- def override_quota_for_origin(origin:, quota_size: nil)
70
- @devtools.send_cmd('Storage.overrideQuotaForOrigin',
71
- origin: origin,
72
- quotaSize: quota_size)
73
- end
74
-
75
- def track_cache_storage_for_origin(origin:)
76
- @devtools.send_cmd('Storage.trackCacheStorageForOrigin',
77
- origin: origin)
78
- end
79
-
80
- def track_indexed_db_for_origin(origin:)
81
- @devtools.send_cmd('Storage.trackIndexedDBForOrigin',
82
- origin: origin)
83
- end
84
-
85
- def untrack_cache_storage_for_origin(origin:)
86
- @devtools.send_cmd('Storage.untrackCacheStorageForOrigin',
87
- origin: origin)
88
- end
89
-
90
- def untrack_indexed_db_for_origin(origin:)
91
- @devtools.send_cmd('Storage.untrackIndexedDBForOrigin',
92
- origin: origin)
93
- end
94
-
95
- def get_trust_tokens
96
- @devtools.send_cmd('Storage.getTrustTokens')
97
- end
98
-
99
- def clear_trust_tokens(issuer_origin:)
100
- @devtools.send_cmd('Storage.clearTrustTokens',
101
- issuerOrigin: issuer_origin)
102
- end
103
-
104
- def get_interest_group_details(owner_origin:, name:)
105
- @devtools.send_cmd('Storage.getInterestGroupDetails',
106
- ownerOrigin: owner_origin,
107
- name: name)
108
- end
109
-
110
- def set_interest_group_tracking(enable:)
111
- @devtools.send_cmd('Storage.setInterestGroupTracking',
112
- enable: enable)
113
- end
114
-
115
- end # Storage
116
- end # V102
117
- end # DevTools
118
- end # Selenium