selenium-devtools 0.91.1 → 0.92.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/v92.rb +1 -0
  3. data/lib/selenium/devtools/{v89 → v92}/accessibility.rb +2 -2
  4. data/lib/selenium/devtools/{v88 → v92}/animation.rb +2 -2
  5. data/lib/selenium/devtools/{v89 → v92}/application_cache.rb +2 -2
  6. data/lib/selenium/devtools/{v88 → v92}/audits.rb +7 -2
  7. data/lib/selenium/devtools/{v88 → v92}/background_service.rb +2 -2
  8. data/lib/selenium/devtools/{v88 → v92}/browser.rb +15 -4
  9. data/lib/selenium/devtools/{v88 → v92}/cache_storage.rb +2 -2
  10. data/lib/selenium/devtools/{v89 → v92}/cast.rb +2 -2
  11. data/lib/selenium/devtools/{v89 → v92}/console.rb +2 -2
  12. data/lib/selenium/devtools/{v88 → v92}/css.rb +2 -2
  13. data/lib/selenium/devtools/{v89 → v92}/database.rb +2 -2
  14. data/lib/selenium/devtools/{v89 → v92}/debugger.rb +2 -2
  15. data/lib/selenium/devtools/{v89 → v92}/device_orientation.rb +2 -2
  16. data/lib/selenium/devtools/{v89 → v92}/dom.rb +2 -2
  17. data/lib/selenium/devtools/{v89 → v92}/dom_debugger.rb +2 -2
  18. data/lib/selenium/devtools/{v88 → v92}/dom_snapshot.rb +6 -4
  19. data/lib/selenium/devtools/{v88 → v92}/dom_storage.rb +2 -2
  20. data/lib/selenium/devtools/{v89 → v92}/emulation.rb +2 -2
  21. data/lib/selenium/devtools/{v89 → v92}/fetch.rb +2 -2
  22. data/lib/selenium/devtools/{v89 → v92}/headless_experimental.rb +2 -2
  23. data/lib/selenium/devtools/{v89 → v92}/heap_profiler.rb +8 -6
  24. data/lib/selenium/devtools/{v88 → v92}/indexed_db.rb +2 -2
  25. data/lib/selenium/devtools/{v88 → v92}/input.rb +19 -2
  26. data/lib/selenium/devtools/{v88 → v92}/inspector.rb +2 -2
  27. data/lib/selenium/devtools/{v88 → v92}/io.rb +2 -2
  28. data/lib/selenium/devtools/{v88 → v92}/layer_tree.rb +2 -2
  29. data/lib/selenium/devtools/{v88 → v92}/log.rb +2 -2
  30. data/lib/selenium/devtools/{v89 → v92}/media.rb +2 -2
  31. data/lib/selenium/devtools/{v88 → v92}/memory.rb +2 -2
  32. data/lib/selenium/devtools/{v89 → v92}/network.rb +17 -4
  33. data/lib/selenium/devtools/{v89 → v92}/overlay.rb +12 -2
  34. data/lib/selenium/devtools/{v89 → v92}/page.rb +16 -4
  35. data/lib/selenium/devtools/{v89 → v92}/performance.rb +2 -2
  36. data/lib/selenium/devtools/{v89 → v92}/performance_timeline.rb +2 -2
  37. data/lib/selenium/devtools/{v89 → v92}/profiler.rb +2 -2
  38. data/lib/selenium/devtools/{v89 → v92}/runtime.rb +2 -2
  39. data/lib/selenium/devtools/{v88 → v92}/schema.rb +2 -2
  40. data/lib/selenium/devtools/{v88 → v92}/security.rb +2 -2
  41. data/lib/selenium/devtools/{v89 → v92}/service_worker.rb +2 -2
  42. data/lib/selenium/devtools/{v88 → v92}/storage.rb +11 -2
  43. data/lib/selenium/devtools/{v89 → v92}/system_info.rb +2 -2
  44. data/lib/selenium/devtools/{v88 → v92}/target.rb +2 -2
  45. data/lib/selenium/devtools/{v89 → v92}/tethering.rb +2 -2
  46. data/lib/selenium/devtools/{v89 → v92}/tracing.rb +5 -4
  47. data/lib/selenium/devtools/{v88 → v92}/web_audio.rb +2 -2
  48. data/lib/selenium/devtools/{v88 → v92}/web_authn.rb +2 -2
  49. data/lib/selenium/devtools/version.rb +1 -1
  50. metadata +49 -95
  51. data/lib/selenium/devtools/v88.rb +0 -1
  52. data/lib/selenium/devtools/v88/accessibility.rb +0 -67
  53. data/lib/selenium/devtools/v88/application_cache.rb +0 -60
  54. data/lib/selenium/devtools/v88/cast.rb +0 -66
  55. data/lib/selenium/devtools/v88/console.rb +0 -53
  56. data/lib/selenium/devtools/v88/database.rb +0 -60
  57. data/lib/selenium/devtools/v88/debugger.rb +0 -227
  58. data/lib/selenium/devtools/v88/device_orientation.rb +0 -49
  59. data/lib/selenium/devtools/v88/dom.rb +0 -323
  60. data/lib/selenium/devtools/v88/dom_debugger.rb +0 -89
  61. data/lib/selenium/devtools/v88/emulation.rb +0 -192
  62. data/lib/selenium/devtools/v88/fetch.rb +0 -93
  63. data/lib/selenium/devtools/v88/headless_experimental.rb +0 -57
  64. data/lib/selenium/devtools/v88/heap_profiler.rb +0 -103
  65. data/lib/selenium/devtools/v88/media.rb +0 -53
  66. data/lib/selenium/devtools/v88/network.rb +0 -241
  67. data/lib/selenium/devtools/v88/overlay.rb +0 -177
  68. data/lib/selenium/devtools/v88/page.rb +0 -370
  69. data/lib/selenium/devtools/v88/performance.rb +0 -59
  70. data/lib/selenium/devtools/v88/profiler.rb +0 -119
  71. data/lib/selenium/devtools/v88/runtime.rb +0 -191
  72. data/lib/selenium/devtools/v88/service_worker.rb +0 -112
  73. data/lib/selenium/devtools/v88/system_info.rb +0 -46
  74. data/lib/selenium/devtools/v88/tethering.rb +0 -51
  75. data/lib/selenium/devtools/v88/tracing.rb +0 -73
  76. data/lib/selenium/devtools/v89.rb +0 -1
  77. data/lib/selenium/devtools/v89/animation.rb +0 -94
  78. data/lib/selenium/devtools/v89/audits.rb +0 -57
  79. data/lib/selenium/devtools/v89/background_service.rb +0 -63
  80. data/lib/selenium/devtools/v89/browser.rb +0 -124
  81. data/lib/selenium/devtools/v89/cache_storage.rb +0 -69
  82. data/lib/selenium/devtools/v89/css.rb +0 -175
  83. data/lib/selenium/devtools/v89/dom_snapshot.rb +0 -61
  84. data/lib/selenium/devtools/v89/dom_storage.rb +0 -75
  85. data/lib/selenium/devtools/v89/indexed_db.rb +0 -96
  86. data/lib/selenium/devtools/v89/input.rb +0 -142
  87. data/lib/selenium/devtools/v89/inspector.rb +0 -51
  88. data/lib/selenium/devtools/v89/io.rb +0 -55
  89. data/lib/selenium/devtools/v89/layer_tree.rb +0 -91
  90. data/lib/selenium/devtools/v89/log.rb +0 -62
  91. data/lib/selenium/devtools/v89/memory.rb +0 -82
  92. data/lib/selenium/devtools/v89/schema.rb +0 -42
  93. data/lib/selenium/devtools/v89/security.rb +0 -67
  94. data/lib/selenium/devtools/v89/storage.rb +0 -97
  95. data/lib/selenium/devtools/v89/target.rb +0 -139
  96. data/lib/selenium/devtools/v89/web_audio.rb +0 -66
  97. data/lib/selenium/devtools/v89/web_authn.rb +0 -96
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V88
23
+ module V92
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -91,7 +91,16 @@ module Selenium
91
91
  origin: origin)
