selenium-devtools 0.0.1.alpha → 0.0.2.alpha
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/v84.rb +1 -0
- data/lib/selenium/devtools/v84/accessibility.rb +56 -0
- data/lib/selenium/devtools/v84/animation.rb +92 -0
- data/lib/selenium/devtools/v84/application_cache.rb +58 -0
- data/lib/selenium/devtools/v84/audits.rb +55 -0
- data/lib/selenium/devtools/v84/background_service.rb +61 -0
- data/lib/selenium/devtools/v84/browser.rb +117 -0
- data/lib/selenium/devtools/v84/cache_storage.rb +67 -0
- data/lib/selenium/devtools/v84/cast.rb +64 -0
- data/lib/selenium/devtools/v84/console.rb +51 -0
- data/lib/selenium/devtools/v84/css.rb +159 -0
- data/lib/selenium/devtools/v84/database.rb +58 -0
- data/lib/selenium/devtools/v84/debugger.rb +223 -0
- data/lib/selenium/devtools/v84/device_orientation.rb +47 -0
- data/lib/selenium/devtools/v84/dom.rb +314 -0
- data/lib/selenium/devtools/v84/dom_debugger.rb +87 -0
- data/lib/selenium/devtools/v84/dom_snapshot.rb +59 -0
- data/lib/selenium/devtools/v84/dom_storage.rb +73 -0
- data/lib/selenium/devtools/v84/emulation.rb +174 -0
- data/lib/selenium/devtools/v84/fetch.rb +91 -0
- data/lib/selenium/devtools/v84/headless_experimental.rb +55 -0
- data/lib/selenium/devtools/v84/heap_profiler.rb +101 -0
- data/lib/selenium/devtools/v84/indexed_db.rb +94 -0
- data/lib/selenium/devtools/v84/input.rb +134 -0
- data/lib/selenium/devtools/v84/inspector.rb +49 -0
- data/lib/selenium/devtools/v84/io.rb +53 -0
- data/lib/selenium/devtools/v84/layer_tree.rb +89 -0
- data/lib/selenium/devtools/v84/log.rb +60 -0
- data/lib/selenium/devtools/v84/media.rb +51 -0
- data/lib/selenium/devtools/v84/memory.rb +80 -0
- data/lib/selenium/devtools/v84/network.rb +222 -0
- data/lib/selenium/devtools/v84/overlay.rb +151 -0
- data/lib/selenium/devtools/v84/page.rb +368 -0
- data/lib/selenium/devtools/v84/performance.rb +57 -0
- data/lib/selenium/devtools/v84/profiler.rb +105 -0
- data/lib/selenium/devtools/v84/runtime.rb +187 -0
- data/lib/selenium/devtools/v84/schema.rb +40 -0
- data/lib/selenium/devtools/v84/security.rb +65 -0
- data/lib/selenium/devtools/v84/service_worker.rb +110 -0
- data/lib/selenium/devtools/v84/storage.rb +89 -0
- data/lib/selenium/devtools/v84/system_info.rb +44 -0
- data/lib/selenium/devtools/v84/target.rb +135 -0
- data/lib/selenium/devtools/v84/tethering.rb +49 -0
- data/lib/selenium/devtools/v84/tracing.rb +70 -0
- data/lib/selenium/devtools/v84/web_audio.rb +64 -0
- data/lib/selenium/devtools/v84/web_authn.rb +88 -0
- data/lib/selenium/devtools/v85.rb +1 -0
- data/lib/selenium/devtools/v85/accessibility.rb +56 -0
- data/lib/selenium/devtools/v85/animation.rb +92 -0
- data/lib/selenium/devtools/v85/application_cache.rb +58 -0
- data/lib/selenium/devtools/v85/audits.rb +55 -0
- data/lib/selenium/devtools/v85/background_service.rb +61 -0
- data/lib/selenium/devtools/v85/browser.rb +117 -0
- data/lib/selenium/devtools/v85/cache_storage.rb +67 -0
- data/lib/selenium/devtools/v85/cast.rb +64 -0
- data/lib/selenium/devtools/v85/console.rb +51 -0
- data/lib/selenium/devtools/v85/css.rb +159 -0
- data/lib/selenium/devtools/v85/database.rb +58 -0
- data/lib/selenium/devtools/v85/debugger.rb +223 -0
- data/lib/selenium/devtools/v85/device_orientation.rb +47 -0
- data/lib/selenium/devtools/v85/dom.rb +314 -0
- data/lib/selenium/devtools/v85/dom_debugger.rb +87 -0
- data/lib/selenium/devtools/v85/dom_snapshot.rb +59 -0
- data/lib/selenium/devtools/v85/dom_storage.rb +73 -0
- data/lib/selenium/devtools/v85/emulation.rb +174 -0
- data/lib/selenium/devtools/v85/fetch.rb +91 -0
- data/lib/selenium/devtools/v85/headless_experimental.rb +55 -0
- data/lib/selenium/devtools/v85/heap_profiler.rb +101 -0
- data/lib/selenium/devtools/v85/indexed_db.rb +94 -0
- data/lib/selenium/devtools/v85/input.rb +135 -0
- data/lib/selenium/devtools/v85/inspector.rb +49 -0
- data/lib/selenium/devtools/v85/io.rb +53 -0
- data/lib/selenium/devtools/v85/layer_tree.rb +89 -0
- data/lib/selenium/devtools/v85/log.rb +60 -0
- data/lib/selenium/devtools/v85/media.rb +51 -0
- data/lib/selenium/devtools/v85/memory.rb +80 -0
- data/lib/selenium/devtools/v85/network.rb +222 -0
- data/lib/selenium/devtools/v85/overlay.rb +152 -0
- data/lib/selenium/devtools/v85/page.rb +368 -0
- data/lib/selenium/devtools/v85/performance.rb +57 -0
- data/lib/selenium/devtools/v85/profiler.rb +105 -0
- data/lib/selenium/devtools/v85/runtime.rb +188 -0
- data/lib/selenium/devtools/v85/schema.rb +40 -0
- data/lib/selenium/devtools/v85/security.rb +65 -0
- data/lib/selenium/devtools/v85/service_worker.rb +110 -0
- data/lib/selenium/devtools/v85/storage.rb +89 -0
- data/lib/selenium/devtools/v85/system_info.rb +44 -0
- data/lib/selenium/devtools/v85/target.rb +137 -0
- data/lib/selenium/devtools/v85/tethering.rb +49 -0
- data/lib/selenium/devtools/v85/tracing.rb +70 -0
- data/lib/selenium/devtools/v85/web_audio.rb +64 -0
- data/lib/selenium/devtools/v85/web_authn.rb +88 -0
- data/lib/selenium/devtools/v86.rb +1 -0
- data/lib/selenium/devtools/v86/accessibility.rb +56 -0
- data/lib/selenium/devtools/v86/animation.rb +92 -0
- data/lib/selenium/devtools/v86/application_cache.rb +58 -0
- data/lib/selenium/devtools/v86/audits.rb +55 -0
- data/lib/selenium/devtools/v86/background_service.rb +61 -0
- data/lib/selenium/devtools/v86/browser.rb +117 -0
- data/lib/selenium/devtools/v86/cache_storage.rb +67 -0
- data/lib/selenium/devtools/v86/cast.rb +64 -0
- data/lib/selenium/devtools/v86/console.rb +51 -0
- data/lib/selenium/devtools/v86/css.rb +173 -0
- data/lib/selenium/devtools/v86/database.rb +58 -0
- data/lib/selenium/devtools/v86/debugger.rb +225 -0
- data/lib/selenium/devtools/v86/device_orientation.rb +47 -0
- data/lib/selenium/devtools/v86/dom.rb +321 -0
- data/lib/selenium/devtools/v86/dom_debugger.rb +87 -0
- data/lib/selenium/devtools/v86/dom_snapshot.rb +59 -0
- data/lib/selenium/devtools/v86/dom_storage.rb +73 -0
- data/lib/selenium/devtools/v86/emulation.rb +185 -0
- data/lib/selenium/devtools/v86/fetch.rb +91 -0
- data/lib/selenium/devtools/v86/headless_experimental.rb +55 -0
- data/lib/selenium/devtools/v86/heap_profiler.rb +101 -0
- data/lib/selenium/devtools/v86/indexed_db.rb +94 -0
- data/lib/selenium/devtools/v86/input.rb +135 -0
- data/lib/selenium/devtools/v86/inspector.rb +49 -0
- data/lib/selenium/devtools/v86/io.rb +53 -0
- data/lib/selenium/devtools/v86/layer_tree.rb +89 -0
- data/lib/selenium/devtools/v86/log.rb +60 -0
- data/lib/selenium/devtools/v86/media.rb +51 -0
- data/lib/selenium/devtools/v86/memory.rb +80 -0
- data/lib/selenium/devtools/v86/network.rb +227 -0
- data/lib/selenium/devtools/v86/overlay.rb +175 -0
- data/lib/selenium/devtools/v86/page.rb +368 -0
- data/lib/selenium/devtools/v86/performance.rb +57 -0
- data/lib/selenium/devtools/v86/profiler.rb +105 -0
- data/lib/selenium/devtools/v86/runtime.rb +188 -0
- data/lib/selenium/devtools/v86/schema.rb +40 -0
- data/lib/selenium/devtools/v86/security.rb +65 -0
- data/lib/selenium/devtools/v86/service_worker.rb +110 -0
- data/lib/selenium/devtools/v86/storage.rb +89 -0
- data/lib/selenium/devtools/v86/system_info.rb +44 -0
- data/lib/selenium/devtools/v86/target.rb +137 -0
- data/lib/selenium/devtools/v86/tethering.rb +49 -0
- data/lib/selenium/devtools/v86/tracing.rb +70 -0
- data/lib/selenium/devtools/v86/web_audio.rb +64 -0
- data/lib/selenium/devtools/v86/web_authn.rb +94 -0
- data/lib/selenium/devtools/v87.rb +1 -0
- data/lib/selenium/devtools/v87/accessibility.rb +65 -0
- data/lib/selenium/devtools/v87/animation.rb +92 -0
- data/lib/selenium/devtools/v87/application_cache.rb +58 -0
- data/lib/selenium/devtools/v87/audits.rb +55 -0
- data/lib/selenium/devtools/v87/background_service.rb +61 -0
- data/lib/selenium/devtools/v87/browser.rb +117 -0
- data/lib/selenium/devtools/v87/cache_storage.rb +67 -0
- data/lib/selenium/devtools/v87/cast.rb +64 -0
- data/lib/selenium/devtools/v87/console.rb +51 -0
- data/lib/selenium/devtools/v87/css.rb +173 -0
- data/lib/selenium/devtools/v87/database.rb +58 -0
- data/lib/selenium/devtools/v87/debugger.rb +225 -0
- data/lib/selenium/devtools/v87/device_orientation.rb +47 -0
- data/lib/selenium/devtools/v87/dom.rb +321 -0
- data/lib/selenium/devtools/v87/dom_debugger.rb +87 -0
- data/lib/selenium/devtools/v87/dom_snapshot.rb +59 -0
- data/lib/selenium/devtools/v87/dom_storage.rb +73 -0
- data/lib/selenium/devtools/v87/emulation.rb +185 -0
- data/lib/selenium/devtools/v87/fetch.rb +91 -0
- data/lib/selenium/devtools/v87/headless_experimental.rb +55 -0
- data/lib/selenium/devtools/v87/heap_profiler.rb +101 -0
- data/lib/selenium/devtools/v87/indexed_db.rb +94 -0
- data/lib/selenium/devtools/v87/input.rb +135 -0
- data/lib/selenium/devtools/v87/inspector.rb +49 -0
- data/lib/selenium/devtools/v87/io.rb +53 -0
- data/lib/selenium/devtools/v87/layer_tree.rb +89 -0
- data/lib/selenium/devtools/v87/log.rb +60 -0
- data/lib/selenium/devtools/v87/media.rb +51 -0
- data/lib/selenium/devtools/v87/memory.rb +80 -0
- data/lib/selenium/devtools/v87/network.rb +239 -0
- data/lib/selenium/devtools/v87/overlay.rb +175 -0
- data/lib/selenium/devtools/v87/page.rb +368 -0
- data/lib/selenium/devtools/v87/performance.rb +57 -0
- data/lib/selenium/devtools/v87/profiler.rb +117 -0
- data/lib/selenium/devtools/v87/runtime.rb +188 -0
- data/lib/selenium/devtools/v87/schema.rb +40 -0
- data/lib/selenium/devtools/v87/security.rb +65 -0
- data/lib/selenium/devtools/v87/service_worker.rb +110 -0
- data/lib/selenium/devtools/v87/storage.rb +89 -0
- data/lib/selenium/devtools/v87/system_info.rb +44 -0
- data/lib/selenium/devtools/v87/target.rb +137 -0
- data/lib/selenium/devtools/v87/tethering.rb +49 -0
- data/lib/selenium/devtools/v87/tracing.rb +70 -0
- data/lib/selenium/devtools/v87/web_audio.rb +64 -0
- data/lib/selenium/devtools/v87/web_authn.rb +94 -0
- data/lib/selenium/devtools/v88.rb +1 -1
- data/lib/selenium/devtools/v88/accessibility.rb +35 -43
- data/lib/selenium/devtools/v88/animation.rb +57 -65
- data/lib/selenium/devtools/v88/application_cache.rb +29 -37
- data/lib/selenium/devtools/v88/audits.rb +31 -39
- data/lib/selenium/devtools/v88/background_service.rb +32 -40
- data/lib/selenium/devtools/v88/browser.rb +100 -108
- data/lib/selenium/devtools/v88/cache_storage.rb +37 -45
- data/lib/selenium/devtools/v88/cast.rb +34 -42
- data/lib/selenium/devtools/v88/console.rb +27 -35
- data/lib/selenium/devtools/v88/css.rb +151 -159
- data/lib/selenium/devtools/v88/database.rb +29 -37
- data/lib/selenium/devtools/v88/debugger.rb +203 -211
- data/lib/selenium/devtools/v88/device_orientation.rb +20 -28
- data/lib/selenium/devtools/v88/dom.rb +299 -307
- data/lib/selenium/devtools/v88/dom_debugger.rb +53 -61
- data/lib/selenium/devtools/v88/dom_snapshot.rb +30 -38
- data/lib/selenium/devtools/v88/dom_storage.rb +42 -50
- data/lib/selenium/devtools/v88/emulation.rb +168 -176
- data/lib/selenium/devtools/v88/fetch.rb +58 -66
- data/lib/selenium/devtools/v88/headless_experimental.rb +31 -39
- data/lib/selenium/devtools/v88/heap_profiler.rb +77 -85
- data/lib/selenium/devtools/v88/indexed_db.rb +60 -68
- data/lib/selenium/devtools/v88/input.rb +106 -114
- data/lib/selenium/devtools/v88/inspector.rb +22 -30
- data/lib/selenium/devtools/v88/io.rb +29 -37
- data/lib/selenium/devtools/v88/layer_tree.rb +55 -63
- data/lib/selenium/devtools/v88/log.rb +30 -38
- data/lib/selenium/devtools/v88/media.rb +24 -32
- data/lib/selenium/devtools/v88/memory.rb +45 -53
- data/lib/selenium/devtools/v88/network.rb +217 -225
- data/lib/selenium/devtools/v88/overlay.rb +153 -161
- data/lib/selenium/devtools/v88/page.rb +346 -354
- data/lib/selenium/devtools/v88/performance.rb +28 -36
- data/lib/selenium/devtools/v88/profiler.rb +95 -103
- data/lib/selenium/devtools/v88/runtime.rb +167 -175
- data/lib/selenium/devtools/v88/schema.rb +14 -22
- data/lib/selenium/devtools/v88/security.rb +35 -43
- data/lib/selenium/devtools/v88/service_worker.rb +86 -94
- data/lib/selenium/devtools/v88/storage.rb +60 -68
- data/lib/selenium/devtools/v88/system_info.rb +17 -25
- data/lib/selenium/devtools/v88/target.rb +115 -123
- data/lib/selenium/devtools/v88/tethering.rb +22 -30
- data/lib/selenium/devtools/v88/tracing.rb +41 -49
- data/lib/selenium/devtools/v88/web_audio.rb +36 -44
- data/lib/selenium/devtools/v88/web_authn.rb +70 -78
- data/lib/selenium/devtools/version.rb +1 -1
- metadata +185 -1
@@ -19,47 +19,39 @@
|
|
19
19
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
|
-
module
|
23
|
-
class
|
24
|
-
|
25
|
-
|
22
|
+
module DevTools
|
23
|
+
class Performance
|
24
|
+
EVENTS = {
|
25
|
+
metrics: 'metrics',
|
26
|
+
}.freeze
|
27
|
+
|
28
|
+
def initialize(devtools)
|
29
|
+
@devtools = devtools
|
26
30
|
end
|
27
31
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}.freeze
|
33
|
-
|
34
|
-
def initialize(devtools)
|
35
|
-
@devtools = devtools
|
36
|
-
end
|
37
|
-
|
38
|
-
def on(event, &block)
|
39
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
40
|
-
@devtools.callbacks["Performance.#{event}"] << block
|
41
|
-
end
|
32
|
+
def on(event, &block)
|
33
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
34
|
+
@devtools.callbacks["Performance.#{event}"] << block
|
35
|
+
end
|
42
36
|
|
43
|
-
|
44
|
-
|
45
|
-
|
37
|
+
def disable
|
38
|
+
@devtools.send_cmd('Performance.disable')
|
39
|
+
end
|
46
40
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
41
|
+
def enable(time_domain: nil)
|
42
|
+
@devtools.send_cmd('Performance.enable',
|
43
|
+
timeDomain: time_domain)
|
44
|
+
end
|
51
45
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
46
|
+
def set_time_domain(time_domain:)
|
47
|
+
@devtools.send_cmd('Performance.setTimeDomain',
|
48
|
+
timeDomain: time_domain)
|
49
|
+
end
|
56
50
|
|
57
|
-
|
58
|
-
|
59
|
-
|
51
|
+
def get_metrics
|
52
|
+
@devtools.send_cmd('Performance.getMetrics')
|
53
|
+
end
|
60
54
|
|
61
|
-
|
62
|
-
|
63
|
-
end # DevTools
|
64
|
-
end # WebDriver
|
55
|
+
end # Performance
|
56
|
+
end # DevTools
|
65
57
|
end # Selenium
|
@@ -19,107 +19,99 @@
|
|
19
19
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
|
-
module
|
23
|
-
class
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
def get_runtime_call_stats
|
118
|
-
@devtools.send_cmd('Profiler.getRuntimeCallStats')
|
119
|
-
end
|
120
|
-
|
121
|
-
end # V88
|
122
|
-
end # Profiler
|
123
|
-
end # DevTools
|
124
|
-
end # WebDriver
|
22
|
+
module DevTools
|
23
|
+
class Profiler
|
24
|
+
EVENTS = {
|
25
|
+
console_profile_finished: 'consoleProfileFinished',
|
26
|
+
console_profile_started: 'consoleProfileStarted',
|
27
|
+
precise_coverage_delta_update: 'preciseCoverageDeltaUpdate',
|
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["Profiler.#{event}"] << block
|
37
|
+
end
|
38
|
+
|
39
|
+
def disable
|
40
|
+
@devtools.send_cmd('Profiler.disable')
|
41
|
+
end
|
42
|
+
|
43
|
+
def enable
|
44
|
+
@devtools.send_cmd('Profiler.enable')
|
45
|
+
end
|
46
|
+
|
47
|
+
def get_best_effort_coverage
|
48
|
+
@devtools.send_cmd('Profiler.getBestEffortCoverage')
|
49
|
+
end
|
50
|
+
|
51
|
+
def set_sampling_interval(interval:)
|
52
|
+
@devtools.send_cmd('Profiler.setSamplingInterval',
|
53
|
+
interval: interval)
|
54
|
+
end
|
55
|
+
|
56
|
+
def start
|
57
|
+
@devtools.send_cmd('Profiler.start')
|
58
|
+
end
|
59
|
+
|
60
|
+
def start_precise_coverage(call_count: nil, detailed: nil, allow_triggered_updates: nil)
|
61
|
+
@devtools.send_cmd('Profiler.startPreciseCoverage',
|
62
|
+
callCount: call_count,
|
63
|
+
detailed: detailed,
|
64
|
+
allowTriggeredUpdates: allow_triggered_updates)
|
65
|
+
end
|
66
|
+
|
67
|
+
def start_type_profile
|
68
|
+
@devtools.send_cmd('Profiler.startTypeProfile')
|
69
|
+
end
|
70
|
+
|
71
|
+
def stop
|
72
|
+
@devtools.send_cmd('Profiler.stop')
|
73
|
+
end
|
74
|
+
|
75
|
+
def stop_precise_coverage
|
76
|
+
@devtools.send_cmd('Profiler.stopPreciseCoverage')
|
77
|
+
end
|
78
|
+
|
79
|
+
def stop_type_profile
|
80
|
+
@devtools.send_cmd('Profiler.stopTypeProfile')
|
81
|
+
end
|
82
|
+
|
83
|
+
def take_precise_coverage
|
84
|
+
@devtools.send_cmd('Profiler.takePreciseCoverage')
|
85
|
+
end
|
86
|
+
|
87
|
+
def take_type_profile
|
88
|
+
@devtools.send_cmd('Profiler.takeTypeProfile')
|
89
|
+
end
|
90
|
+
|
91
|
+
def enable_counters
|
92
|
+
@devtools.send_cmd('Profiler.enableCounters')
|
93
|
+
end
|
94
|
+
|
95
|
+
def disable_counters
|
96
|
+
@devtools.send_cmd('Profiler.disableCounters')
|
97
|
+
end
|
98
|
+
|
99
|
+
def get_counters
|
100
|
+
@devtools.send_cmd('Profiler.getCounters')
|
101
|
+
end
|
102
|
+
|
103
|
+
def enable_runtime_call_stats
|
104
|
+
@devtools.send_cmd('Profiler.enableRuntimeCallStats')
|
105
|
+
end
|
106
|
+
|
107
|
+
def disable_runtime_call_stats
|
108
|
+
@devtools.send_cmd('Profiler.disableRuntimeCallStats')
|
109
|
+
end
|
110
|
+
|
111
|
+
def get_runtime_call_stats
|
112
|
+
@devtools.send_cmd('Profiler.getRuntimeCallStats')
|
113
|
+
end
|
114
|
+
|
115
|
+
end # Profiler
|
116
|
+
end # DevTools
|
125
117
|
end # Selenium
|
@@ -19,179 +19,171 @@
|
|
19
19
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
21
21
|
module Selenium
|
22
|
-
module
|
23
|
-
class
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
@devtools.send_cmd('Runtime.removeBinding',
|
190
|
-
name: name)
|
191
|
-
end
|
192
|
-
|
193
|
-
end # V88
|
194
|
-
end # Runtime
|
195
|
-
end # DevTools
|
196
|
-
end # WebDriver
|
22
|
+
module DevTools
|
23
|
+
class Runtime
|
24
|
+
EVENTS = {
|
25
|
+
binding_called: 'bindingCalled',
|
26
|
+
console_api_called: 'consoleAPICalled',
|
27
|
+
exception_revoked: 'exceptionRevoked',
|
28
|
+
exception_thrown: 'exceptionThrown',
|
29
|
+
execution_context_created: 'executionContextCreated',
|
30
|
+
execution_context_destroyed: 'executionContextDestroyed',
|
31
|
+
execution_contexts_cleared: 'executionContextsCleared',
|
32
|
+
inspect_requested: 'inspectRequested',
|
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["Runtime.#{event}"] << block
|
42
|
+
end
|
43
|
+
|
44
|
+
def await_promise(promise_object_id:, return_by_value: nil, generate_preview: nil)
|
45
|
+
@devtools.send_cmd('Runtime.awaitPromise',
|
46
|
+
promiseObjectId: promise_object_id,
|
47
|
+
returnByValue: return_by_value,
|
48
|
+
generatePreview: generate_preview)
|
49
|
+
end
|
50
|
+
|
51
|
+
def call_function_on(function_declaration:, object_id: nil, arguments: nil, silent: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, execution_context_id: nil, object_group: nil)
|
52
|
+
@devtools.send_cmd('Runtime.callFunctionOn',
|
53
|
+
functionDeclaration: function_declaration,
|
54
|
+
objectId: object_id,
|
55
|
+
arguments: arguments,
|
56
|
+
silent: silent,
|
57
|
+
returnByValue: return_by_value,
|
58
|
+
generatePreview: generate_preview,
|
59
|
+
userGesture: user_gesture,
|
60
|
+
awaitPromise: await_promise,
|
61
|
+
executionContextId: execution_context_id,
|
62
|
+
objectGroup: object_group)
|
63
|
+
end
|
64
|
+
|
65
|
+
def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
|
66
|
+
@devtools.send_cmd('Runtime.compileScript',
|
67
|
+
expression: expression,
|
68
|
+
sourceURL: source_url,
|
69
|
+
persistScript: persist_script,
|
70
|
+
executionContextId: execution_context_id)
|
71
|
+
end
|
72
|
+
|
73
|
+
def disable
|
74
|
+
@devtools.send_cmd('Runtime.disable')
|
75
|
+
end
|
76
|
+
|
77
|
+
def discard_console_entries
|
78
|
+
@devtools.send_cmd('Runtime.discardConsoleEntries')
|
79
|
+
end
|
80
|
+
|
81
|
+
def enable
|
82
|
+
@devtools.send_cmd('Runtime.enable')
|
83
|
+
end
|
84
|
+
|
85
|
+
def evaluate(expression:, object_group: nil, include_command_line_api: nil, silent: nil, context_id: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, throw_on_side_effect: nil, timeout: nil, disable_breaks: nil, repl_mode: nil, allow_unsafe_eval_blocked_by_csp: nil)
|
86
|
+
@devtools.send_cmd('Runtime.evaluate',
|
87
|
+
expression: expression,
|
88
|
+
objectGroup: object_group,
|
89
|
+
includeCommandLineAPI: include_command_line_api,
|
90
|
+
silent: silent,
|
91
|
+
contextId: context_id,
|
92
|
+
returnByValue: return_by_value,
|
93
|
+
generatePreview: generate_preview,
|
94
|
+
userGesture: user_gesture,
|
95
|
+
awaitPromise: await_promise,
|
96
|
+
throwOnSideEffect: throw_on_side_effect,
|
97
|
+
timeout: timeout,
|
98
|
+
disableBreaks: disable_breaks,
|
99
|
+
replMode: repl_mode,
|
100
|
+
allowUnsafeEvalBlockedByCSP: allow_unsafe_eval_blocked_by_csp)
|
101
|
+
end
|
102
|
+
|
103
|
+
def get_isolate_id
|
104
|
+
@devtools.send_cmd('Runtime.getIsolateId')
|
105
|
+
end
|
106
|
+
|
107
|
+
def get_heap_usage
|
108
|
+
@devtools.send_cmd('Runtime.getHeapUsage')
|
109
|
+
end
|
110
|
+
|
111
|
+
def get_properties(object_id:, own_properties: nil, accessor_properties_only: nil, generate_preview: nil)
|
112
|
+
@devtools.send_cmd('Runtime.getProperties',
|
113
|
+
objectId: object_id,
|
114
|
+
ownProperties: own_properties,
|
115
|
+
accessorPropertiesOnly: accessor_properties_only,
|
116
|
+
generatePreview: generate_preview)
|
117
|
+
end
|
118
|
+
|
119
|
+
def global_lexical_scope_names(execution_context_id: nil)
|
120
|
+
@devtools.send_cmd('Runtime.globalLexicalScopeNames',
|
121
|
+
executionContextId: execution_context_id)
|
122
|
+
end
|
123
|
+
|
124
|
+
def query_objects(prototype_object_id:, object_group: nil)
|
125
|
+
@devtools.send_cmd('Runtime.queryObjects',
|
126
|
+
prototypeObjectId: prototype_object_id,
|
127
|
+
objectGroup: object_group)
|
128
|
+
end
|
129
|
+
|
130
|
+
def release_object(object_id:)
|
131
|
+
@devtools.send_cmd('Runtime.releaseObject',
|
132
|
+
objectId: object_id)
|
133
|
+
end
|
134
|
+
|
135
|
+
def release_object_group(object_group:)
|
136
|
+
@devtools.send_cmd('Runtime.releaseObjectGroup',
|
137
|
+
objectGroup: object_group)
|
138
|
+
end
|
139
|
+
|
140
|
+
def run_if_waiting_for_debugger
|
141
|
+
@devtools.send_cmd('Runtime.runIfWaitingForDebugger')
|
142
|
+
end
|
143
|
+
|
144
|
+
def run_script(script_id:, execution_context_id: nil, object_group: nil, silent: nil, include_command_line_api: nil, return_by_value: nil, generate_preview: nil, await_promise: nil)
|
145
|
+
@devtools.send_cmd('Runtime.runScript',
|
146
|
+
scriptId: script_id,
|
147
|
+
executionContextId: execution_context_id,
|
148
|
+
objectGroup: object_group,
|
149
|
+
silent: silent,
|
150
|
+
includeCommandLineAPI: include_command_line_api,
|
151
|
+
returnByValue: return_by_value,
|
152
|
+
generatePreview: generate_preview,
|
153
|
+
awaitPromise: await_promise)
|
154
|
+
end
|
155
|
+
|
156
|
+
def set_async_call_stack_depth(max_depth:)
|
157
|
+
@devtools.send_cmd('Runtime.setAsyncCallStackDepth',
|
158
|
+
maxDepth: max_depth)
|
159
|
+
end
|
160
|
+
|
161
|
+
def set_custom_object_formatter_enabled(enabled:)
|
162
|
+
@devtools.send_cmd('Runtime.setCustomObjectFormatterEnabled',
|
163
|
+
enabled: enabled)
|
164
|
+
end
|
165
|
+
|
166
|
+
def set_max_call_stack_size_to_capture(size:)
|
167
|
+
@devtools.send_cmd('Runtime.setMaxCallStackSizeToCapture',
|
168
|
+
size: size)
|
169
|
+
end
|
170
|
+
|
171
|
+
def terminate_execution
|
172
|
+
@devtools.send_cmd('Runtime.terminateExecution')
|
173
|
+
end
|
174
|
+
|
175
|
+
def add_binding(name:, execution_context_id: nil, execution_context_name: nil)
|
176
|
+
@devtools.send_cmd('Runtime.addBinding',
|
177
|
+
name: name,
|
178
|
+
executionContextId: execution_context_id,
|
179
|
+
executionContextName: execution_context_name)
|
180
|
+
end
|
181
|
+
|
182
|
+
def remove_binding(name:)
|
183
|
+
@devtools.send_cmd('Runtime.removeBinding',
|
184
|
+
name: name)
|
185
|
+
end
|
186
|
+
|
187
|
+
end # Runtime
|
188
|
+
end # DevTools
|
197
189
|
end # Selenium
|