selenium-devtools 0.100.0 → 0.103.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.
- checksums.yaml +4 -4
- data/lib/selenium/devtools/{v99 → v101}/accessibility.rb +3 -4
- data/lib/selenium/devtools/{v96 → v101}/animation.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/audits.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/browser.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v99 → v101}/cast.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/console.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/css.rb +7 -2
- data/lib/selenium/devtools/{v96 → v101}/database.rb +2 -2
- data/lib/selenium/devtools/{v98 → v101}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/dom.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/emulation.rb +7 -2
- data/lib/selenium/devtools/{v97 → v101}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/input.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/io.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/log.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/media.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/memory.rb +2 -2
- data/lib/selenium/devtools/{v99 → v101}/network.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/page.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/performance.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v99 → v101}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v96 → v101}/schema.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/security.rb +2 -2
- data/lib/selenium/devtools/{v98 → v101}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/storage.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v99 → v101}/target.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v100 → v101}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v97 → v101}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v101.rb +1 -0
- data/lib/selenium/devtools/{v98 → v102}/accessibility.rb +3 -4
- data/lib/selenium/devtools/{v97 → v102}/animation.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/audits.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v98 → v102}/browser.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v98 → v102}/cast.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/console.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/css.rb +14 -2
- data/lib/selenium/devtools/{v97 → v102}/database.rb +2 -2
- data/lib/selenium/devtools/{v96 → v102}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v96 → v102}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/dom.rb +5 -4
- data/lib/selenium/devtools/{v98 → v102}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/emulation.rb +8 -4
- data/lib/selenium/devtools/{v98 → v102}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v96 → v102}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v98 → v102}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v98 → v102}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/input.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/io.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v98 → v102}/log.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/media.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/memory.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/network.rb +2 -2
- data/lib/selenium/devtools/{v98 → v102}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v99 → v102}/page.rb +3 -2
- data/lib/selenium/devtools/{v97 → v102}/performance.rb +2 -2
- data/lib/selenium/devtools/{v96 → v102}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/runtime.rb +8 -6
- data/lib/selenium/devtools/{v98 → v102}/schema.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/security.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v99 → v102}/storage.rb +2 -2
- data/lib/selenium/devtools/{v96 → v102}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v98 → v102}/target.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v97 → v102}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v100 → v102}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v102.rb +1 -0
- data/lib/selenium/devtools/{v100 → v103}/accessibility.rb +3 -4
- data/lib/selenium/devtools/{v100 → v103}/animation.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/audits.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/browser.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v100 → v103}/cast.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/console.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/css.rb +14 -2
- data/lib/selenium/devtools/{v100 → v103}/database.rb +2 -2
- data/lib/selenium/devtools/{v100 → v103}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/dom.rb +5 -4
- data/lib/selenium/devtools/{v96 → v103}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v100 → v103}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/dom_storage.rb +7 -2
- data/lib/selenium/devtools/{v98 → v103}/emulation.rb +8 -4
- data/lib/selenium/devtools/{v99 → v103}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/heap_profiler.rb +8 -6
- data/lib/selenium/devtools/{v96 → v103}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/input.rb +2 -2
- data/lib/selenium/devtools/{v100 → v103}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/io.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/log.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/media.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/memory.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/network.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/page.rb +7 -6
- data/lib/selenium/devtools/{v96 → v103}/performance.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v100 → v103}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v97 → v103}/runtime.rb +13 -6
- data/lib/selenium/devtools/{v97 → v103}/schema.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/security.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/storage.rb +14 -2
- data/lib/selenium/devtools/{v100 → v103}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v100 → v103}/target.rb +2 -2
- data/lib/selenium/devtools/{v98 → v103}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v96 → v103}/web_authn.rb +5 -4
- data/lib/selenium/devtools/v103.rb +1 -0
- data/lib/selenium/devtools/version.rb +1 -1
- data/selenium-devtools.gemspec +3 -4
- metadata +147 -253
- data/lib/selenium/devtools/v100/audits.rb +0 -62
- data/lib/selenium/devtools/v100/dom_debugger.rb +0 -94
- data/lib/selenium/devtools/v100/event_breakpoints.rb +0 -48
- data/lib/selenium/devtools/v100/indexed_db.rb +0 -96
- data/lib/selenium/devtools/v100/layer_tree.rb +0 -91
- data/lib/selenium/devtools/v100/log.rb +0 -62
- data/lib/selenium/devtools/v100/media.rb +0 -53
- data/lib/selenium/devtools/v100/performance_timeline.rb +0 -46
- data/lib/selenium/devtools/v100/schema.rb +0 -42
- data/lib/selenium/devtools/v100/service_worker.rb +0 -112
- data/lib/selenium/devtools/v100.rb +0 -1
- data/lib/selenium/devtools/v96/accessibility.rb +0 -76
- data/lib/selenium/devtools/v96/browser.rb +0 -135
- data/lib/selenium/devtools/v96/cast.rb +0 -66
- data/lib/selenium/devtools/v96/css.rb +0 -182
- data/lib/selenium/devtools/v96/dom.rb +0 -334
- data/lib/selenium/devtools/v96/emulation.rb +0 -197
- data/lib/selenium/devtools/v96/heap_profiler.rb +0 -105
- data/lib/selenium/devtools/v96/io.rb +0 -55
- data/lib/selenium/devtools/v96/network.rb +0 -262
- data/lib/selenium/devtools/v96/overlay.rb +0 -202
- data/lib/selenium/devtools/v96/page.rb +0 -393
- data/lib/selenium/devtools/v96/runtime.rb +0 -194
- data/lib/selenium/devtools/v96/security.rb +0 -67
- data/lib/selenium/devtools/v96/target.rb +0 -145
- data/lib/selenium/devtools/v96/tethering.rb +0 -51
- data/lib/selenium/devtools/v96.rb +0 -1
- data/lib/selenium/devtools/v97/accessibility.rb +0 -76
- data/lib/selenium/devtools/v97/cast.rb +0 -66
- data/lib/selenium/devtools/v97/debugger.rb +0 -220
- data/lib/selenium/devtools/v97/network.rb +0 -262
- data/lib/selenium/devtools/v97/storage.rb +0 -106
- data/lib/selenium/devtools/v97/target.rb +0 -145
- data/lib/selenium/devtools/v97.rb +0 -1
- data/lib/selenium/devtools/v98/animation.rb +0 -94
- data/lib/selenium/devtools/v98/background_service.rb +0 -63
- data/lib/selenium/devtools/v98/cache_storage.rb +0 -69
- data/lib/selenium/devtools/v98/console.rb +0 -53
- data/lib/selenium/devtools/v98/database.rb +0 -60
- data/lib/selenium/devtools/v98/device_orientation.rb +0 -49
- data/lib/selenium/devtools/v98/dom_snapshot.rb +0 -63
- data/lib/selenium/devtools/v98/dom_storage.rb +0 -75
- data/lib/selenium/devtools/v98/fetch.rb +0 -103
- data/lib/selenium/devtools/v98/headless_experimental.rb +0 -57
- data/lib/selenium/devtools/v98/input.rb +0 -168
- data/lib/selenium/devtools/v98/inspector.rb +0 -51
- data/lib/selenium/devtools/v98/memory.rb +0 -82
- data/lib/selenium/devtools/v98/page.rb +0 -393
- data/lib/selenium/devtools/v98/performance.rb +0 -59
- data/lib/selenium/devtools/v98/profiler.rb +0 -95
- data/lib/selenium/devtools/v98/runtime.rb +0 -194
- data/lib/selenium/devtools/v98/storage.rb +0 -106
- data/lib/selenium/devtools/v98/system_info.rb +0 -46
- data/lib/selenium/devtools/v98/tracing.rb +0 -75
- data/lib/selenium/devtools/v98/web_audio.rb +0 -66
- data/lib/selenium/devtools/v98/web_authn.rb +0 -96
- data/lib/selenium/devtools/v98.rb +0 -1
- data/lib/selenium/devtools/v99/animation.rb +0 -94
- data/lib/selenium/devtools/v99/audits.rb +0 -62
- data/lib/selenium/devtools/v99/background_service.rb +0 -63
- data/lib/selenium/devtools/v99/browser.rb +0 -135
- data/lib/selenium/devtools/v99/cache_storage.rb +0 -69
- data/lib/selenium/devtools/v99/console.rb +0 -53
- data/lib/selenium/devtools/v99/css.rb +0 -182
- data/lib/selenium/devtools/v99/database.rb +0 -60
- data/lib/selenium/devtools/v99/debugger.rb +0 -220
- data/lib/selenium/devtools/v99/device_orientation.rb +0 -49
- data/lib/selenium/devtools/v99/dom.rb +0 -334
- data/lib/selenium/devtools/v99/dom_debugger.rb +0 -94
- data/lib/selenium/devtools/v99/dom_snapshot.rb +0 -63
- data/lib/selenium/devtools/v99/dom_storage.rb +0 -75
- data/lib/selenium/devtools/v99/emulation.rb +0 -197
- data/lib/selenium/devtools/v99/fetch.rb +0 -103
- data/lib/selenium/devtools/v99/headless_experimental.rb +0 -57
- data/lib/selenium/devtools/v99/heap_profiler.rb +0 -105
- data/lib/selenium/devtools/v99/indexed_db.rb +0 -96
- data/lib/selenium/devtools/v99/input.rb +0 -168
- data/lib/selenium/devtools/v99/inspector.rb +0 -51
- data/lib/selenium/devtools/v99/io.rb +0 -55
- data/lib/selenium/devtools/v99/layer_tree.rb +0 -91
- data/lib/selenium/devtools/v99/log.rb +0 -62
- data/lib/selenium/devtools/v99/media.rb +0 -53
- data/lib/selenium/devtools/v99/memory.rb +0 -82
- data/lib/selenium/devtools/v99/overlay.rb +0 -202
- data/lib/selenium/devtools/v99/performance.rb +0 -59
- data/lib/selenium/devtools/v99/performance_timeline.rb +0 -46
- data/lib/selenium/devtools/v99/profiler.rb +0 -95
- data/lib/selenium/devtools/v99/schema.rb +0 -42
- data/lib/selenium/devtools/v99/security.rb +0 -67
- data/lib/selenium/devtools/v99/service_worker.rb +0 -112
- data/lib/selenium/devtools/v99/system_info.rb +0 -46
- data/lib/selenium/devtools/v99/tethering.rb +0 -51
- data/lib/selenium/devtools/v99/tracing.rb +0 -75
- data/lib/selenium/devtools/v99/web_audio.rb +0 -66
- data/lib/selenium/devtools/v99/web_authn.rb +0 -96
- data/lib/selenium/devtools/v99.rb +0 -1
|
@@ -1,262 +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 V97
|
|
24
|
-
class Network
|
|
25
|
-
EVENTS = {
|
|
26
|
-
data_received: 'dataReceived',
|
|
27
|
-
event_source_message_received: 'eventSourceMessageReceived',
|
|
28
|
-
loading_failed: 'loadingFailed',
|
|
29
|
-
loading_finished: 'loadingFinished',
|
|
30
|
-
request_intercepted: 'requestIntercepted',
|
|
31
|
-
request_served_from_cache: 'requestServedFromCache',
|
|
32
|
-
request_will_be_sent: 'requestWillBeSent',
|
|
33
|
-
resource_changed_priority: 'resourceChangedPriority',
|
|
34
|
-
signed_exchange_received: 'signedExchangeReceived',
|
|
35
|
-
response_received: 'responseReceived',
|
|
36
|
-
web_socket_closed: 'webSocketClosed',
|
|
37
|
-
web_socket_created: 'webSocketCreated',
|
|
38
|
-
web_socket_frame_error: 'webSocketFrameError',
|
|
39
|
-
web_socket_frame_received: 'webSocketFrameReceived',
|
|
40
|
-
web_socket_frame_sent: 'webSocketFrameSent',
|
|
41
|
-
web_socket_handshake_response_received: 'webSocketHandshakeResponseReceived',
|
|
42
|
-
web_socket_will_send_handshake_request: 'webSocketWillSendHandshakeRequest',
|
|
43
|
-
web_transport_created: 'webTransportCreated',
|
|
44
|
-
web_transport_connection_established: 'webTransportConnectionEstablished',
|
|
45
|
-
web_transport_closed: 'webTransportClosed',
|
|
46
|
-
request_will_be_sent_extra_info: 'requestWillBeSentExtraInfo',
|
|
47
|
-
response_received_extra_info: 'responseReceivedExtraInfo',
|
|
48
|
-
trust_token_operation_done: 'trustTokenOperationDone',
|
|
49
|
-
subresource_web_bundle_metadata_received: 'subresourceWebBundleMetadataReceived',
|
|
50
|
-
subresource_web_bundle_metadata_error: 'subresourceWebBundleMetadataError',
|
|
51
|
-
subresource_web_bundle_inner_response_parsed: 'subresourceWebBundleInnerResponseParsed',
|
|
52
|
-
subresource_web_bundle_inner_response_error: 'subresourceWebBundleInnerResponseError',
|
|
53
|
-
reporting_api_report_added: 'reportingApiReportAdded',
|
|
54
|
-
reporting_api_report_updated: 'reportingApiReportUpdated',
|
|
55
|
-
}.freeze
|
|
56
|
-
|
|
57
|
-
def initialize(devtools)
|
|
58
|
-
@devtools = devtools
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
def on(event, &block)
|
|
62
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
|
63
|
-
@devtools.callbacks["Network.#{event}"] << block
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
def set_accepted_encodings(encodings:)
|
|
67
|
-
@devtools.send_cmd('Network.setAcceptedEncodings',
|
|
68
|
-
encodings: encodings)
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def clear_accepted_encodings_override
|
|
72
|
-
@devtools.send_cmd('Network.clearAcceptedEncodingsOverride')
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
def can_clear_browser_cache
|
|
76
|
-
@devtools.send_cmd('Network.canClearBrowserCache')
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
def can_clear_browser_cookies
|
|
80
|
-
@devtools.send_cmd('Network.canClearBrowserCookies')
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
def can_emulate_network_conditions
|
|
84
|
-
@devtools.send_cmd('Network.canEmulateNetworkConditions')
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
def clear_browser_cache
|
|
88
|
-
@devtools.send_cmd('Network.clearBrowserCache')
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
def clear_browser_cookies
|
|
92
|
-
@devtools.send_cmd('Network.clearBrowserCookies')
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
def continue_intercepted_request(interception_id:, error_reason: nil, raw_response: nil, url: nil, method: nil, post_data: nil, headers: nil, auth_challenge_response: nil)
|
|
96
|
-
@devtools.send_cmd('Network.continueInterceptedRequest',
|
|
97
|
-
interceptionId: interception_id,
|
|
98
|
-
errorReason: error_reason,
|
|
99
|
-
rawResponse: raw_response,
|
|
100
|
-
url: url,
|
|
101
|
-
method: method,
|
|
102
|
-
postData: post_data,
|
|
103
|
-
headers: headers,
|
|
104
|
-
authChallengeResponse: auth_challenge_response)
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
def delete_cookies(name:, url: nil, domain: nil, path: nil)
|
|
108
|
-
@devtools.send_cmd('Network.deleteCookies',
|
|
109
|
-
name: name,
|
|
110
|
-
url: url,
|
|
111
|
-
domain: domain,
|
|
112
|
-
path: path)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
def disable
|
|
116
|
-
@devtools.send_cmd('Network.disable')
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
def emulate_network_conditions(offline:, latency:, download_throughput:, upload_throughput:, connection_type: nil)
|
|
120
|
-
@devtools.send_cmd('Network.emulateNetworkConditions',
|
|
121
|
-
offline: offline,
|
|
122
|
-
latency: latency,
|
|
123
|
-
downloadThroughput: download_throughput,
|
|
124
|
-
uploadThroughput: upload_throughput,
|
|
125
|
-
connectionType: connection_type)
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
def enable(max_total_buffer_size: nil, max_resource_buffer_size: nil, max_post_data_size: nil)
|
|
129
|
-
@devtools.send_cmd('Network.enable',
|
|
130
|
-
maxTotalBufferSize: max_total_buffer_size,
|
|
131
|
-
maxResourceBufferSize: max_resource_buffer_size,
|
|
132
|
-
maxPostDataSize: max_post_data_size)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
def get_all_cookies
|
|
136
|
-
@devtools.send_cmd('Network.getAllCookies')
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
def get_certificate(origin:)
|
|
140
|
-
@devtools.send_cmd('Network.getCertificate',
|
|
141
|
-
origin: origin)
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
def get_cookies(urls: nil)
|
|
145
|
-
@devtools.send_cmd('Network.getCookies',
|
|
146
|
-
urls: urls)
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
def get_response_body(request_id:)
|
|
150
|
-
@devtools.send_cmd('Network.getResponseBody',
|
|
151
|
-
requestId: request_id)
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
def get_request_post_data(request_id:)
|
|
155
|
-
@devtools.send_cmd('Network.getRequestPostData',
|
|
156
|
-
requestId: request_id)
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def get_response_body_for_interception(interception_id:)
|
|
160
|
-
@devtools.send_cmd('Network.getResponseBodyForInterception',
|
|
161
|
-
interceptionId: interception_id)
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
def take_response_body_for_interception_as_stream(interception_id:)
|
|
165
|
-
@devtools.send_cmd('Network.takeResponseBodyForInterceptionAsStream',
|
|
166
|
-
interceptionId: interception_id)
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def replay_xhr(request_id:)
|
|
170
|
-
@devtools.send_cmd('Network.replayXHR',
|
|
171
|
-
requestId: request_id)
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
def search_in_response_body(request_id:, query:, case_sensitive: nil, is_regex: nil)
|
|
175
|
-
@devtools.send_cmd('Network.searchInResponseBody',
|
|
176
|
-
requestId: request_id,
|
|
177
|
-
query: query,
|
|
178
|
-
caseSensitive: case_sensitive,
|
|
179
|
-
isRegex: is_regex)
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def set_blocked_urls(urls:)
|
|
183
|
-
@devtools.send_cmd('Network.setBlockedURLs',
|
|
184
|
-
urls: urls)
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def set_bypass_service_worker(bypass:)
|
|
188
|
-
@devtools.send_cmd('Network.setBypassServiceWorker',
|
|
189
|
-
bypass: bypass)
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
def set_cache_disabled(cache_disabled:)
|
|
193
|
-
@devtools.send_cmd('Network.setCacheDisabled',
|
|
194
|
-
cacheDisabled: cache_disabled)
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
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)
|
|
198
|
-
@devtools.send_cmd('Network.setCookie',
|
|
199
|
-
name: name,
|
|
200
|
-
value: value,
|
|
201
|
-
url: url,
|
|
202
|
-
domain: domain,
|
|
203
|
-
path: path,
|
|
204
|
-
secure: secure,
|
|
205
|
-
httpOnly: http_only,
|
|
206
|
-
sameSite: same_site,
|
|
207
|
-
expires: expires,
|
|
208
|
-
priority: priority,
|
|
209
|
-
sameParty: same_party,
|
|
210
|
-
sourceScheme: source_scheme,
|
|
211
|
-
sourcePort: source_port)
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
def set_cookies(cookies:)
|
|
215
|
-
@devtools.send_cmd('Network.setCookies',
|
|
216
|
-
cookies: cookies)
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def set_extra_http_headers(headers:)
|
|
220
|
-
@devtools.send_cmd('Network.setExtraHTTPHeaders',
|
|
221
|
-
headers: headers)
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
def set_attach_debug_stack(enabled:)
|
|
225
|
-
@devtools.send_cmd('Network.setAttachDebugStack',
|
|
226
|
-
enabled: enabled)
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
def set_request_interception(patterns:)
|
|
230
|
-
@devtools.send_cmd('Network.setRequestInterception',
|
|
231
|
-
patterns: patterns)
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def set_user_agent_override(user_agent:, accept_language: nil, platform: nil, user_agent_metadata: nil)
|
|
235
|
-
@devtools.send_cmd('Network.setUserAgentOverride',
|
|
236
|
-
userAgent: user_agent,
|
|
237
|
-
acceptLanguage: accept_language,
|
|
238
|
-
platform: platform,
|
|
239
|
-
userAgentMetadata: user_agent_metadata)
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
def get_security_isolation_status(frame_id: nil)
|
|
243
|
-
@devtools.send_cmd('Network.getSecurityIsolationStatus',
|
|
244
|
-
frameId: frame_id)
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
def enable_reporting_api(enable:)
|
|
248
|
-
@devtools.send_cmd('Network.enableReportingApi',
|
|
249
|
-
enable: enable)
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
def load_network_resource(frame_id: nil, url:, options:)
|
|
253
|
-
@devtools.send_cmd('Network.loadNetworkResource',
|
|
254
|
-
frameId: frame_id,
|
|
255
|
-
url: url,
|
|
256
|
-
options: options)
|
|
257
|
-
end
|
|
258
|
-
|
|
259
|
-
end # Network
|
|
260
|
-
end # V97
|
|
261
|
-
end # DevTools
|
|
262
|
-
end # Selenium
|
|
@@ -1,106 +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 V97
|
|
24
|
-
class Storage
|
|
25
|
-
EVENTS = {
|
|
26
|
-
cache_storage_content_updated: 'cacheStorageContentUpdated',
|
|
27
|
-
cache_storage_list_updated: 'cacheStorageListUpdated',
|
|
28
|
-
indexed_db_content_updated: 'indexedDBContentUpdated',
|
|
29
|
-
indexed_db_list_updated: 'indexedDBListUpdated',
|
|
30
|
-
}.freeze
|
|
31
|
-
|
|
32
|
-
def initialize(devtools)
|
|
33
|
-
@devtools = devtools
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
def on(event, &block)
|
|
37
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
|
38
|
-
@devtools.callbacks["Storage.#{event}"] << block
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
def clear_data_for_origin(origin:, storage_types:)
|
|
42
|
-
@devtools.send_cmd('Storage.clearDataForOrigin',
|
|
43
|
-
origin: origin,
|
|
44
|
-
storageTypes: storage_types)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def get_cookies(browser_context_id: nil)
|
|
48
|
-
@devtools.send_cmd('Storage.getCookies',
|
|
49
|
-
browserContextId: browser_context_id)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def set_cookies(cookies:, browser_context_id: nil)
|
|
53
|
-
@devtools.send_cmd('Storage.setCookies',
|
|
54
|
-
cookies: cookies,
|
|
55
|
-
browserContextId: browser_context_id)
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def clear_cookies(browser_context_id: nil)
|
|
59
|
-
@devtools.send_cmd('Storage.clearCookies',
|
|
60
|
-
browserContextId: browser_context_id)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
def get_usage_and_quota(origin:)
|
|
64
|
-
@devtools.send_cmd('Storage.getUsageAndQuota',
|
|
65
|
-
origin: origin)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def override_quota_for_origin(origin:, quota_size: nil)
|
|
69
|
-
@devtools.send_cmd('Storage.overrideQuotaForOrigin',
|
|
70
|
-
origin: origin,
|
|
71
|
-
quotaSize: quota_size)
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
def track_cache_storage_for_origin(origin:)
|
|
75
|
-
@devtools.send_cmd('Storage.trackCacheStorageForOrigin',
|
|
76
|
-
origin: origin)
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
def track_indexed_db_for_origin(origin:)
|
|
80
|
-
@devtools.send_cmd('Storage.trackIndexedDBForOrigin',
|
|
81
|
-
origin: origin)
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def untrack_cache_storage_for_origin(origin:)
|
|
85
|
-
@devtools.send_cmd('Storage.untrackCacheStorageForOrigin',
|
|
86
|
-
origin: origin)
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
def untrack_indexed_db_for_origin(origin:)
|
|
90
|
-
@devtools.send_cmd('Storage.untrackIndexedDBForOrigin',
|
|
91
|
-
origin: origin)
|
|
92
|
-
end
|
|
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
|
-
|
|
103
|
-
end # Storage
|
|
104
|
-
end # V97
|
|
105
|
-
end # DevTools
|
|
106
|
-
end # Selenium
|
|
@@ -1,145 +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 V97
|
|
24
|
-
class Target
|
|
25
|
-
EVENTS = {
|
|
26
|
-
attached_to_target: 'attachedToTarget',
|
|
27
|
-
detached_from_target: 'detachedFromTarget',
|
|
28
|
-
received_message_from_target: 'receivedMessageFromTarget',
|
|
29
|
-
target_created: 'targetCreated',
|
|
30
|
-
target_destroyed: 'targetDestroyed',
|
|
31
|
-
target_crashed: 'targetCrashed',
|
|
32
|
-
target_info_changed: 'targetInfoChanged',
|
|
33
|
-
}.freeze
|
|
34
|
-
|
|
35
|
-
def initialize(devtools)
|
|
36
|
-
@devtools = devtools
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def on(event, &block)
|
|
40
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
|
41
|
-
@devtools.callbacks["Target.#{event}"] << block
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def activate_target(target_id:)
|
|
45
|
-
@devtools.send_cmd('Target.activateTarget',
|
|
46
|
-
targetId: target_id)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def attach_to_target(target_id:, flatten: nil)
|
|
50
|
-
@devtools.send_cmd('Target.attachToTarget',
|
|
51
|
-
targetId: target_id,
|
|
52
|
-
flatten: flatten)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
def attach_to_browser_target
|
|
56
|
-
@devtools.send_cmd('Target.attachToBrowserTarget')
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
def close_target(target_id:)
|
|
60
|
-
@devtools.send_cmd('Target.closeTarget',
|
|
61
|
-
targetId: target_id)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def expose_dev_tools_protocol(target_id:, binding_name: nil)
|
|
65
|
-
@devtools.send_cmd('Target.exposeDevToolsProtocol',
|
|
66
|
-
targetId: target_id,
|
|
67
|
-
bindingName: binding_name)
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
def create_browser_context(dispose_on_detach: nil, proxy_server: nil, proxy_bypass_list: nil)
|
|
71
|
-
@devtools.send_cmd('Target.createBrowserContext',
|
|
72
|
-
disposeOnDetach: dispose_on_detach,
|
|
73
|
-
proxyServer: proxy_server,
|
|
74
|
-
proxyBypassList: proxy_bypass_list)
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
def get_browser_contexts
|
|
78
|
-
@devtools.send_cmd('Target.getBrowserContexts')
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
def create_target(url:, width: nil, height: nil, browser_context_id: nil, enable_begin_frame_control: nil, new_window: nil, background: nil)
|
|
82
|
-
@devtools.send_cmd('Target.createTarget',
|
|
83
|
-
url: url,
|
|
84
|
-
width: width,
|
|
85
|
-
height: height,
|
|
86
|
-
browserContextId: browser_context_id,
|
|
87
|
-
enableBeginFrameControl: enable_begin_frame_control,
|
|
88
|
-
newWindow: new_window,
|
|
89
|
-
background: background)
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
def detach_from_target(session_id: nil, target_id: nil)
|
|
93
|
-
@devtools.send_cmd('Target.detachFromTarget',
|
|
94
|
-
sessionId: session_id,
|
|
95
|
-
targetId: target_id)
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
def dispose_browser_context(browser_context_id:)
|
|
99
|
-
@devtools.send_cmd('Target.disposeBrowserContext',
|
|
100
|
-
browserContextId: browser_context_id)
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
def get_target_info(target_id: nil)
|
|
104
|
-
@devtools.send_cmd('Target.getTargetInfo',
|
|
105
|
-
targetId: target_id)
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
def get_targets
|
|
109
|
-
@devtools.send_cmd('Target.getTargets')
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
def send_message_to_target(message:, session_id: nil, target_id: nil)
|
|
113
|
-
@devtools.send_cmd('Target.sendMessageToTarget',
|
|
114
|
-
message: message,
|
|
115
|
-
sessionId: session_id,
|
|
116
|
-
targetId: target_id)
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
def set_auto_attach(auto_attach:, wait_for_debugger_on_start:, flatten: nil)
|
|
120
|
-
@devtools.send_cmd('Target.setAutoAttach',
|
|
121
|
-
autoAttach: auto_attach,
|
|
122
|
-
waitForDebuggerOnStart: wait_for_debugger_on_start,
|
|
123
|
-
flatten: flatten)
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
def auto_attach_related(target_id:, wait_for_debugger_on_start:)
|
|
127
|
-
@devtools.send_cmd('Target.autoAttachRelated',
|
|
128
|
-
targetId: target_id,
|
|
129
|
-
waitForDebuggerOnStart: wait_for_debugger_on_start)
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
def set_discover_targets(discover:)
|
|
133
|
-
@devtools.send_cmd('Target.setDiscoverTargets',
|
|
134
|
-
discover: discover)
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
def set_remote_locations(locations:)
|
|
138
|
-
@devtools.send_cmd('Target.setRemoteLocations',
|
|
139
|
-
locations: locations)
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
end # Target
|
|
143
|
-
end # V97
|
|
144
|
-
end # DevTools
|
|
145
|
-
end # Selenium
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v97/*", &method(:require))
|
|
@@ -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 V98
|
|
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 # V98
|
|
93
|
-
end # DevTools
|
|
94
|
-
end # Selenium
|
|
@@ -1,63 +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 V98
|
|
24
|
-
class BackgroundService
|
|
25
|
-
EVENTS = {
|
|
26
|
-
recording_state_changed: 'recordingStateChanged',
|
|
27
|
-
background_service_event_received: 'backgroundServiceEventReceived',
|
|
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["BackgroundService.#{event}"] << block
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def start_observing(service:)
|
|
40
|
-
@devtools.send_cmd('BackgroundService.startObserving',
|
|
41
|
-
service: service)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def stop_observing(service:)
|
|
45
|
-
@devtools.send_cmd('BackgroundService.stopObserving',
|
|
46
|
-
service: service)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def set_recording(should_record:, service:)
|
|
50
|
-
@devtools.send_cmd('BackgroundService.setRecording',
|
|
51
|
-
shouldRecord: should_record,
|
|
52
|
-
service: service)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
def clear_events(service:)
|
|
56
|
-
@devtools.send_cmd('BackgroundService.clearEvents',
|
|
57
|
-
service: service)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
end # BackgroundService
|
|
61
|
-
end # V98
|
|
62
|
-
end # DevTools
|
|
63
|
-
end # Selenium
|