selenium-devtools 0.92.0 → 0.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/{v90 → v93}/accessibility.rb +2 -2
  3. data/lib/selenium/devtools/{v91 → v93}/animation.rb +2 -2
  4. data/lib/selenium/devtools/{v91 → v93}/application_cache.rb +2 -2
  5. data/lib/selenium/devtools/{v90 → v93}/audits.rb +2 -2
  6. data/lib/selenium/devtools/{v90 → v93}/background_service.rb +2 -2
  7. data/lib/selenium/devtools/{v91 → v93}/browser.rb +2 -2
  8. data/lib/selenium/devtools/{v91 → v93}/cache_storage.rb +2 -2
  9. data/lib/selenium/devtools/{v91 → v93}/cast.rb +2 -2
  10. data/lib/selenium/devtools/{v91 → v93}/console.rb +2 -2
  11. data/lib/selenium/devtools/{v90 → v93}/css.rb +9 -2
  12. data/lib/selenium/devtools/{v90 → v93}/database.rb +2 -2
  13. data/lib/selenium/devtools/{v91 → v93}/debugger.rb +2 -2
  14. data/lib/selenium/devtools/{v91 → v93}/device_orientation.rb +2 -2
  15. data/lib/selenium/devtools/{v90 → v93}/dom.rb +8 -2
  16. data/lib/selenium/devtools/{v90 → v93}/dom_debugger.rb +2 -2
  17. data/lib/selenium/devtools/{v91 → v93}/dom_snapshot.rb +6 -4
  18. data/lib/selenium/devtools/{v90 → v93}/dom_storage.rb +2 -2
  19. data/lib/selenium/devtools/{v91 → v93}/emulation.rb +2 -2
  20. data/lib/selenium/devtools/{v91 → v93}/fetch.rb +2 -2
  21. data/lib/selenium/devtools/{v91 → v93}/headless_experimental.rb +2 -2
  22. data/lib/selenium/devtools/{v90 → v93}/heap_profiler.rb +8 -6
  23. data/lib/selenium/devtools/{v90 → v93}/indexed_db.rb +2 -2
  24. data/lib/selenium/devtools/{v91 → v93}/input.rb +2 -2
  25. data/lib/selenium/devtools/{v90 → v93}/inspector.rb +2 -2
  26. data/lib/selenium/devtools/{v90 → v93}/io.rb +2 -2
  27. data/lib/selenium/devtools/{v90 → v93}/layer_tree.rb +2 -2
  28. data/lib/selenium/devtools/{v91 → v93}/log.rb +2 -2
  29. data/lib/selenium/devtools/{v91 → v93}/media.rb +2 -2
  30. data/lib/selenium/devtools/{v90 → v93}/memory.rb +2 -2
  31. data/lib/selenium/devtools/{v91 → v93}/network.rb +6 -8
  32. data/lib/selenium/devtools/{v91 → v93}/overlay.rb +7 -2
  33. data/lib/selenium/devtools/{v91 → v93}/page.rb +6 -4
  34. data/lib/selenium/devtools/{v90 → v93}/performance.rb +2 -2
  35. data/lib/selenium/devtools/{v91 → v93}/performance_timeline.rb +2 -2
  36. data/lib/selenium/devtools/{v91 → v93}/profiler.rb +2 -2
  37. data/lib/selenium/devtools/{v91 → v93}/runtime.rb +5 -4
  38. data/lib/selenium/devtools/{v91 → v93}/schema.rb +2 -2
  39. data/lib/selenium/devtools/{v90 → v93}/security.rb +2 -2
  40. data/lib/selenium/devtools/{v90 → v93}/service_worker.rb +2 -2
  41. data/lib/selenium/devtools/{v91 → v93}/storage.rb +2 -2
  42. data/lib/selenium/devtools/{v90 → v93}/system_info.rb +2 -2
  43. data/lib/selenium/devtools/{v90 → v93}/target.rb +2 -2
  44. data/lib/selenium/devtools/{v90 → v93}/tethering.rb +2 -2
  45. data/lib/selenium/devtools/{v91 → v93}/tracing.rb +2 -2
  46. data/lib/selenium/devtools/{v90 → v93}/web_audio.rb +2 -2
  47. data/lib/selenium/devtools/{v90 → v93}/web_authn.rb +2 -2
  48. data/lib/selenium/devtools/v93.rb +1 -0
  49. data/lib/selenium/devtools/version.rb +1 -1
  50. metadata +49 -96
  51. data/lib/selenium/devtools/v90/animation.rb +0 -94
  52. data/lib/selenium/devtools/v90/application_cache.rb +0 -60
  53. data/lib/selenium/devtools/v90/browser.rb +0 -124
  54. data/lib/selenium/devtools/v90/cache_storage.rb +0 -69
  55. data/lib/selenium/devtools/v90/cast.rb +0 -66
  56. data/lib/selenium/devtools/v90/console.rb +0 -53
  57. data/lib/selenium/devtools/v90/debugger.rb +0 -220
  58. data/lib/selenium/devtools/v90/device_orientation.rb +0 -49
  59. data/lib/selenium/devtools/v90/dom_snapshot.rb +0 -61
  60. data/lib/selenium/devtools/v90/emulation.rb +0 -192
  61. data/lib/selenium/devtools/v90/fetch.rb +0 -93
  62. data/lib/selenium/devtools/v90/headless_experimental.rb +0 -57
  63. data/lib/selenium/devtools/v90/input.rb +0 -142
  64. data/lib/selenium/devtools/v90/log.rb +0 -62
  65. data/lib/selenium/devtools/v90/media.rb +0 -53
  66. data/lib/selenium/devtools/v90/network.rb +0 -248
  67. data/lib/selenium/devtools/v90/overlay.rb +0 -187
  68. data/lib/selenium/devtools/v90/page.rb +0 -377
  69. data/lib/selenium/devtools/v90/performance_timeline.rb +0 -46
  70. data/lib/selenium/devtools/v90/profiler.rb +0 -119
  71. data/lib/selenium/devtools/v90/runtime.rb +0 -192
  72. data/lib/selenium/devtools/v90/schema.rb +0 -42
  73. data/lib/selenium/devtools/v90/storage.rb +0 -101
  74. data/lib/selenium/devtools/v90/tracing.rb +0 -74
  75. data/lib/selenium/devtools/v90.rb +0 -1
  76. data/lib/selenium/devtools/v91/accessibility.rb +0 -73
  77. data/lib/selenium/devtools/v91/audits.rb +0 -62
  78. data/lib/selenium/devtools/v91/background_service.rb +0 -63
  79. data/lib/selenium/devtools/v91/css.rb +0 -175
  80. data/lib/selenium/devtools/v91/database.rb +0 -60
  81. data/lib/selenium/devtools/v91/dom.rb +0 -323
  82. data/lib/selenium/devtools/v91/dom_debugger.rb +0 -94
  83. data/lib/selenium/devtools/v91/dom_storage.rb +0 -75
  84. data/lib/selenium/devtools/v91/heap_profiler.rb +0 -103
  85. data/lib/selenium/devtools/v91/indexed_db.rb +0 -96
  86. data/lib/selenium/devtools/v91/inspector.rb +0 -51
  87. data/lib/selenium/devtools/v91/io.rb +0 -55
  88. data/lib/selenium/devtools/v91/layer_tree.rb +0 -91
  89. data/lib/selenium/devtools/v91/memory.rb +0 -82
  90. data/lib/selenium/devtools/v91/performance.rb +0 -59
  91. data/lib/selenium/devtools/v91/security.rb +0 -67
  92. data/lib/selenium/devtools/v91/service_worker.rb +0 -112
  93. data/lib/selenium/devtools/v91/system_info.rb +0 -46
  94. data/lib/selenium/devtools/v91/target.rb +0 -139
  95. data/lib/selenium/devtools/v91/tethering.rb +0 -51
  96. data/lib/selenium/devtools/v91/web_audio.rb +0 -66
  97. data/lib/selenium/devtools/v91/web_authn.rb +0 -96
  98. data/lib/selenium/devtools/v91.rb +0 -1
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V90
23
+ module V93
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 # V90
64
+ end # V93
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 V90
23
+ module V93
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 # V90
94
+ end # V93
95
95
  end # DevTools
