selenium-devtools 0.97.0 → 0.99.1
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/README.md +9 -2
- data/lib/selenium/devtools/{v95 → v98}/accessibility.rb +18 -2
- data/lib/selenium/devtools/{v95 → v98}/animation.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/audits.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/browser.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/cast.rb +7 -2
- data/lib/selenium/devtools/{v95 → v98}/console.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/css.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/database.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/dom.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/emulation.rb +2 -2
- data/lib/selenium/devtools/v98/event_breakpoints.rb +48 -0
- data/lib/selenium/devtools/{v95 → v98}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/input.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/io.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/log.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/media.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/memory.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/network.rb +6 -4
- data/lib/selenium/devtools/{v95 → v98}/overlay.rb +7 -2
- data/lib/selenium/devtools/{v95 → v98}/page.rb +7 -7
- data/lib/selenium/devtools/{v95 → v98}/performance.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/schema.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/security.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/storage.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/target.rb +5 -4
- data/lib/selenium/devtools/{v95 → v98}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v95 → v98}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v98.rb +1 -0
- data/lib/selenium/devtools/v99/accessibility.rb +92 -0
- data/lib/selenium/devtools/v99/animation.rb +94 -0
- data/lib/selenium/devtools/v99/audits.rb +62 -0
- data/lib/selenium/devtools/{v95/application_cache.rb → v99/background_service.rb} +20 -17
- data/lib/selenium/devtools/v99/browser.rb +135 -0
- data/lib/selenium/devtools/v99/cache_storage.rb +69 -0
- data/lib/selenium/devtools/v99/cast.rb +71 -0
- data/lib/selenium/devtools/v99/console.rb +53 -0
- data/lib/selenium/devtools/v99/css.rb +182 -0
- data/lib/selenium/devtools/v99/database.rb +60 -0
- data/lib/selenium/devtools/v99/debugger.rb +220 -0
- data/lib/selenium/devtools/v99/device_orientation.rb +49 -0
- data/lib/selenium/devtools/v99/dom.rb +334 -0
- data/lib/selenium/devtools/v99/dom_debugger.rb +94 -0
- data/lib/selenium/devtools/v99/dom_snapshot.rb +63 -0
- data/lib/selenium/devtools/v99/dom_storage.rb +75 -0
- data/lib/selenium/devtools/v99/emulation.rb +197 -0
- data/lib/selenium/devtools/v99/event_breakpoints.rb +48 -0
- data/lib/selenium/devtools/v99/fetch.rb +103 -0
- data/lib/selenium/devtools/v99/headless_experimental.rb +57 -0
- data/lib/selenium/devtools/v99/heap_profiler.rb +105 -0
- data/lib/selenium/devtools/v99/indexed_db.rb +96 -0
- data/lib/selenium/devtools/v99/input.rb +168 -0
- data/lib/selenium/devtools/v99/inspector.rb +51 -0
- data/lib/selenium/devtools/v99/io.rb +55 -0
- data/lib/selenium/devtools/v99/layer_tree.rb +91 -0
- data/lib/selenium/devtools/v99/log.rb +62 -0
- data/lib/selenium/devtools/v99/media.rb +53 -0
- data/lib/selenium/devtools/v99/memory.rb +82 -0
- data/lib/selenium/devtools/v99/network.rb +264 -0
- data/lib/selenium/devtools/v99/overlay.rb +202 -0
- data/lib/selenium/devtools/v99/page.rb +394 -0
- data/lib/selenium/devtools/v99/performance.rb +59 -0
- data/lib/selenium/devtools/v99/performance_timeline.rb +46 -0
- data/lib/selenium/devtools/v99/profiler.rb +95 -0
- data/lib/selenium/devtools/v99/runtime.rb +199 -0
- data/lib/selenium/devtools/v99/schema.rb +42 -0
- data/lib/selenium/devtools/v99/security.rb +67 -0
- data/lib/selenium/devtools/v99/service_worker.rb +112 -0
- data/lib/selenium/devtools/v99/storage.rb +118 -0
- data/lib/selenium/devtools/v99/system_info.rb +46 -0
- data/lib/selenium/devtools/v99/target.rb +146 -0
- data/lib/selenium/devtools/v99/tethering.rb +51 -0
- data/lib/selenium/devtools/v99/tracing.rb +75 -0
- data/lib/selenium/devtools/v99/web_audio.rb +66 -0
- data/lib/selenium/devtools/v99/web_authn.rb +96 -0
- data/lib/selenium/devtools/v99.rb +1 -0
- data/lib/selenium/devtools/version.rb +1 -1
- metadata +96 -49
- data/lib/selenium/devtools/v95.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 V98
|
|
24
24
|
class Page
|
|
25
25
|
EVENTS = {
|
|
26
26
|
dom_content_event_fired: 'domContentEventFired',
|
|
@@ -352,11 +352,6 @@ module Selenium
|
|
|
352
352
|
@devtools.send_cmd('Page.stopScreencast')
|
|
353
353
|
end
|
|
354
354
|
|
|
355
|
-
def set_produce_compilation_cache(enabled:)
|
|
356
|
-
@devtools.send_cmd('Page.setProduceCompilationCache',
|
|
357
|
-
enabled: enabled)
|
|
358
|
-
end
|
|
359
|
-
|
|
360
355
|
def produce_compilation_cache(scripts:)
|
|
361
356
|
@devtools.send_cmd('Page.produceCompilationCache',
|
|
362
357
|
scripts: scripts)
|
|
@@ -372,6 +367,11 @@ module Selenium
|
|
|
372
367
|
@devtools.send_cmd('Page.clearCompilationCache')
|
|
373
368
|
end
|
|
374
369
|
|
|
370
|
+
def set_spc_transaction_mode(mode:)
|
|
371
|
+
@devtools.send_cmd('Page.setSPCTransactionMode',
|
|
372
|
+
mode: mode)
|
|
373
|
+
end
|
|
374
|
+
|
|
375
375
|
def generate_test_report(message:, group: nil)
|
|
376
376
|
@devtools.send_cmd('Page.generateTestReport',
|
|
377
377
|
message: message,
|
|
@@ -388,6 +388,6 @@ module Selenium
|
|
|
388
388
|
end
|
|
389
389
|
|
|
390
390
|
end # Page
|
|
391
|
-
end #
|
|
391
|
+
end # V98
|
|
392
392
|
end # DevTools
|
|
393
393
|
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 V98
|
|
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 # V98
|
|
58
58
|
end # DevTools
|
|
59
59
|
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 V98
|
|
24
24
|
class PerformanceTimeline
|
|
25
25
|
EVENTS = {
|
|
26
26
|
timeline_event_added: 'timelineEventAdded',
|
|
@@ -41,6 +41,6 @@ module Selenium
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
end # PerformanceTimeline
|
|
44
|
-
end #
|
|
44
|
+
end # V98
|
|
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
|
|
23
|
+
module V98
|
|
24
24
|
class Profiler
|
|
25
25
|
EVENTS = {
|
|
26
26
|
console_profile_finished: 'consoleProfileFinished',
|
|
@@ -90,6 +90,6 @@ module Selenium
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
end # Profiler
|
|
93
|
-
end #
|
|
93
|
+
end # V98
|
|
94
94
|
end # DevTools
|
|
95
95
|
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 V98
|
|
24
24
|
class Runtime
|
|
25
25
|
EVENTS = {
|
|
26
26
|
binding_called: 'bindingCalled',
|
|
@@ -189,6 +189,6 @@ module Selenium
|
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
end # Runtime
|
|
192
|
-
end #
|
|
192
|
+
end # V98
|
|
193
193
|
end # DevTools
|
|
194
194
|
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 V98
|
|
24
24
|
class Schema
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -37,6 +37,6 @@ module Selenium
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
end # Schema
|
|
40
|
-
end #
|
|
40
|
+
end # V98
|
|
41
41
|
end # DevTools
|
|
42
42
|
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 V98
|
|
24
24
|
class Security
|
|
25
25
|
EVENTS = {
|
|
26
26
|
certificate_error: 'certificateError',
|
|
@@ -62,6 +62,6 @@ module Selenium
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
end # Security
|
|
65
|
-
end #
|
|
65
|
+
end # V98
|
|
66
66
|
end # DevTools
|
|
67
67
|
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 V98
|
|
24
24
|
class ServiceWorker
|
|
25
25
|
EVENTS = {
|
|
26
26
|
worker_error_reported: 'workerErrorReported',
|
|
@@ -107,6 +107,6 @@ module Selenium
|
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
end # ServiceWorker
|
|
110
|
-
end #
|
|
110
|
+
end # V98
|
|
111
111
|
end # DevTools
|
|
112
112
|
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 V98
|
|
24
24
|
class Storage
|
|
25
25
|
EVENTS = {
|
|
26
26
|
cache_storage_content_updated: 'cacheStorageContentUpdated',
|
|
@@ -101,6 +101,6 @@ module Selenium
|
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
end # Storage
|
|
104
|
-
end #
|
|
104
|
+
end # V98
|
|
105
105
|
end # DevTools
|
|
106
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
|
|
23
|
+
module V98
|
|
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 #
|
|
44
|
+
end # V98
|
|
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
|
|
23
|
+
module V98
|
|
24
24
|
class Target
|
|
25
25
|
EVENTS = {
|
|
26
26
|
attached_to_target: 'attachedToTarget',
|
|
@@ -67,11 +67,12 @@ module Selenium
|
|
|
67
67
|
bindingName: binding_name)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
def create_browser_context(dispose_on_detach: nil, proxy_server: nil, proxy_bypass_list: nil)
|
|
70
|
+
def create_browser_context(dispose_on_detach: nil, proxy_server: nil, proxy_bypass_list: nil, origins_with_universal_network_access: nil)
|
|
71
71
|
@devtools.send_cmd('Target.createBrowserContext',
|
|
72
72
|
disposeOnDetach: dispose_on_detach,
|
|
73
73
|
proxyServer: proxy_server,
|
|
74
|
-
proxyBypassList: proxy_bypass_list
|
|
74
|
+
proxyBypassList: proxy_bypass_list,
|
|
75
|
+
originsWithUniversalNetworkAccess: origins_with_universal_network_access)
|
|
75
76
|
end
|
|
76
77
|
|
|
77
78
|
def get_browser_contexts
|
|
@@ -140,6 +141,6 @@ module Selenium
|
|
|
140
141
|
end
|
|
141
142
|
|
|
142
143
|
end # Target
|
|
143
|
-
end #
|
|
144
|
+
end # V98
|
|
144
145
|
end # DevTools
|
|
145
146
|
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 V98
|
|
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 #
|
|
49
|
+
end # V98
|
|
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 V98
|
|
24
24
|
class Tracing
|
|
25
25
|
EVENTS = {
|
|
26
26
|
buffer_usage: 'bufferUsage',
|
|
@@ -70,6 +70,6 @@ module Selenium
|
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
end # Tracing
|
|
73
|
-
end #
|
|
73
|
+
end # V98
|
|
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 V98
|
|
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 #
|
|
64
|
+
end # V98
|
|
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
|
|
23
|
+
module V98
|
|
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 #
|
|
94
|
+
end # V98
|
|
95
95
|
end # DevTools
|
|
96
96
|
end # Selenium
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v98/*", &method(:require))
|
|
@@ -0,0 +1,92 @@
|
|
|
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 V99
|
|
24
|
+
class Accessibility
|
|
25
|
+
EVENTS = {
|
|
26
|
+
load_complete: 'loadComplete',
|
|
27
|
+
nodes_updated: 'nodesUpdated',
|
|
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["Accessibility.#{event}"] << block
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def disable
|
|
40
|
+
@devtools.send_cmd('Accessibility.disable')
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def enable
|
|
44
|
+
@devtools.send_cmd('Accessibility.enable')
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def get_partial_ax_tree(node_id: nil, backend_node_id: nil, object_id: nil, fetch_relatives: nil)
|
|
48
|
+
@devtools.send_cmd('Accessibility.getPartialAXTree',
|
|
49
|
+
nodeId: node_id,
|
|
50
|
+
backendNodeId: backend_node_id,
|
|
51
|
+
objectId: object_id,
|
|
52
|
+
fetchRelatives: fetch_relatives)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def get_full_ax_tree(depth: nil, max_depth: nil, frame_id: nil)
|
|
56
|
+
@devtools.send_cmd('Accessibility.getFullAXTree',
|
|
57
|
+
depth: depth,
|
|
58
|
+
max_depth: max_depth,
|
|
59
|
+
frameId: frame_id)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def get_root_ax_node(frame_id: nil)
|
|
63
|
+
@devtools.send_cmd('Accessibility.getRootAXNode',
|
|
64
|
+
frameId: frame_id)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def get_ax_node_and_ancestors(node_id: nil, backend_node_id: nil, object_id: nil)
|
|
68
|
+
@devtools.send_cmd('Accessibility.getAXNodeAndAncestors',
|
|
69
|
+
nodeId: node_id,
|
|
70
|
+
backendNodeId: backend_node_id,
|
|
71
|
+
objectId: object_id)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def get_child_ax_nodes(id:, frame_id: nil)
|
|
75
|
+
@devtools.send_cmd('Accessibility.getChildAXNodes',
|
|
76
|
+
id: id,
|
|
77
|
+
frameId: frame_id)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def query_ax_tree(node_id: nil, backend_node_id: nil, object_id: nil, accessible_name: nil, role: nil)
|
|
81
|
+
@devtools.send_cmd('Accessibility.queryAXTree',
|
|
82
|
+
nodeId: node_id,
|
|
83
|
+
backendNodeId: backend_node_id,
|
|
84
|
+
objectId: object_id,
|
|
85
|
+
accessibleName: accessible_name,
|
|
86
|
+
role: role)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
end # Accessibility
|
|
90
|
+
end # V99
|
|
91
|
+
end # DevTools
|
|
92
|
+
end # Selenium
|
|
@@ -0,0 +1,94 @@
|
|
|
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 V99
|
|
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 # V99
|
|
93
|
+
end # DevTools
|
|
94
|
+
end # Selenium
|
|
@@ -0,0 +1,62 @@
|
|
|
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 V99
|
|
24
|
+
class Audits
|
|
25
|
+
EVENTS = {
|
|
26
|
+
issue_added: 'issueAdded',
|
|
27
|
+
}.freeze
|
|
28
|
+
|
|
29
|
+
def initialize(devtools)
|
|
30
|
+
@devtools = devtools
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def on(event, &block)
|
|
34
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
|
35
|
+
@devtools.callbacks["Audits.#{event}"] << block
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def get_encoded_response(request_id:, encoding:, quality: nil, size_only: nil)
|
|
39
|
+
@devtools.send_cmd('Audits.getEncodedResponse',
|
|
40
|
+
requestId: request_id,
|
|
41
|
+
encoding: encoding,
|
|
42
|
+
quality: quality,
|
|
43
|
+
sizeOnly: size_only)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def disable
|
|
47
|
+
@devtools.send_cmd('Audits.disable')
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def enable
|
|
51
|
+
@devtools.send_cmd('Audits.enable')
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def check_contrast(report_aaa: nil)
|
|
55
|
+
@devtools.send_cmd('Audits.checkContrast',
|
|
56
|
+
reportAAA: report_aaa)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end # Audits
|
|
60
|
+
end # V99
|
|
61
|
+
end # DevTools
|
|
62
|
+
end # Selenium
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
|
21
21
|
module Selenium
|
|
22
22
|
module DevTools
|
|
23
|
-
module
|
|
24
|
-
class
|
|
23
|
+
module V99
|
|
24
|
+
class BackgroundService
|
|
25
25
|
EVENTS = {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
recording_state_changed: 'recordingStateChanged',
|
|
27
|
+
background_service_event_received: 'backgroundServiceEventReceived',
|
|
28
28
|
}.freeze
|
|
29
29
|
|
|
30
30
|
def initialize(devtools)
|
|
@@ -33,28 +33,31 @@ module Selenium
|
|
|
33
33
|
|
|
34
34
|
def on(event, &block)
|
|
35
35
|
event = EVENTS[event] if event.is_a?(Symbol)
|
|
36
|
-
@devtools.callbacks["
|
|
36
|
+
@devtools.callbacks["BackgroundService.#{event}"] << block
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
def
|
|
40
|
-
@devtools.send_cmd('
|
|
39
|
+
def start_observing(service:)
|
|
40
|
+
@devtools.send_cmd('BackgroundService.startObserving',
|
|
41
|
+
service: service)
|
|
41
42
|
end
|
|
42
43
|
|
|
43
|
-
def
|
|
44
|
-
@devtools.send_cmd('
|
|
45
|
-
|
|
44
|
+
def stop_observing(service:)
|
|
45
|
+
@devtools.send_cmd('BackgroundService.stopObserving',
|
|
46
|
+
service: service)
|
|
46
47
|
end
|
|
47
48
|
|
|
48
|
-
def
|
|
49
|
-
@devtools.send_cmd('
|
|
49
|
+
def set_recording(should_record:, service:)
|
|
50
|
+
@devtools.send_cmd('BackgroundService.setRecording',
|
|
51
|
+
shouldRecord: should_record,
|
|
52
|
+
service: service)
|
|
50
53
|
end
|
|
51
54
|
|
|
52
|
-
def
|
|
53
|
-
@devtools.send_cmd('
|
|
54
|
-
|
|
55
|
+
def clear_events(service:)
|
|
56
|
+
@devtools.send_cmd('BackgroundService.clearEvents',
|
|
57
|
+
service: service)
|
|
55
58
|
end
|
|
56
59
|
|
|
57
|
-
end #
|
|
58
|
-
end #
|
|
60
|
+
end # BackgroundService
|
|
61
|
+
end # V99
|
|
59
62
|
end # DevTools
|
|
60
63
|
end # Selenium
|