92
92
  end
93
93
 
94
+ def get_trust_tokens
95
+ @devtools.send_cmd('Storage.getTrustTokens')
96
+ end
97
+
98
+ def clear_trust_tokens(issuer_origin:)
99
+ @devtools.send_cmd('Storage.clearTrustTokens',
100
+ issuerOrigin: issuer_origin)
101
+ end
102
+
94
103
  end # Storage
95
- end # V88
104
+ end # V92
96
105
  end # DevTools
97
106
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V89
23
+ module V92
24
24
  class SystemInfo
25
25
 
26
26
  def initialize(devtools)
@@ -41,6 +41,6 @@ module Selenium
41
41
  end
42
42
 
43
43
  end # SystemInfo
44
- end # V89
44
+ end # V92
45
45
  end # DevTools
46
46
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V88
23
+ module V92
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -134,6 +134,6 @@ module Selenium
134
134
  end
135
135
 
136
136
  end # Target
137
- end # V88
137
+ end # V92
138
138
  end # DevTools
139
139
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V89
23
+ module V92
24
24
  class Tethering
25
25
  EVENTS = {
26
26
  accepted: 'accepted',
@@ -46,6 +46,6 @@ module Selenium
46
46
  end
47
47
 
48
48
  end # Tethering
49
- end # V89
49
+ end # V92
50
50
  end # DevTools
51
51
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V89
23
+ module V92
24
24
  class Tracing
25
25
  EVENTS = {
26
26
  buffer_usage: 'bufferUsage',
@@ -56,7 +56,7 @@ module Selenium
56
56
  levelOfDetail: level_of_detail)
57
57
  end
58
58
 
59
- def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil, perfetto_config: nil)
59
+ def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil, perfetto_config: nil, tracing_backend: nil)
60
60
  @devtools.send_cmd('Tracing.start',
61
61
  categories: categories,
62
62
  options: options,
@@ -65,10 +65,11 @@ module Selenium
65
65
  streamFormat: stream_format,
66
66
  streamCompression: stream_compression,
67
67
  traceConfig: trace_config,
68
- perfettoConfig: perfetto_config)
68
+ perfettoConfig: perfetto_config,
69
+ tracingBackend: tracing_backend)
69
70
  end