96
96
  end # Selenium
@@ -0,0 +1 @@
1
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v93/*", &method(:require))
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.92.0'
22
+ VERSION = '0.93.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.92.0
4
+ version: 0.93.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-08-21 00:00:00.000000000 Z
13
+ date: 2021-09-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: websocket
@@ -87,100 +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/v90.rb
91
- - lib/selenium/devtools/v90/accessibility.rb
92
- - lib/selenium/devtools/v90/animation.rb
93
- - lib/selenium/devtools/v90/application_cache.rb
94
- - lib/selenium/devtools/v90/audits.rb
95
- - lib/selenium/devtools/v90/background_service.rb
96
- - lib/selenium/devtools/v90/browser.rb
97
- - lib/selenium/devtools/v90/cache_storage.rb
98
- - lib/selenium/devtools/v90/cast.rb
99
- - lib/selenium/devtools/v90/console.rb
100
- - lib/selenium/devtools/v90/css.rb
101
- - lib/selenium/devtools/v90/database.rb
102
- - lib/selenium/devtools/v90/debugger.rb
103
- - lib/selenium/devtools/v90/device_orientation.rb
104
- - lib/selenium/devtools/v90/dom.rb
105
- - lib/selenium/devtools/v90/dom_debugger.rb
106
- - lib/selenium/devtools/v90/dom_snapshot.rb
107
- - lib/selenium/devtools/v90/dom_storage.rb
108
- - lib/selenium/devtools/v90/emulation.rb
109
- - lib/selenium/devtools/v90/fetch.rb
110
- - lib/selenium/devtools/v90/headless_experimental.rb
111
- - lib/selenium/devtools/v90/heap_profiler.rb
112
- - lib/selenium/devtools/v90/indexed_db.rb
113
- - lib/selenium/devtools/v90/input.rb
114
- - lib/selenium/devtools/v90/inspector.rb
115
- - lib/selenium/devtools/v90/io.rb
116
- - lib/selenium/devtools/v90/layer_tree.rb
117
- - lib/selenium/devtools/v90/log.rb
118
- - lib/selenium/devtools/v90/media.rb
119
- - lib/selenium/devtools/v90/memory.rb
120
- - lib/selenium/devtools/v90/network.rb
121
- - lib/selenium/devtools/v90/overlay.rb
122
- - lib/selenium/devtools/v90/page.rb
123
- - lib/selenium/devtools/v90/performance.rb
124
- - lib/selenium/devtools/v90/performance_timeline.rb
125
- - lib/selenium/devtools/v90/profiler.rb
126
- - lib/selenium/devtools/v90/runtime.rb
127
- - lib/selenium/devtools/v90/schema.rb
128
- - lib/selenium/devtools/v90/security.rb
129
- - lib/selenium/devtools/v90/service_worker.rb
130
- - lib/selenium/devtools/v90/storage.rb
131
- - lib/selenium/devtools/v90/system_info.rb
132
- - lib/selenium/devtools/v90/target.rb
133
- - lib/selenium/devtools/v90/tethering.rb
134
- - lib/selenium/devtools/v90/tracing.rb
135
- - lib/selenium/devtools/v90/web_audio.rb
136
- - lib/selenium/devtools/v90/web_authn.rb
137
- - lib/selenium/devtools/v91.rb
138
- - lib/selenium/devtools/v91/accessibility.rb
139
- - lib/selenium/devtools/v91/animation.rb
140
- - lib/selenium/devtools/v91/application_cache.rb
141
- - lib/selenium/devtools/v91/audits.rb
142
- - lib/selenium/devtools/v91/background_service.rb
143
- - lib/selenium/devtools/v91/browser.rb
144
- - lib/selenium/devtools/v91/cache_storage.rb
145
- - lib/selenium/devtools/v91/cast.rb
146
- - lib/selenium/devtools/v91/console.rb
147
- - lib/selenium/devtools/v91/css.rb
148
- - lib/selenium/devtools/v91/database.rb
149
- - lib/selenium/devtools/v91/debugger.rb
150
- - lib/selenium/devtools/v91/device_orientation.rb
151
- - lib/selenium/devtools/v91/dom.rb
152
- - lib/selenium/devtools/v91/dom_debugger.rb
153
- - lib/selenium/devtools/v91/dom_snapshot.rb
154
- - lib/selenium/devtools/v91/dom_storage.rb
155
- - lib/selenium/devtools/v91/emulation.rb
156
- - lib/selenium/devtools/v91/fetch.rb
157
- - lib/selenium/devtools/v91/headless_experimental.rb
158
- - lib/selenium/devtools/v91/heap_profiler.rb
159
- - lib/selenium/devtools/v91/indexed_db.rb
160
- - lib/selenium/devtools/v91/input.rb
161
- - lib/selenium/devtools/v91/inspector.rb
162
- - lib/selenium/devtools/v91/io.rb
163
- - lib/selenium/devtools/v91/layer_tree.rb
164
- - lib/selenium/devtools/v91/log.rb
165
- - lib/selenium/devtools/v91/media.rb
166
- - lib/selenium/devtools/v91/memory.rb
167
- - lib/selenium/devtools/v91/network.rb
168
- - lib/selenium/devtools/v91/overlay.rb
169
- - lib/selenium/devtools/v91/page.rb
170
- - lib/selenium/devtools/v91/performance.rb
171
- - lib/selenium/devtools/v91/performance_timeline.rb
172
- - lib/selenium/devtools/v91/profiler.rb
173
- - lib/selenium/devtools/v91/runtime.rb
174
- - lib/selenium/devtools/v91/schema.rb
175
- - lib/selenium/devtools/v91/security.rb
176
- - lib/selenium/devtools/v91/service_worker.rb
177
- - lib/selenium/devtools/v91/storage.rb
178
- - lib/selenium/devtools/v91/system_info.rb
179
- - lib/selenium/devtools/v91/target.rb
180
- - lib/selenium/devtools/v91/tethering.rb
181
- - lib/selenium/devtools/v91/tracing.rb
182
- - lib/selenium/devtools/v91/web_audio.rb
183
- - lib/selenium/devtools/v91/web_authn.rb
184
90
  - lib/selenium/devtools/v92.rb
185
91
  - lib/selenium/devtools/v92/accessibility.rb
186
92
  - lib/selenium/devtools/v92/animation.rb
@@ -228,6 +134,53 @@ files:
228
134
  - lib/selenium/devtools/v92/tracing.rb
229
135
  - lib/selenium/devtools/v92/web_audio.rb
230
136
  - lib/selenium/devtools/v92/web_authn.rb
137
+ - lib/selenium/devtools/v93.rb
138
+ - lib/selenium/devtools/v93/accessibility.rb
139
+ - lib/selenium/devtools/v93/animation.rb
140
+ - lib/selenium/devtools/v93/application_cache.rb
141
+ - lib/selenium/devtools/v93/audits.rb
142
+ - lib/selenium/devtools/v93/background_service.rb
143
+ - lib/selenium/devtools/v93/browser.rb
144
+ - lib/selenium/devtools/v93/cache_storage.rb
145
+ - lib/selenium/devtools/v93/cast.rb
146
+ - lib/selenium/devtools/v93/console.rb
147
+ - lib/selenium/devtools/v93/css.rb
148
+ - lib/selenium/devtools/v93/database.rb
149
+ - lib/selenium/devtools/v93/debugger.rb
150
+ - lib/selenium/devtools/v93/device_orientation.rb
151
+ - lib/selenium/devtools/v93/dom.rb
152
+ - lib/selenium/devtools/v93/dom_debugger.rb
153
+ - lib/selenium/devtools/v93/dom_snapshot.rb
154
+ - lib/selenium/devtools/v93/dom_storage.rb
155
+ - lib/selenium/devtools/v93/emulation.rb
156
+ - lib/selenium/devtools/v93/fetch.rb
157
+ - lib/selenium/devtools/v93/headless_experimental.rb
158
+ - lib/selenium/devtools/v93/heap_profiler.rb
159
+ - lib/selenium/devtools/v93/indexed_db.rb
160
+ - lib/selenium/devtools/v93/input.rb
161
+ - lib/selenium/devtools/v93/inspector.rb
162
+ - lib/selenium/devtools/v93/io.rb
163
+ - lib/selenium/devtools/v93/layer_tree.rb
164
+ - lib/selenium/devtools/v93/log.rb
165
+ - lib/selenium/devtools/v93/media.rb
166
+ - lib/selenium/devtools/v93/memory.rb
167
+ - lib/selenium/devtools/v93/network.rb
168
+ - lib/selenium/devtools/v93/overlay.rb
169
+ - lib/selenium/devtools/v93/page.rb
170
+ - lib/selenium/devtools/v93/performance.rb
171
+ - lib/selenium/devtools/v93/performance_timeline.rb
172
+ - lib/selenium/devtools/v93/profiler.rb
173
+ - lib/selenium/devtools/v93/runtime.rb
174
+ - lib/selenium/devtools/v93/schema.rb
175
+ - lib/selenium/devtools/v93/security.rb
176
+ - lib/selenium/devtools/v93/service_worker.rb
177
+ - lib/selenium/devtools/v93/storage.rb
178
+ - lib/selenium/devtools/v93/system_info.rb
179
+ - lib/selenium/devtools/v93/target.rb
180
+ - lib/selenium/devtools/v93/tethering.rb
181
+ - lib/selenium/devtools/v93/tracing.rb
182
+ - lib/selenium/devtools/v93/web_audio.rb
183
+ - lib/selenium/devtools/v93/web_authn.rb
231
184
  - lib/selenium/devtools/version.rb
232
185
  - selenium-devtools.gemspec
233
186
  homepage: https://selenium.dev
@@ -1,94 +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 V90
24
- class Animation
25
- EVENTS = {
26
- animation_canceled: 'animationCanceled',
27
- animation_created: 'animationCreated',
28
- animation_started: 'animationStarted',
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["Animation.#{event}"] << block
38
- end
39
-
40
- def disable
41
- @devtools.send_cmd('Animation.disable')
42
- end
43
-
44
- def enable
45
- @devtools.send_cmd('Animation.enable')
46
- end
47
-
48
- def get_current_time(id:)
49
- @devtools.send_cmd('Animation.getCurrentTime',
50
- id: id)
51
- end
52
-
53
- def get_playback_rate
54
- @devtools.send_cmd('Animation.getPlaybackRate')
55
- end
56
-
57
- def release_animations(animations:)
58
- @devtools.send_cmd('Animation.releaseAnimations',
59
- animations: animations)
60
- end
61
-
62
- def resolve_animation(animation_id:)
63
- @devtools.send_cmd('Animation.resolveAnimation',
64
- animationId: animation_id)
65
- end
66
-
67
- def seek_animations(animations:, current_time:)
68
- @devtools.send_cmd('Animation.seekAnimations',
69
- animations: animations,
70
- currentTime: current_time)
71
- end
72
-
73
- def set_paused(animations:, paused:)
74
- @devtools.send_cmd('Animation.setPaused',
75
- animations: animations,
76
- paused: paused)
77
- end
78
-
79
- def set_playback_rate(playback_rate:)
80
- @devtools.send_cmd('Animation.setPlaybackRate',
81
- playbackRate: playback_rate)
82
- end
83
-
84
- def set_timing(animation_id:, duration:, delay:)
85
- @devtools.send_cmd('Animation.setTiming',
86
- animationId: animation_id,
87
- duration: duration,
88
- delay: delay)
89
- end
90
-
91
- end # Animation
92
- end # V90
93
- end # DevTools
94
- 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 V90
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 # V90
59
- end # DevTools
60
- end # Selenium
@@ -1,124 +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 V90
24
- class Browser
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["Browser.#{event}"] << block
33
- end
34
-
35
- def set_permission(permission:, setting:, origin: nil, browser_context_id: nil)
36
- @devtools.send_cmd('Browser.setPermission',
37
- permission: permission,
38
- setting: setting,
39
- origin: origin,
40
- browserContextId: browser_context_id)
41
- end
42
-
43
- def grant_permissions(permissions:, origin: nil, browser_context_id: nil)
44
- @devtools.send_cmd('Browser.grantPermissions',
45
- permissions: permissions,
46
- origin: origin,
47
- browserContextId: browser_context_id)
48
- end
49
-
50
- def reset_permissions(browser_context_id: nil)
51
- @devtools.send_cmd('Browser.resetPermissions',
52
- browserContextId: browser_context_id)
53
- end
54
-
55
- def set_download_behavior(behavior:, browser_context_id: nil, download_path: nil)
56
- @devtools.send_cmd('Browser.setDownloadBehavior',
57
- behavior: behavior,
58
- browserContextId: browser_context_id,
59
- downloadPath: download_path)
60
- end
61
-
62
- def close
63
- @devtools.send_cmd('Browser.close')
64
- end
65
-
66
- def crash
67
- @devtools.send_cmd('Browser.crash')
68
- end
69
-
70
- def crash_gpu_process
71
- @devtools.send_cmd('Browser.crashGpuProcess')
72
- end
73
-
74
- def get_version
75
- @devtools.send_cmd('Browser.getVersion')
76
- end
77
-
78
- def get_browser_command_line
79
- @devtools.send_cmd('Browser.getBrowserCommandLine')
80
- end
81
-
82
- def get_histograms(query: nil, delta: nil)
83
- @devtools.send_cmd('Browser.getHistograms',
84
- query: query,
85
- delta: delta)
86
- end
87
-
88
- def get_histogram(name:, delta: nil)
89
- @devtools.send_cmd('Browser.getHistogram',
90
- name: name,
91
- delta: delta)
92
- end
93
-
94
- def get_window_bounds(window_id:)
95
- @devtools.send_cmd('Browser.getWindowBounds',
96
- windowId: window_id)
97
- end
98
-
99
- def get_window_for_target(target_id: nil)
100
- @devtools.send_cmd('Browser.getWindowForTarget',
101
- targetId: target_id)
102
- end
103
-
104
- def set_window_bounds(window_id:, bounds:)
105
- @devtools.send_cmd('Browser.setWindowBounds',
106
- windowId: window_id,
107
- bounds: bounds)
108
- end
109
-
110
- def set_dock_tile(badge_label: nil, image: nil)
111
- @devtools.send_cmd('Browser.setDockTile',
112
- badgeLabel: badge_label,
113
- image: image)
114
- end
115
-
116
- def execute_browser_command(command_id:)
117
- @devtools.send_cmd('Browser.executeBrowserCommand',
118
- commandId: command_id)
119
- end
120
-
121
- end # Browser
122
- end # V90
123
- end # DevTools
124
- end # Selenium