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,394 +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 V101
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
- load_event_fired: 'loadEventFired',
47
- navigated_within_document: 'navigatedWithinDocument',
48
- screencast_frame: 'screencastFrame',
49
- screencast_visibility_changed: 'screencastVisibilityChanged',
50
- window_open: 'windowOpen',
51
- compilation_cache_produced: 'compilationCacheProduced',
52
- }.freeze
53
-
54
- def initialize(devtools)
55
- @devtools = devtools
56
- end
57
-
58
- def on(event, &block)
59
- event = EVENTS[event] if event.is_a?(Symbol)
60
- @devtools.callbacks["Page.#{event}"] << block
61
- end
62
-
63
- def add_script_to_evaluate_on_load(script_source:)
64
- @devtools.send_cmd('Page.addScriptToEvaluateOnLoad',
65
- scriptSource: script_source)
66
- end
67
-
68
- def add_script_to_evaluate_on_new_document(source:, world_name: nil, include_command_line_api: nil)
69
- @devtools.send_cmd('Page.addScriptToEvaluateOnNewDocument',
70
- source: source,
71
- worldName: world_name,
72
- includeCommandLineAPI: include_command_line_api)
73
- end
74
-
75
- def bring_to_front
76
- @devtools.send_cmd('Page.bringToFront')
77
- end
78
-
79
- def capture_screenshot(format: nil, quality: nil, clip: nil, from_surface: nil, capture_beyond_viewport: nil)
80
- @devtools.send_cmd('Page.captureScreenshot',
81
- format: format,
82
- quality: quality,
83
- clip: clip,
84
- fromSurface: from_surface,
85
- captureBeyondViewport: capture_beyond_viewport)
86
- end
87
-
88
- def capture_snapshot(format: nil)
89
- @devtools.send_cmd('Page.captureSnapshot',
90
- format: format)
91
- end
92
-
93
- def clear_device_metrics_override
94
- @devtools.send_cmd('Page.clearDeviceMetricsOverride')
95
- end
96
-
97
- def clear_device_orientation_override
98
- @devtools.send_cmd('Page.clearDeviceOrientationOverride')
99
- end
100
-
101
- def clear_geolocation_override
102
- @devtools.send_cmd('Page.clearGeolocationOverride')
103
- end
104
-
105
- def create_isolated_world(frame_id:, world_name: nil, grant_univeral_access: nil)
106
- @devtools.send_cmd('Page.createIsolatedWorld',
107
- frameId: frame_id,
108
- worldName: world_name,
109
- grantUniveralAccess: grant_univeral_access)
110
- end
111
-
112
- def delete_cookie(cookie_name:, url:)
113
- @devtools.send_cmd('Page.deleteCookie',
114
- cookieName: cookie_name,
115
- url: url)
116
- end
117
-
118
- def disable
119
- @devtools.send_cmd('Page.disable')
120
- end
121
-
122
- def enable
123
- @devtools.send_cmd('Page.enable')
124
- end
125
-
126
- def get_app_manifest
127
- @devtools.send_cmd('Page.getAppManifest')
128
- end
129
-
130
- def get_installability_errors
131
- @devtools.send_cmd('Page.getInstallabilityErrors')
132
- end
133
-
134
- def get_manifest_icons
135
- @devtools.send_cmd('Page.getManifestIcons')
136
- end
137
-
138
- def get_app_id
139
- @devtools.send_cmd('Page.getAppId')
140
- end
141
-
142
- def get_cookies
143
- @devtools.send_cmd('Page.getCookies')
144
- end
145
-
146
- def get_frame_tree
147
- @devtools.send_cmd('Page.getFrameTree')
148
- end
149
-
150
- def get_layout_metrics
151
- @devtools.send_cmd('Page.getLayoutMetrics')
152
- end
153
-
154
- def get_navigation_history
155
- @devtools.send_cmd('Page.getNavigationHistory')
156
- end
157
-
158
- def reset_navigation_history
159
- @devtools.send_cmd('Page.resetNavigationHistory')
160
- end
161
-
162
- def get_resource_content(frame_id:, url:)
163
- @devtools.send_cmd('Page.getResourceContent',
164
- frameId: frame_id,
165
- url: url)
166
- end
167
-
168
- def get_resource_tree
169
- @devtools.send_cmd('Page.getResourceTree')
170
- end
171
-
172
- def handle_javascript_dialog(accept:, prompt_text: nil)
173
- @devtools.send_cmd('Page.handleJavaScriptDialog',
174
- accept: accept,
175
- promptText: prompt_text)
176
- end
177
-
178
- def navigate(url:, referrer: nil, transition_type: nil, frame_id: nil, referrer_policy: nil)
179
- @devtools.send_cmd('Page.navigate',
180
- url: url,
181
- referrer: referrer,
182
- transitionType: transition_type,
183
- frameId: frame_id,
184
- referrerPolicy: referrer_policy)
185
- end
186
-
187
- def navigate_to_history_entry(entry_id:)
188
- @devtools.send_cmd('Page.navigateToHistoryEntry',
189
- entryId: entry_id)
190
- end
191
-
192
- 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)
193
- @devtools.send_cmd('Page.printToPDF',
194
- landscape: landscape,
195
- displayHeaderFooter: display_header_footer,
196
- printBackground: print_background,
197
- scale: scale,
198
- paperWidth: paper_width,
199
- paperHeight: paper_height,
200
- marginTop: margin_top,
201
- marginBottom: margin_bottom,
202
- marginLeft: margin_left,
203
- marginRight: margin_right,
204
- pageRanges: page_ranges,
205
- ignoreInvalidPageRanges: ignore_invalid_page_ranges,
206
- headerTemplate: header_template,
207
- footerTemplate: footer_template,
208
- preferCSSPageSize: prefer_css_page_size,
209
- transferMode: transfer_mode)
210
- end
211
-
212
- def reload(ignore_cache: nil, script_to_evaluate_on_load: nil)
213
- @devtools.send_cmd('Page.reload',
214
- ignoreCache: ignore_cache,
215
- scriptToEvaluateOnLoad: script_to_evaluate_on_load)
216
- end
217
-
218
- def remove_script_to_evaluate_on_load(identifier:)
219
- @devtools.send_cmd('Page.removeScriptToEvaluateOnLoad',
220
- identifier: identifier)
221
- end
222
-
223
- def remove_script_to_evaluate_on_new_document(identifier:)
224
- @devtools.send_cmd('Page.removeScriptToEvaluateOnNewDocument',
225
- identifier: identifier)
226
- end
227
-
228
- def screencast_frame_ack(session_id:)
229
- @devtools.send_cmd('Page.screencastFrameAck',
230
- sessionId: session_id)
231
- end
232
-
233
- def search_in_resource(frame_id:, url:, query:, case_sensitive: nil, is_regex: nil)
234
- @devtools.send_cmd('Page.searchInResource',
235
- frameId: frame_id,
236
- url: url,
237
- query: query,
238
- caseSensitive: case_sensitive,
239
- isRegex: is_regex)
240
- end
241
-
242
- def set_ad_blocking_enabled(enabled:)
243
- @devtools.send_cmd('Page.setAdBlockingEnabled',
244
- enabled: enabled)
245
- end
246
-
247
- def set_bypass_csp(enabled:)
248
- @devtools.send_cmd('Page.setBypassCSP',
249
- enabled: enabled)
250
- end
251
-
252
- def get_permissions_policy_state(frame_id:)
253
- @devtools.send_cmd('Page.getPermissionsPolicyState',
254
- frameId: frame_id)
255
- end
256
-
257
- def get_origin_trials(frame_id:)
258
- @devtools.send_cmd('Page.getOriginTrials',
259
- frameId: frame_id)
260
- end
261
-
262
- 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)
263
- @devtools.send_cmd('Page.setDeviceMetricsOverride',
264
- width: width,
265
- height: height,
266
- deviceScaleFactor: device_scale_factor,
267
- mobile: mobile,
268
- scale: scale,
269
- screenWidth: screen_width,
270
- screenHeight: screen_height,
271
- positionX: position_x,
272
- positionY: position_y,
273
- dontSetVisibleSize: dont_set_visible_size,
274
- screenOrientation: screen_orientation,
275
- viewport: viewport)
276
- end
277
-
278
- def set_device_orientation_override(alpha:, beta:, gamma:)
279
- @devtools.send_cmd('Page.setDeviceOrientationOverride',
280
- alpha: alpha,
281
- beta: beta,
282
- gamma: gamma)
283
- end
284
-
285
- def set_font_families(font_families:, for_scripts: nil)
286
- @devtools.send_cmd('Page.setFontFamilies',
287
- fontFamilies: font_families,
288
- forScripts: for_scripts)
289
- end
290
-
291
- def set_font_sizes(font_sizes:)
292
- @devtools.send_cmd('Page.setFontSizes',
293
- fontSizes: font_sizes)
294
- end
295
-
296
- def set_document_content(frame_id:, html:)
297
- @devtools.send_cmd('Page.setDocumentContent',
298
- frameId: frame_id,
299
- html: html)
300
- end
301
-
302
- def set_download_behavior(behavior:, download_path: nil)
303
- @devtools.send_cmd('Page.setDownloadBehavior',
304
- behavior: behavior,
305
- downloadPath: download_path)
306
- end
307
-
308
- def set_geolocation_override(latitude: nil, longitude: nil, accuracy: nil)
309
- @devtools.send_cmd('Page.setGeolocationOverride',
310
- latitude: latitude,
311
- longitude: longitude,
312
- accuracy: accuracy)
313
- end
314
-
315
- def set_lifecycle_events_enabled(enabled:)
316
- @devtools.send_cmd('Page.setLifecycleEventsEnabled',
317
- enabled: enabled)
318
- end
319
-
320
- def set_touch_emulation_enabled(enabled:, configuration: nil)
321
- @devtools.send_cmd('Page.setTouchEmulationEnabled',
322
- enabled: enabled,
323
- configuration: configuration)
324
- end
325
-
326
- def start_screencast(format: nil, quality: nil, max_width: nil, max_height: nil, every_nth_frame: nil)
327
- @devtools.send_cmd('Page.startScreencast',
328
- format: format,
329
- quality: quality,
330
- maxWidth: max_width,
331
- maxHeight: max_height,
332
- everyNthFrame: every_nth_frame)
333
- end
334
-
335
- def stop_loading
336
- @devtools.send_cmd('Page.stopLoading')
337
- end
338
-
339
- def crash
340
- @devtools.send_cmd('Page.crash')
341
- end
342
-
343
- def close
344
- @devtools.send_cmd('Page.close')
345
- end
346
-
347
- def set_web_lifecycle_state(state:)
348
- @devtools.send_cmd('Page.setWebLifecycleState',
349
- state: state)
350
- end
351
-
352
- def stop_screencast
353
- @devtools.send_cmd('Page.stopScreencast')
354
- end
355
-
356
- def produce_compilation_cache(scripts:)
357
- @devtools.send_cmd('Page.produceCompilationCache',
358
- scripts: scripts)
359
- end
360
-
361
- def add_compilation_cache(url:, data:)
362
- @devtools.send_cmd('Page.addCompilationCache',
363
- url: url,
364
- data: data)
365
- end
366
-
367
- def clear_compilation_cache
368
- @devtools.send_cmd('Page.clearCompilationCache')
369
- end
370
-
371
- def set_spc_transaction_mode(mode:)
372
- @devtools.send_cmd('Page.setSPCTransactionMode',
373
- mode: mode)
374
- end
375
-
376
- def generate_test_report(message:, group: nil)
377
- @devtools.send_cmd('Page.generateTestReport',
378
- message: message,
379
- group: group)
380
- end
381
-
382
- def wait_for_debugger
383
- @devtools.send_cmd('Page.waitForDebugger')
384
- end
385
-
386
- def set_intercept_file_chooser_dialog(enabled:)
387
- @devtools.send_cmd('Page.setInterceptFileChooserDialog',
388
- enabled: enabled)
389
- end
390
-
391
- end # Page
392
- end # V101
393
- end # DevTools
394
- 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 V101
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 # V101
45
- end # DevTools
46
- end # Selenium
@@ -1,199 +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 V101
24
- class Runtime
25
- EVENTS = {
26
- binding_called: 'bindingCalled',
27
- console_api_called: 'consoleAPICalled',
28
- exception_revoked: 'exceptionRevoked',
29
- exception_thrown: 'exceptionThrown',
30
- execution_context_created: 'executionContextCreated',
31
- execution_context_destroyed: 'executionContextDestroyed',
32
- execution_contexts_cleared: 'executionContextsCleared',
33
- inspect_requested: 'inspectRequested',
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["Runtime.#{event}"] << block
43
- end
44
-
45
- def await_promise(promise_object_id:, return_by_value: nil, generate_preview: nil)
46
- @devtools.send_cmd('Runtime.awaitPromise',
47
- promiseObjectId: promise_object_id,
48
- returnByValue: return_by_value,
49
- generatePreview: generate_preview)
50
- end
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, throw_on_side_effect: nil)
53
- @devtools.send_cmd('Runtime.callFunctionOn',
54
- functionDeclaration: function_declaration,
55
- objectId: object_id,
56
- arguments: arguments,
57
- silent: silent,
58
- returnByValue: return_by_value,
59
- generatePreview: generate_preview,
60
- userGesture: user_gesture,
61
- awaitPromise: await_promise,
62
- executionContextId: execution_context_id,
63
- objectGroup: object_group,
64
- throwOnSideEffect: throw_on_side_effect)
65
- end
66
-
67
- def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
68
- @devtools.send_cmd('Runtime.compileScript',
69
- expression: expression,
70
- sourceURL: source_url,
71
- persistScript: persist_script,
72
- executionContextId: execution_context_id)
73
- end
74
-
75
- def disable
76
- @devtools.send_cmd('Runtime.disable')
77
- end
78
-
79
- def discard_console_entries
80
- @devtools.send_cmd('Runtime.discardConsoleEntries')
81
- end
82
-
83
- def enable
84
- @devtools.send_cmd('Runtime.enable')
85
- end
86
-
87
- 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, unique_context_id: nil)
88
- @devtools.send_cmd('Runtime.evaluate',
89
- expression: expression,
90
- objectGroup: object_group,
91
- includeCommandLineAPI: include_command_line_api,
92
- silent: silent,
93
- contextId: context_id,
94
- returnByValue: return_by_value,
95
- generatePreview: generate_preview,
96
- userGesture: user_gesture,
97
- awaitPromise: await_promise,
98
- throwOnSideEffect: throw_on_side_effect,
99
- timeout: timeout,
100
- disableBreaks: disable_breaks,
101
- replMode: repl_mode,
102
- allowUnsafeEvalBlockedByCSP: allow_unsafe_eval_blocked_by_csp,
103
- uniqueContextId: unique_context_id)
104
- end
105
-
106
- def get_isolate_id
107
- @devtools.send_cmd('Runtime.getIsolateId')
108
- end
109
-
110
- def get_heap_usage
111
- @devtools.send_cmd('Runtime.getHeapUsage')
112
- end
113
-
114
- def get_properties(object_id:, own_properties: nil, accessor_properties_only: nil, generate_preview: nil, non_indexed_properties_only: nil)
115
- @devtools.send_cmd('Runtime.getProperties',
116
- objectId: object_id,
117
- ownProperties: own_properties,
118
- accessorPropertiesOnly: accessor_properties_only,
119
- generatePreview: generate_preview,
120
- nonIndexedPropertiesOnly: non_indexed_properties_only)
121
- end
122
-
123
- def global_lexical_scope_names(execution_context_id: nil)
124
- @devtools.send_cmd('Runtime.globalLexicalScopeNames',
125
- executionContextId: execution_context_id)
126
- end
127
-
128
- def query_objects(prototype_object_id:, object_group: nil)
129
- @devtools.send_cmd('Runtime.queryObjects',
130
- prototypeObjectId: prototype_object_id,
131
- objectGroup: object_group)
132
- end
133
-
134
- def release_object(object_id:)
135
- @devtools.send_cmd('Runtime.releaseObject',
136
- objectId: object_id)
137
- end
138
-
139
- def release_object_group(object_group:)
140
- @devtools.send_cmd('Runtime.releaseObjectGroup',
141
- objectGroup: object_group)
142
- end
143
-
144
- def run_if_waiting_for_debugger
145
- @devtools.send_cmd('Runtime.runIfWaitingForDebugger')
146
- end
147
-
148
- 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)
149
- @devtools.send_cmd('Runtime.runScript',
150
- scriptId: script_id,
151
- executionContextId: execution_context_id,
152
- objectGroup: object_group,
153
- silent: silent,
154
- includeCommandLineAPI: include_command_line_api,
155
- returnByValue: return_by_value,
156
- generatePreview: generate_preview,
157
- awaitPromise: await_promise)
158
- end
159
-
160
- def set_async_call_stack_depth(max_depth:)
161
- @devtools.send_cmd('Runtime.setAsyncCallStackDepth',
162
- maxDepth: max_depth)
163
- end
164
-
165
- def set_custom_object_formatter_enabled(enabled:)
166
- @devtools.send_cmd('Runtime.setCustomObjectFormatterEnabled',
167
- enabled: enabled)
168
- end
169
-
170
- def set_max_call_stack_size_to_capture(size:)
171
- @devtools.send_cmd('Runtime.setMaxCallStackSizeToCapture',
172
- size: size)
173
- end
174
-
175
- def terminate_execution
176
- @devtools.send_cmd('Runtime.terminateExecution')
177
- end
178
-
179
- def add_binding(name:, execution_context_id: nil, execution_context_name: nil)
180
- @devtools.send_cmd('Runtime.addBinding',
181
- name: name,
182
- executionContextId: execution_context_id,
183
- executionContextName: execution_context_name)
184
- end
185
-
186
- def remove_binding(name:)
187
- @devtools.send_cmd('Runtime.removeBinding',
188
- name: name)
189
- end
190
-
191
- def get_exception_details(error_object_id:)
192
- @devtools.send_cmd('Runtime.getExceptionDetails',
193
- errorObjectId: error_object_id)
194
- end
195
-
196
- end # Runtime
197
- end # V101
198
- end # DevTools
199
- end # Selenium
@@ -1,42 +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 V101
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
38
-
39
- end # Schema
40
- end # V101
41
- end # DevTools
42
- end # Selenium