selenium-devtools 0.89.0 → 0.91.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/selenium/devtools/v89/accessibility.rb +8 -2
- data/lib/selenium/devtools/v89/debugger.rb +0 -7
- data/lib/selenium/devtools/v89/network.rb +1 -0
- data/lib/selenium/devtools/v89/performance_timeline.rb +46 -0
- data/lib/selenium/devtools/v89/runtime.rb +3 -2
- data/lib/selenium/devtools/v89/tracing.rb +3 -2
- data/lib/selenium/devtools/v90.rb +1 -0
- data/lib/selenium/devtools/{v87 → v90}/accessibility.rb +10 -4
- data/lib/selenium/devtools/{v86 → v90}/animation.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/application_cache.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/audits.rb +7 -2
- data/lib/selenium/devtools/{v86 → v90}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/browser.rb +7 -2
- data/lib/selenium/devtools/{v86 → v90}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/cast.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/console.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/css.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/database.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/debugger.rb +2 -9
- data/lib/selenium/devtools/{v87 → v90}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/dom.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/dom_debugger.rb +7 -2
- data/lib/selenium/devtools/{v86 → v90}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/emulation.rb +7 -2
- data/lib/selenium/devtools/{v87 → v90}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/input.rb +8 -3
- data/lib/selenium/devtools/{v87 → v90}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/io.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/log.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/media.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/memory.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/network.rb +13 -6
- data/lib/selenium/devtools/{v86 → v90}/overlay.rb +12 -2
- data/lib/selenium/devtools/{v86 → v90}/page.rb +11 -4
- data/lib/selenium/devtools/{v86 → v90}/performance.rb +2 -2
- data/lib/selenium/devtools/v90/performance_timeline.rb +46 -0
- data/lib/selenium/devtools/{v87 → v90}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v87 → v90}/runtime.rb +8 -6
- data/lib/selenium/devtools/{v86 → v90}/schema.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/security.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/storage.rb +12 -2
- data/lib/selenium/devtools/{v86 → v90}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/target.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/tracing.rb +8 -6
- data/lib/selenium/devtools/{v86 → v90}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v86 → v90}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v91.rb +1 -0
- data/lib/selenium/devtools/{v86 → v91}/accessibility.rb +19 -4
- data/lib/selenium/devtools/{v87 → v91}/animation.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/application_cache.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/audits.rb +7 -2
- data/lib/selenium/devtools/{v87 → v91}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/browser.rb +20 -4
- data/lib/selenium/devtools/{v87 → v91}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/cast.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/console.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/css.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/database.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/debugger.rb +2 -9
- data/lib/selenium/devtools/{v86 → v91}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/dom.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/dom_debugger.rb +7 -2
- data/lib/selenium/devtools/{v87 → v91}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/emulation.rb +7 -2
- data/lib/selenium/devtools/{v86 → v91}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/input.rb +25 -3
- data/lib/selenium/devtools/{v86 → v91}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/io.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/log.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/media.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/memory.rb +2 -2
- data/lib/selenium/devtools/{v86 → v91}/network.rb +32 -4
- data/lib/selenium/devtools/{v87 → v91}/overlay.rb +17 -2
- data/lib/selenium/devtools/{v87 → v91}/page.rb +16 -4
- data/lib/selenium/devtools/{v87 → v91}/performance.rb +2 -2
- data/lib/selenium/devtools/v91/performance_timeline.rb +46 -0
- data/lib/selenium/devtools/{v86 → v91}/profiler.rb +14 -2
- data/lib/selenium/devtools/{v86 → v91}/runtime.rb +8 -6
- data/lib/selenium/devtools/{v87 → v91}/schema.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/security.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/storage.rb +17 -2
- data/lib/selenium/devtools/{v87 → v91}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/target.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/tracing.rb +9 -6
- data/lib/selenium/devtools/{v87 → v91}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v87 → v91}/web_authn.rb +2 -2
- data/lib/selenium/devtools/version.rb +1 -1
- metadata +97 -94
- data/lib/selenium/devtools/v86.rb +0 -1
- data/lib/selenium/devtools/v87.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
|
23
|
+
module V90
|
24
24
|
class DOMSnapshot
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -56,6 +56,6 @@ module Selenium
|
|
56
56
|
end
|
57
57
|
|
58
58
|
end # DOMSnapshot
|
59
|
-
end #
|
59
|
+
end # V90
|
60
60
|
end # DevTools
|
61
61
|
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
|
23
|
+
module V90
|
24
24
|
class DOMStorage
|
25
25
|
EVENTS = {
|
26
26
|
dom_storage_item_added: 'domStorageItemAdded',
|
@@ -70,6 +70,6 @@ module Selenium
|
|
70
70
|
end
|
71
71
|
|
72
72
|
end # DOMStorage
|
73
|
-
end #
|
73
|
+
end # V90
|
74
74
|
end # DevTools
|
75
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
|
23
|
+
module V90
|
24
24
|
class Emulation
|
25
25
|
EVENTS = {
|
26
26
|
virtual_time_budget_expired: 'virtualTimeBudgetExpired',
|
@@ -173,6 +173,11 @@ module Selenium
|
|
173
173
|
height: height)
|
174
174
|
end
|
175
175
|
|
176
|
+
def set_disabled_image_types(image_types:)
|
177
|
+
@devtools.send_cmd('Emulation.setDisabledImageTypes',
|
178
|
+
imageTypes: image_types)
|
179
|
+
end
|
180
|
+
|
176
181
|
def set_user_agent_override(user_agent:, accept_language: nil, platform: nil, user_agent_metadata: nil)
|
177
182
|
@devtools.send_cmd('Emulation.setUserAgentOverride',
|
178
183
|
userAgent: user_agent,
|
@@ -182,6 +187,6 @@ module Selenium
|
|
182
187
|
end
|
183
188
|
|
184
189
|
end # Emulation
|
185
|
-
end #
|
190
|
+
end # V90
|
186
191
|
end # DevTools
|
187
192
|
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
|
23
|
+
module V90
|
24
24
|
class Fetch
|
25
25
|
EVENTS = {
|
26
26
|
request_paused: 'requestPaused',
|
@@ -88,6 +88,6 @@ module Selenium
|
|
88
88
|
end
|
89
89
|
|
90
90
|
end # Fetch
|
91
|
-
end #
|
91
|
+
end # V90
|
92
92
|
end # DevTools
|
93
93
|
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
|
23
|
+
module V90
|
24
24
|
class HeadlessExperimental
|
25
25
|
EVENTS = {
|
26
26
|
needs_begin_frames_changed: 'needsBeginFramesChanged',
|
@@ -52,6 +52,6 @@ module Selenium
|
|
52
52
|
end
|
53
53
|
|
54
54
|
end # HeadlessExperimental
|
55
|
-
end #
|
55
|
+
end # V90
|
56
56
|
end # DevTools
|
57
57
|
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
|
23
|
+
module V90
|
24
24
|
class HeapProfiler
|
25
25
|
EVENTS = {
|
26
26
|
add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
|
@@ -98,6 +98,6 @@ module Selenium
|
|
98
98
|
end
|
99
99
|
|
100
100
|
end # HeapProfiler
|
101
|
-
end #
|
101
|
+
end # V90
|
102
102
|
end # DevTools
|
103
103
|
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
|
23
|
+
module V90
|
24
24
|
class IndexedDB
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -91,6 +91,6 @@ module Selenium
|
|
91
91
|
end
|
92
92
|
|
93
93
|
end # IndexedDB
|
94
|
-
end #
|
94
|
+
end # V90
|
95
95
|
end # DevTools
|
96
96
|
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
|
23
|
+
module V90
|
24
24
|
class Input
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -56,7 +56,7 @@ module Selenium
|
|
56
56
|
text: text)
|
57
57
|
end
|
58
58
|
|
59
|
-
def dispatch_mouse_event(type:, x:, y:, modifiers: nil, timestamp: nil, button: nil, buttons: nil, click_count: nil, delta_x: nil, delta_y: nil, pointer_type: nil)
|
59
|
+
def dispatch_mouse_event(type:, x:, y:, modifiers: nil, timestamp: nil, button: nil, buttons: nil, click_count: nil, force: nil, tangential_pressure: nil, tilt_x: nil, tilt_y: nil, twist: nil, delta_x: nil, delta_y: nil, pointer_type: nil)
|
60
60
|
@devtools.send_cmd('Input.dispatchMouseEvent',
|
61
61
|
type: type,
|
62
62
|
x: x,
|
@@ -66,6 +66,11 @@ module Selenium
|
|
66
66
|
button: button,
|
67
67
|
buttons: buttons,
|
68
68
|
clickCount: click_count,
|
69
|
+
force: force,
|
70
|
+
tangentialPressure: tangential_pressure,
|
71
|
+
tiltX: tilt_x,
|
72
|
+
tiltY: tilt_y,
|
73
|
+
twist: twist,
|
69
74
|
deltaX: delta_x,
|
70
75
|
deltaY: delta_y,
|
71
76
|
pointerType: pointer_type)
|
@@ -132,6 +137,6 @@ module Selenium
|
|
132
137
|
end
|
133
138
|
|
134
139
|
end # Input
|
135
|
-
end #
|
140
|
+
end # V90
|
136
141
|
end # DevTools
|
137
142
|
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
|
23
|
+
module V90
|
24
24
|
class Inspector
|
25
25
|
EVENTS = {
|
26
26
|
detached: 'detached',
|
@@ -46,6 +46,6 @@ module Selenium
|
|
46
46
|
end
|
47
47
|
|
48
48
|
end # Inspector
|
49
|
-
end #
|
49
|
+
end # V90
|
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
|
23
|
+
module V90
|
24
24
|
class IO
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -50,6 +50,6 @@ module Selenium
|
|
50
50
|
end
|
51
51
|
|
52
52
|
end # IO
|
53
|
-
end #
|
53
|
+
end # V90
|
54
54
|
end # DevTools
|
55
55
|
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
|
23
|
+
module V90
|
24
24
|
class LayerTree
|
25
25
|
EVENTS = {
|
26
26
|
layer_painted: 'layerPainted',
|
@@ -86,6 +86,6 @@ module Selenium
|
|
86
86
|
end
|
87
87
|
|
88
88
|
end # LayerTree
|
89
|
-
end #
|
89
|
+
end # V90
|
90
90
|
end # DevTools
|
91
91
|
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
|
23
|
+
module V90
|
24
24
|
class Log
|
25
25
|
EVENTS = {
|
26
26
|
entry_added: 'entryAdded',
|
@@ -57,6 +57,6 @@ module Selenium
|
|
57
57
|
end
|
58
58
|
|
59
59
|
end # Log
|
60
|
-
end #
|
60
|
+
end # V90
|
61
61
|
end # DevTools
|
62
62
|
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
|
23
|
+
module V90
|
24
24
|
class Media
|
25
25
|
EVENTS = {
|
26
26
|
player_properties_changed: 'playerPropertiesChanged',
|
@@ -48,6 +48,6 @@ module Selenium
|
|
48
48
|
end
|
49
49
|
|
50
50
|
end # Media
|
51
|
-
end #
|
51
|
+
end # V90
|
52
52
|
end # DevTools
|
53
53
|
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
|
23
|
+
module V90
|
24
24
|
class Memory
|
25
25
|
|
26
26
|
def initialize(devtools)
|
@@ -77,6 +77,6 @@ module Selenium
|
|
77
77
|
end
|
78
78
|
|
79
79
|
end # Memory
|
80
|
-
end #
|
80
|
+
end # V90
|
81
81
|
end # DevTools
|
82
82
|
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
|
23
|
+
module V90
|
24
24
|
class Network
|
25
25
|
EVENTS = {
|
26
26
|
data_received: 'dataReceived',
|
@@ -40,8 +40,12 @@ module Selenium
|
|
40
40
|
web_socket_frame_sent: 'webSocketFrameSent',
|
41
41
|
web_socket_handshake_response_received: 'webSocketHandshakeResponseReceived',
|
42
42
|
web_socket_will_send_handshake_request: 'webSocketWillSendHandshakeRequest',
|
43
|
+
web_transport_created: 'webTransportCreated',
|
44
|
+
web_transport_connection_established: 'webTransportConnectionEstablished',
|
45
|
+
web_transport_closed: 'webTransportClosed',
|
43
46
|
request_will_be_sent_extra_info: 'requestWillBeSentExtraInfo',
|
44
47
|
response_received_extra_info: 'responseReceivedExtraInfo',
|
48
|
+
trust_token_operation_done: 'trustTokenOperationDone',
|
45
49
|
}.freeze
|
46
50
|
|
47
51
|
def initialize(devtools)
|
@@ -175,7 +179,7 @@ module Selenium
|
|
175
179
|
cacheDisabled: cache_disabled)
|
176
180
|
end
|
177
181
|
|
178
|
-
def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil)
|
182
|
+
def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil, same_party: nil, source_scheme: nil, source_port: nil)
|
179
183
|
@devtools.send_cmd('Network.setCookie',
|
180
184
|
name: name,
|
181
185
|
value: value,
|
@@ -186,7 +190,10 @@ module Selenium
|
|
186
190
|
httpOnly: http_only,
|
187
191
|
sameSite: same_site,
|
188
192
|
expires: expires,
|
189
|
-
priority: priority
|
193
|
+
priority: priority,
|
194
|
+
sameParty: same_party,
|
195
|
+
sourceScheme: source_scheme,
|
196
|
+
sourcePort: source_port)
|
190
197
|
end
|
191
198
|
|
192
199
|
def set_cookies(cookies:)
|
@@ -205,8 +212,8 @@ module Selenium
|
|
205
212
|
headers: headers)
|
206
213
|
end
|
207
214
|
|
208
|
-
def
|
209
|
-
@devtools.send_cmd('Network.
|
215
|
+
def set_attach_debug_stack(enabled:)
|
216
|
+
@devtools.send_cmd('Network.setAttachDebugStack',
|
210
217
|
enabled: enabled)
|
211
218
|
end
|
212
219
|
|
@@ -236,6 +243,6 @@ module Selenium
|
|
236
243
|
end
|
237
244
|
|
238
245
|
end # Network
|
239
|
-
end #
|
246
|
+
end # V90
|
240
247
|
end # DevTools
|
241
248
|
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
|
23
|
+
module V90
|
24
24
|
class Overlay
|
25
25
|
EVENTS = {
|
26
26
|
inspect_node_requested: 'inspectNodeRequested',
|
@@ -141,6 +141,11 @@ module Selenium
|
|
141
141
|
gridNodeHighlightConfigs: grid_node_highlight_configs)
|
142
142
|
end
|
143
143
|
|
144
|
+
def set_show_flex_overlays(flex_node_highlight_configs:)
|
145
|
+
@devtools.send_cmd('Overlay.setShowFlexOverlays',
|
146
|
+
flexNodeHighlightConfigs: flex_node_highlight_configs)
|
147
|
+
end
|
148
|
+
|
144
149
|
def set_show_paint_rects(result:)
|
145
150
|
@devtools.send_cmd('Overlay.setShowPaintRects',
|
146
151
|
result: result)
|
@@ -161,6 +166,11 @@ module Selenium
|
|
161
166
|
show: show)
|
162
167
|
end
|
163
168
|
|
169
|
+
def set_show_web_vitals(show:)
|
170
|
+
@devtools.send_cmd('Overlay.setShowWebVitals',
|
171
|
+
show: show)
|
172
|
+
end
|
173
|
+
|
164
174
|
def set_show_viewport_size_on_resize(show:)
|
165
175
|
@devtools.send_cmd('Overlay.setShowViewportSizeOnResize',
|
166
176
|
show: show)
|
@@ -172,6 +182,6 @@ module Selenium
|
|
172
182
|
end
|
173
183
|
|
174
184
|
end # Overlay
|
175
|
-
end #
|
185
|
+
end # V90
|
176
186
|
end # DevTools
|
177
187
|
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
|
23
|
+
module V90
|
24
24
|
class Page
|
25
25
|
EVENTS = {
|
26
26
|
dom_content_event_fired: 'domContentEventFired',
|
@@ -29,6 +29,7 @@ module Selenium
|
|
29
29
|
frame_cleared_scheduled_navigation: 'frameClearedScheduledNavigation',
|
30
30
|
frame_detached: 'frameDetached',
|
31
31
|
frame_navigated: 'frameNavigated',
|
32
|
+
document_opened: 'documentOpened',
|
32
33
|
frame_resized: 'frameResized',
|
33
34
|
frame_requested_navigation: 'frameRequestedNavigation',
|
34
35
|
frame_scheduled_navigation: 'frameScheduledNavigation',
|
@@ -73,12 +74,13 @@ module Selenium
|
|
73
74
|
@devtools.send_cmd('Page.bringToFront')
|
74
75
|
end
|
75
76
|
|
76
|
-
def capture_screenshot(format: nil, quality: nil, clip: nil, from_surface: nil)
|
77
|
+
def capture_screenshot(format: nil, quality: nil, clip: nil, from_surface: nil, capture_beyond_viewport: nil)
|
77
78
|
@devtools.send_cmd('Page.captureScreenshot',
|
78
79
|
format: format,
|
79
80
|
quality: quality,
|
80
81
|
clip: clip,
|
81
|
-
fromSurface: from_surface
|
82
|
+
fromSurface: from_surface,
|
83
|
+
captureBeyondViewport: capture_beyond_viewport)
|
82
84
|
end
|
83
85
|
|
84
86
|
def capture_snapshot(format: nil)
|
@@ -241,6 +243,11 @@ module Selenium
|
|
241
243
|
enabled: enabled)
|
242
244
|
end
|
243
245
|
|
246
|
+
def get_permissions_policy_state(frame_id:)
|
247
|
+
@devtools.send_cmd('Page.getPermissionsPolicyState',
|
248
|
+
frameId: frame_id)
|
249
|
+
end
|
250
|
+
|
244
251
|
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)
|
245
252
|
@devtools.send_cmd('Page.setDeviceMetricsOverride',
|
246
253
|
width: width,
|
@@ -365,6 +372,6 @@ module Selenium
|
|
365
372
|
end
|
366
373
|
|
367
374
|
end # Page
|
368
|
-
end #
|
375
|
+
end # V90
|
369
376
|
end # DevTools
|
370
377
|
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
|
23
|
+
module V90
|
24
24
|
class Performance
|
25
25
|
EVENTS = {
|
26
26
|
metrics: 'metrics',
|
@@ -54,6 +54,6 @@ module Selenium
|
|
54
54
|
end
|
55
55
|
|
56
56
|
end # Performance
|
57
|
-
end #
|
57
|
+
end # V90
|
58
58
|
end # DevTools
|
59
59
|
end # Selenium
|