70
71
 
71
72
  end # Tracing
72
- end # V89
73
+ end # V92
73
74
  end # DevTools
74
75
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V88
23
+ module V92
24
24
  class WebAudio
25
25
  EVENTS = {
26
26
  context_created: 'contextCreated',
@@ -61,6 +61,6 @@ module Selenium
61
61
  end
62
62
 
63
63
  end # WebAudio
64
- end # V88
64
+ end # V92
65
65
  end # DevTools
66
66
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V88
23
+ module V92
24
24
  class WebAuthn
25
25
 
26
26
  def initialize(devtools)
@@ -91,6 +91,6 @@ module Selenium
91
91
  end
92
92
 
93
93
  end # WebAuthn
94
- end # V88
94
+ end # V92
95
95
  end # DevTools
96
96
  end # Selenium
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.91.1'
22
+ VERSION = '0.92.0'
23
23
  end # DevTools
24
24
  end # Selenium
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-devtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.91.1
4
+ version: 0.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-06-20 00:00:00.000000000 Z
13
+ date: 2021-08-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: websocket
@@ -87,99 +87,6 @@ files:
87
87
  - lib/selenium/devtools/v85/tracing.rb
88
88
  - lib/selenium/devtools/v85/web_audio.rb
89
89
  - lib/selenium/devtools/v85/web_authn.rb
90
- - lib/selenium/devtools/v88.rb
91
- - lib/selenium/devtools/v88/accessibility.rb
92
- - lib/selenium/devtools/v88/animation.rb
93
- - lib/selenium/devtools/v88/application_cache.rb
94
- - lib/selenium/devtools/v88/audits.rb
95
- - lib/selenium/devtools/v88/background_service.rb
96
- - lib/selenium/devtools/v88/browser.rb
97
- - lib/selenium/devtools/v88/cache_storage.rb
98
- - lib/selenium/devtools/v88/cast.rb
99
- - lib/selenium/devtools/v88/console.rb
100
- - lib/selenium/devtools/v88/css.rb
101
- - lib/selenium/devtools/v88/database.rb
102
- - lib/selenium/devtools/v88/debugger.rb
103
- - lib/selenium/devtools/v88/device_orientation.rb
104
- - lib/selenium/devtools/v88/dom.rb
105
- - lib/selenium/devtools/v88/dom_debugger.rb
106
- - lib/selenium/devtools/v88/dom_snapshot.rb
107
- - lib/selenium/devtools/v88/dom_storage.rb
108
- - lib/selenium/devtools/v88/emulation.rb
109
- - lib/selenium/devtools/v88/fetch.rb
110
- - lib/selenium/devtools/v88/headless_experimental.rb
111
- - lib/selenium/devtools/v88/heap_profiler.rb
112
- - lib/selenium/devtools/v88/indexed_db.rb
113
- - lib/selenium/devtools/v88/input.rb
114
- - lib/selenium/devtools/v88/inspector.rb
115
- - lib/selenium/devtools/v88/io.rb
116
- - lib/selenium/devtools/v88/layer_tree.rb
117
- - lib/selenium/devtools/v88/log.rb
118
- - lib/selenium/devtools/v88/media.rb
119
- - lib/selenium/devtools/v88/memory.rb
120
- - lib/selenium/devtools/v88/network.rb
121
- - lib/selenium/devtools/v88/overlay.rb
122
- - lib/selenium/devtools/v88/page.rb
123
- - lib/selenium/devtools/v88/performance.rb
124
- - lib/selenium/devtools/v88/profiler.rb
125
- - lib/selenium/devtools/v88/runtime.rb
126
- - lib/selenium/devtools/v88/schema.rb
127
- - lib/selenium/devtools/v88/security.rb
128
- - lib/selenium/devtools/v88/service_worker.rb
129
- - lib/selenium/devtools/v88/storage.rb
130
- - lib/selenium/devtools/v88/system_info.rb
131
- - lib/selenium/devtools/v88/target.rb
132
- - lib/selenium/devtools/v88/tethering.rb
133
- - lib/selenium/devtools/v88/tracing.rb
134
- - lib/selenium/devtools/v88/web_audio.rb
135
- - lib/selenium/devtools/v88/web_authn.rb
136
- - lib/selenium/devtools/v89.rb
137
- - lib/selenium/devtools/v89/accessibility.rb
138
- - lib/selenium/devtools/v89/animation.rb
139
- - lib/selenium/devtools/v89/application_cache.rb
140
- - lib/selenium/devtools/v89/audits.rb
141
- - lib/selenium/devtools/v89/background_service.rb
142
- - lib/selenium/devtools/v89/browser.rb
143
- - lib/selenium/devtools/v89/cache_storage.rb
144
- - lib/selenium/devtools/v89/cast.rb
145
- - lib/selenium/devtools/v89/console.rb
146
- - lib/selenium/devtools/v89/css.rb
147
- - lib/selenium/devtools/v89/database.rb
148
- - lib/selenium/devtools/v89/debugger.rb
149
- - lib/selenium/devtools/v89/device_orientation.rb
150
- - lib/selenium/devtools/v89/dom.rb
151
- - lib/selenium/devtools/v89/dom_debugger.rb
152
- - lib/selenium/devtools/v89/dom_snapshot.rb
153
- - lib/selenium/devtools/v89/dom_storage.rb
154
- - lib/selenium/devtools/v89/emulation.rb
155
- - lib/selenium/devtools/v89/fetch.rb
156
- - lib/selenium/devtools/v89/headless_experimental.rb
157
- - lib/selenium/devtools/v89/heap_profiler.rb
158
- - lib/selenium/devtools/v89/indexed_db.rb
159
- - lib/selenium/devtools/v89/input.rb
160
- - lib/selenium/devtools/v89/inspector.rb
161
- - lib/selenium/devtools/v89/io.rb
162
- - lib/selenium/devtools/v89/layer_tree.rb
163
- - lib/selenium/devtools/v89/log.rb
164
- - lib/selenium/devtools/v89/media.rb
165
- - lib/selenium/devtools/v89/memory.rb
166
- - lib/selenium/devtools/v89/network.rb
167
- - lib/selenium/devtools/v89/overlay.rb
168
- - lib/selenium/devtools/v89/page.rb
169
- - lib/selenium/devtools/v89/performance.rb
170
- - lib/selenium/devtools/v89/performance_timeline.rb
171
- - lib/selenium/devtools/v89/profiler.rb
172
- - lib/selenium/devtools/v89/runtime.rb
173
- - lib/selenium/devtools/v89/schema.rb
174
- - lib/selenium/devtools/v89/security.rb
175
- - lib/selenium/devtools/v89/service_worker.rb
176
- - lib/selenium/devtools/v89/storage.rb
177
- - lib/selenium/devtools/v89/system_info.rb
178
- - lib/selenium/devtools/v89/target.rb
179
- - lib/selenium/devtools/v89/tethering.rb
180
- - lib/selenium/devtools/v89/tracing.rb
181
- - lib/selenium/devtools/v89/web_audio.rb
182
- - lib/selenium/devtools/v89/web_authn.rb
183
90
  - lib/selenium/devtools/v90.rb
184
91
  - lib/selenium/devtools/v90/accessibility.rb
185
92
  - lib/selenium/devtools/v90/animation.rb
@@ -274,6 +181,53 @@ files:
274
181
  - lib/selenium/devtools/v91/tracing.rb
275
182
  - lib/selenium/devtools/v91/web_audio.rb
276
183
  - lib/selenium/devtools/v91/web_authn.rb
184
+ - lib/selenium/devtools/v92.rb
185
+ - lib/selenium/devtools/v92/accessibility.rb
186
+ - lib/selenium/devtools/v92/animation.rb
187
+ - lib/selenium/devtools/v92/application_cache.rb
188
+ - lib/selenium/devtools/v92/audits.rb
189
+ - lib/selenium/devtools/v92/background_service.rb
190
+ - lib/selenium/devtools/v92/browser.rb
191
+ - lib/selenium/devtools/v92/cache_storage.rb
192
+ - lib/selenium/devtools/v92/cast.rb
193
+ - lib/selenium/devtools/v92/console.rb
194
+ - lib/selenium/devtools/v92/css.rb
195
+ - lib/selenium/devtools/v92/database.rb
196
+ - lib/selenium/devtools/v92/debugger.rb
197
+ - lib/selenium/devtools/v92/device_orientation.rb
198
+ - lib/selenium/devtools/v92/dom.rb
199
+ - lib/selenium/devtools/v92/dom_debugger.rb
200
+ - lib/selenium/devtools/v92/dom_snapshot.rb
201
+ - lib/selenium/devtools/v92/dom_storage.rb
202
+ - lib/selenium/devtools/v92/emulation.rb
203
+ - lib/selenium/devtools/v92/fetch.rb
204
+ - lib/selenium/devtools/v92/headless_experimental.rb
205
+ - lib/selenium/devtools/v92/heap_profiler.rb
206
+ - lib/selenium/devtools/v92/indexed_db.rb
207
+ - lib/selenium/devtools/v92/input.rb
208
+ - lib/selenium/devtools/v92/inspector.rb
209
+ - lib/selenium/devtools/v92/io.rb
210
+ - lib/selenium/devtools/v92/layer_tree.rb
211
+ - lib/selenium/devtools/v92/log.rb
212
+ - lib/selenium/devtools/v92/media.rb
213
+ - lib/selenium/devtools/v92/memory.rb
214
+ - lib/selenium/devtools/v92/network.rb
215
+ - lib/selenium/devtools/v92/overlay.rb
216
+ - lib/selenium/devtools/v92/page.rb
217
+ - lib/selenium/devtools/v92/performance.rb
218
+ - lib/selenium/devtools/v92/performance_timeline.rb
219
+ - lib/selenium/devtools/v92/profiler.rb
220
+ - lib/selenium/devtools/v92/runtime.rb
221
+ - lib/selenium/devtools/v92/schema.rb
222
+ - lib/selenium/devtools/v92/security.rb
223
+ - lib/selenium/devtools/v92/service_worker.rb
224
+ - lib/selenium/devtools/v92/storage.rb
225
+ - lib/selenium/devtools/v92/system_info.rb
226
+ - lib/selenium/devtools/v92/target.rb
227
+ - lib/selenium/devtools/v92/tethering.rb
228
+ - lib/selenium/devtools/v92/tracing.rb
229
+ - lib/selenium/devtools/v92/web_audio.rb
230
+ - lib/selenium/devtools/v92/web_authn.rb
277
231
  - lib/selenium/devtools/version.rb
278
232
  - selenium-devtools.gemspec
279
233
  homepage: https://selenium.dev
@@ -1 +0,0 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v88/*", &method(:require))
@@ -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 V88
24
- class Accessibility
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["Accessibility.#{event}"] << block
33
- end
34
-
35
- def disable
36
- @devtools.send_cmd('Accessibility.disable')
37
- end
38
-
39
- def enable
40
- @devtools.send_cmd('Accessibility.enable')
41
- end
42
-
43
- def get_partial_ax_tree(node_id: nil, backend_node_id: nil, object_id: nil, fetch_relatives: nil)
44
- @devtools.send_cmd('Accessibility.getPartialAXTree',
45
- nodeId: node_id,
46
- backendNodeId: backend_node_id,
47
- objectId: object_id,
48
- fetchRelatives: fetch_relatives)
49
- end
50
-
51
- def get_full_ax_tree
52
- @devtools.send_cmd('Accessibility.getFullAXTree')
53
- end
54
-
55
- def query_ax_tree(node_id: nil, backend_node_id: nil, object_id: nil, accessible_name: nil, role: nil)
56
- @devtools.send_cmd('Accessibility.queryAXTree',
57
- nodeId: node_id,
58
- backendNodeId: backend_node_id,
59
- objectId: object_id,
60
- accessibleName: accessible_name,
61
- role: role)
62
- end
63
-
64
- end # Accessibility
65
- end # V88
66
- end # DevTools
67
- end # Selenium
@@ -1,60 +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 V88
24
- class ApplicationCache
25
- EVENTS = {
26
- application_cache_status_updated: 'applicationCacheStatusUpdated',
27
- network_state_updated: 'networkStateUpdated',
28
- }.freeze
29
-
30
- def initialize(devtools)
31
- @devtools = devtools
32
- end
33
-
34
- def on(event, &block)
35
- event = EVENTS[event] if event.is_a?(Symbol)
36
- @devtools.callbacks["ApplicationCache.#{event}"] << block
37
- end
38
-
39
- def enable
40
- @devtools.send_cmd('ApplicationCache.enable')
41
- end
42
-
43
- def get_application_cache_for_frame(frame_id:)
44
- @devtools.send_cmd('ApplicationCache.getApplicationCacheForFrame',
45
- frameId: frame_id)
46
- end
47
-
48
- def get_frames_with_manifests
49
- @devtools.send_cmd('ApplicationCache.getFramesWithManifests')
50
- end
51
-
52
- def get_manifest_for_frame(frame_id:)
53
- @devtools.send_cmd('ApplicationCache.getManifestForFrame',
54
- frameId: frame_id)
55
- end
56
-
57
- end # ApplicationCache
58
- end # V88
59
- end # DevTools
60
- end # Selenium