selenium-webdriver 4.0.0.beta1 → 4.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/selenium/{webdriver/edge/bridge.rb → devtools.rb} +8 -15
- data/lib/selenium/webdriver/atoms/findElements.js +77 -78
- data/lib/selenium/webdriver/atoms/getAttribute.js +64 -68
- data/lib/selenium/webdriver/atoms/isDisplayed.js +27 -27
- data/lib/selenium/webdriver/atoms/mutationListener.js +17 -0
- data/lib/selenium/webdriver/chrome.rb +1 -1
- data/lib/selenium/webdriver/chrome/driver.rb +12 -18
- data/lib/selenium/webdriver/chrome/service.rb +3 -1
- data/lib/selenium/webdriver/common.rb +1 -0
- data/lib/selenium/webdriver/common/driver.rb +20 -3
- data/lib/selenium/webdriver/common/driver_extensions/has_devtools.rb +23 -1
- data/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +4 -2
- data/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb +67 -0
- data/lib/selenium/webdriver/common/element.rb +41 -12
- data/lib/selenium/webdriver/common/interactions/interaction.rb +4 -1
- data/lib/selenium/webdriver/common/logger.rb +5 -2
- data/lib/selenium/webdriver/common/options.rb +42 -8
- data/lib/selenium/webdriver/common/proxy.rb +4 -1
- data/lib/selenium/webdriver/common/search_context.rb +4 -1
- data/lib/selenium/webdriver/common/service.rb +1 -0
- data/lib/selenium/webdriver/devtools.rb +34 -25
- data/lib/selenium/webdriver/devtools/{v87/console.rb → request.rb} +32 -34
- data/lib/selenium/webdriver/edge.rb +1 -1
- data/lib/selenium/webdriver/edge/driver.rb +2 -6
- data/lib/selenium/webdriver/firefox.rb +5 -1
- data/lib/selenium/webdriver/firefox/driver.rb +8 -15
- data/lib/selenium/webdriver/ie/driver.rb +1 -1
- data/lib/selenium/webdriver/ie/service.rb +3 -1
- data/lib/selenium/webdriver/remote/bridge.rb +24 -3
- data/lib/selenium/webdriver/remote/capabilities.rb +25 -15
- data/lib/selenium/webdriver/remote/driver.rb +6 -1
- data/lib/selenium/webdriver/remote/http/common.rb +0 -5
- data/lib/selenium/webdriver/remote/http/default.rb +5 -3
- data/lib/selenium/webdriver/safari.rb +1 -1
- data/lib/selenium/webdriver/safari/driver.rb +3 -7
- data/lib/selenium/webdriver/support/guards.rb +95 -0
- data/lib/selenium/webdriver/support/guards/guard.rb +89 -0
- data/lib/selenium/webdriver/{devtools/v87/system_info.rb → support/guards/guard_condition.rb} +24 -24
- data/lib/selenium/webdriver/support/select.rb +2 -2
- data/lib/selenium/webdriver/version.rb +1 -1
- metadata +15 -197
- data/CHANGES +0 -1825
- data/Gemfile +0 -4
- data/LICENSE +0 -202
- data/README.md +0 -34
- data/lib/selenium/webdriver/chrome/bridge.rb +0 -66
- data/lib/selenium/webdriver/devtools/v85/accessibility.rb +0 -64
- data/lib/selenium/webdriver/devtools/v85/animation.rb +0 -100
- data/lib/selenium/webdriver/devtools/v85/application_cache.rb +0 -66
- data/lib/selenium/webdriver/devtools/v85/audits.rb +0 -63
- data/lib/selenium/webdriver/devtools/v85/background_service.rb +0 -69
- data/lib/selenium/webdriver/devtools/v85/browser.rb +0 -125
- data/lib/selenium/webdriver/devtools/v85/cache_storage.rb +0 -75
- data/lib/selenium/webdriver/devtools/v85/cast.rb +0 -72
- data/lib/selenium/webdriver/devtools/v85/console.rb +0 -59
- data/lib/selenium/webdriver/devtools/v85/css.rb +0 -167
- data/lib/selenium/webdriver/devtools/v85/database.rb +0 -66
- data/lib/selenium/webdriver/devtools/v85/debugger.rb +0 -231
- data/lib/selenium/webdriver/devtools/v85/device_orientation.rb +0 -55
- data/lib/selenium/webdriver/devtools/v85/dom.rb +0 -322
- data/lib/selenium/webdriver/devtools/v85/dom_debugger.rb +0 -95
- data/lib/selenium/webdriver/devtools/v85/dom_snapshot.rb +0 -67
- data/lib/selenium/webdriver/devtools/v85/dom_storage.rb +0 -81
- data/lib/selenium/webdriver/devtools/v85/emulation.rb +0 -182
- data/lib/selenium/webdriver/devtools/v85/fetch.rb +0 -99
- data/lib/selenium/webdriver/devtools/v85/headless_experimental.rb +0 -63
- data/lib/selenium/webdriver/devtools/v85/heap_profiler.rb +0 -109
- data/lib/selenium/webdriver/devtools/v85/indexed_db.rb +0 -102
- data/lib/selenium/webdriver/devtools/v85/input.rb +0 -143
- data/lib/selenium/webdriver/devtools/v85/inspector.rb +0 -57
- data/lib/selenium/webdriver/devtools/v85/io.rb +0 -61
- data/lib/selenium/webdriver/devtools/v85/layer_tree.rb +0 -97
- data/lib/selenium/webdriver/devtools/v85/log.rb +0 -68
- data/lib/selenium/webdriver/devtools/v85/media.rb +0 -59
- data/lib/selenium/webdriver/devtools/v85/memory.rb +0 -88
- data/lib/selenium/webdriver/devtools/v85/network.rb +0 -230
- data/lib/selenium/webdriver/devtools/v85/overlay.rb +0 -160
- data/lib/selenium/webdriver/devtools/v85/page.rb +0 -376
- data/lib/selenium/webdriver/devtools/v85/performance.rb +0 -65
- data/lib/selenium/webdriver/devtools/v85/profiler.rb +0 -113
- data/lib/selenium/webdriver/devtools/v85/runtime.rb +0 -196
- data/lib/selenium/webdriver/devtools/v85/schema.rb +0 -48
- data/lib/selenium/webdriver/devtools/v85/security.rb +0 -73
- data/lib/selenium/webdriver/devtools/v85/service_worker.rb +0 -118
- data/lib/selenium/webdriver/devtools/v85/storage.rb +0 -97
- data/lib/selenium/webdriver/devtools/v85/system_info.rb +0 -52
- data/lib/selenium/webdriver/devtools/v85/target.rb +0 -145
- data/lib/selenium/webdriver/devtools/v85/tethering.rb +0 -57
- data/lib/selenium/webdriver/devtools/v85/tracing.rb +0 -78
- data/lib/selenium/webdriver/devtools/v85/web_audio.rb +0 -72
- data/lib/selenium/webdriver/devtools/v85/web_authn.rb +0 -96
- data/lib/selenium/webdriver/devtools/v86/accessibility.rb +0 -64
- data/lib/selenium/webdriver/devtools/v86/animation.rb +0 -100
- data/lib/selenium/webdriver/devtools/v86/application_cache.rb +0 -66
- data/lib/selenium/webdriver/devtools/v86/audits.rb +0 -63
- data/lib/selenium/webdriver/devtools/v86/background_service.rb +0 -69
- data/lib/selenium/webdriver/devtools/v86/browser.rb +0 -125
- data/lib/selenium/webdriver/devtools/v86/cache_storage.rb +0 -75
- data/lib/selenium/webdriver/devtools/v86/cast.rb +0 -72
- data/lib/selenium/webdriver/devtools/v86/console.rb +0 -59
- data/lib/selenium/webdriver/devtools/v86/css.rb +0 -181
- data/lib/selenium/webdriver/devtools/v86/database.rb +0 -66
- data/lib/selenium/webdriver/devtools/v86/debugger.rb +0 -233
- data/lib/selenium/webdriver/devtools/v86/device_orientation.rb +0 -55
- data/lib/selenium/webdriver/devtools/v86/dom.rb +0 -329
- data/lib/selenium/webdriver/devtools/v86/dom_debugger.rb +0 -95
- data/lib/selenium/webdriver/devtools/v86/dom_snapshot.rb +0 -67
- data/lib/selenium/webdriver/devtools/v86/dom_storage.rb +0 -81
- data/lib/selenium/webdriver/devtools/v86/emulation.rb +0 -193
- data/lib/selenium/webdriver/devtools/v86/fetch.rb +0 -99
- data/lib/selenium/webdriver/devtools/v86/headless_experimental.rb +0 -63
- data/lib/selenium/webdriver/devtools/v86/heap_profiler.rb +0 -109
- data/lib/selenium/webdriver/devtools/v86/indexed_db.rb +0 -102
- data/lib/selenium/webdriver/devtools/v86/input.rb +0 -143
- data/lib/selenium/webdriver/devtools/v86/inspector.rb +0 -57
- data/lib/selenium/webdriver/devtools/v86/io.rb +0 -61
- data/lib/selenium/webdriver/devtools/v86/layer_tree.rb +0 -97
- data/lib/selenium/webdriver/devtools/v86/log.rb +0 -68
- data/lib/selenium/webdriver/devtools/v86/media.rb +0 -59
- data/lib/selenium/webdriver/devtools/v86/memory.rb +0 -88
- data/lib/selenium/webdriver/devtools/v86/network.rb +0 -235
- data/lib/selenium/webdriver/devtools/v86/overlay.rb +0 -183
- data/lib/selenium/webdriver/devtools/v86/page.rb +0 -376
- data/lib/selenium/webdriver/devtools/v86/performance.rb +0 -65
- data/lib/selenium/webdriver/devtools/v86/profiler.rb +0 -113
- data/lib/selenium/webdriver/devtools/v86/runtime.rb +0 -196
- data/lib/selenium/webdriver/devtools/v86/schema.rb +0 -48
- data/lib/selenium/webdriver/devtools/v86/security.rb +0 -73
- data/lib/selenium/webdriver/devtools/v86/service_worker.rb +0 -118
- data/lib/selenium/webdriver/devtools/v86/storage.rb +0 -97
- data/lib/selenium/webdriver/devtools/v86/system_info.rb +0 -52
- data/lib/selenium/webdriver/devtools/v86/target.rb +0 -145
- data/lib/selenium/webdriver/devtools/v86/tethering.rb +0 -57
- data/lib/selenium/webdriver/devtools/v86/tracing.rb +0 -78
- data/lib/selenium/webdriver/devtools/v86/web_audio.rb +0 -72
- data/lib/selenium/webdriver/devtools/v86/web_authn.rb +0 -102
- data/lib/selenium/webdriver/devtools/v87/accessibility.rb +0 -73
- data/lib/selenium/webdriver/devtools/v87/animation.rb +0 -100
- data/lib/selenium/webdriver/devtools/v87/application_cache.rb +0 -66
- data/lib/selenium/webdriver/devtools/v87/audits.rb +0 -63
- data/lib/selenium/webdriver/devtools/v87/background_service.rb +0 -69
- data/lib/selenium/webdriver/devtools/v87/browser.rb +0 -125
- data/lib/selenium/webdriver/devtools/v87/cache_storage.rb +0 -75
- data/lib/selenium/webdriver/devtools/v87/cast.rb +0 -72
- data/lib/selenium/webdriver/devtools/v87/css.rb +0 -181
- data/lib/selenium/webdriver/devtools/v87/database.rb +0 -66
- data/lib/selenium/webdriver/devtools/v87/debugger.rb +0 -233
- data/lib/selenium/webdriver/devtools/v87/device_orientation.rb +0 -55
- data/lib/selenium/webdriver/devtools/v87/dom.rb +0 -329
- data/lib/selenium/webdriver/devtools/v87/dom_debugger.rb +0 -95
- data/lib/selenium/webdriver/devtools/v87/dom_snapshot.rb +0 -67
- data/lib/selenium/webdriver/devtools/v87/dom_storage.rb +0 -81
- data/lib/selenium/webdriver/devtools/v87/emulation.rb +0 -193
- data/lib/selenium/webdriver/devtools/v87/fetch.rb +0 -99
- data/lib/selenium/webdriver/devtools/v87/headless_experimental.rb +0 -63
- data/lib/selenium/webdriver/devtools/v87/heap_profiler.rb +0 -109
- data/lib/selenium/webdriver/devtools/v87/indexed_db.rb +0 -102
- data/lib/selenium/webdriver/devtools/v87/input.rb +0 -143
- data/lib/selenium/webdriver/devtools/v87/inspector.rb +0 -57
- data/lib/selenium/webdriver/devtools/v87/io.rb +0 -61
- data/lib/selenium/webdriver/devtools/v87/layer_tree.rb +0 -97
- data/lib/selenium/webdriver/devtools/v87/log.rb +0 -68
- data/lib/selenium/webdriver/devtools/v87/media.rb +0 -59
- data/lib/selenium/webdriver/devtools/v87/memory.rb +0 -88
- data/lib/selenium/webdriver/devtools/v87/network.rb +0 -247
- data/lib/selenium/webdriver/devtools/v87/overlay.rb +0 -183
- data/lib/selenium/webdriver/devtools/v87/page.rb +0 -376
- data/lib/selenium/webdriver/devtools/v87/performance.rb +0 -65
- data/lib/selenium/webdriver/devtools/v87/profiler.rb +0 -125
- data/lib/selenium/webdriver/devtools/v87/runtime.rb +0 -196
- data/lib/selenium/webdriver/devtools/v87/schema.rb +0 -48
- data/lib/selenium/webdriver/devtools/v87/security.rb +0 -73
- data/lib/selenium/webdriver/devtools/v87/service_worker.rb +0 -118
- data/lib/selenium/webdriver/devtools/v87/storage.rb +0 -97
- data/lib/selenium/webdriver/devtools/v87/target.rb +0 -145
- data/lib/selenium/webdriver/devtools/v87/tethering.rb +0 -57
- data/lib/selenium/webdriver/devtools/v87/tracing.rb +0 -78
- data/lib/selenium/webdriver/devtools/v87/web_audio.rb +0 -72
- data/lib/selenium/webdriver/devtools/v87/web_authn.rb +0 -102
- data/lib/selenium/webdriver/devtools/v88/accessibility.rb +0 -73
- data/lib/selenium/webdriver/devtools/v88/animation.rb +0 -100
- data/lib/selenium/webdriver/devtools/v88/application_cache.rb +0 -66
- data/lib/selenium/webdriver/devtools/v88/audits.rb +0 -63
- data/lib/selenium/webdriver/devtools/v88/background_service.rb +0 -69
- data/lib/selenium/webdriver/devtools/v88/browser.rb +0 -130
- data/lib/selenium/webdriver/devtools/v88/cache_storage.rb +0 -75
- data/lib/selenium/webdriver/devtools/v88/cast.rb +0 -72
- data/lib/selenium/webdriver/devtools/v88/console.rb +0 -59
- data/lib/selenium/webdriver/devtools/v88/css.rb +0 -181
- data/lib/selenium/webdriver/devtools/v88/database.rb +0 -66
- data/lib/selenium/webdriver/devtools/v88/debugger.rb +0 -233
- data/lib/selenium/webdriver/devtools/v88/device_orientation.rb +0 -55
- data/lib/selenium/webdriver/devtools/v88/dom.rb +0 -329
- data/lib/selenium/webdriver/devtools/v88/dom_debugger.rb +0 -95
- data/lib/selenium/webdriver/devtools/v88/dom_snapshot.rb +0 -67
- data/lib/selenium/webdriver/devtools/v88/dom_storage.rb +0 -81
- data/lib/selenium/webdriver/devtools/v88/emulation.rb +0 -198
- data/lib/selenium/webdriver/devtools/v88/fetch.rb +0 -99
- data/lib/selenium/webdriver/devtools/v88/headless_experimental.rb +0 -63
- data/lib/selenium/webdriver/devtools/v88/heap_profiler.rb +0 -109
- data/lib/selenium/webdriver/devtools/v88/indexed_db.rb +0 -102
- data/lib/selenium/webdriver/devtools/v88/input.rb +0 -148
- data/lib/selenium/webdriver/devtools/v88/inspector.rb +0 -57
- data/lib/selenium/webdriver/devtools/v88/io.rb +0 -61
- data/lib/selenium/webdriver/devtools/v88/layer_tree.rb +0 -97
- data/lib/selenium/webdriver/devtools/v88/log.rb +0 -68
- data/lib/selenium/webdriver/devtools/v88/media.rb +0 -59
- data/lib/selenium/webdriver/devtools/v88/memory.rb +0 -88
- data/lib/selenium/webdriver/devtools/v88/network.rb +0 -247
- data/lib/selenium/webdriver/devtools/v88/overlay.rb +0 -183
- data/lib/selenium/webdriver/devtools/v88/page.rb +0 -376
- data/lib/selenium/webdriver/devtools/v88/performance.rb +0 -65
- data/lib/selenium/webdriver/devtools/v88/profiler.rb +0 -125
- data/lib/selenium/webdriver/devtools/v88/runtime.rb +0 -197
- data/lib/selenium/webdriver/devtools/v88/schema.rb +0 -48
- data/lib/selenium/webdriver/devtools/v88/security.rb +0 -73
- data/lib/selenium/webdriver/devtools/v88/service_worker.rb +0 -118
- data/lib/selenium/webdriver/devtools/v88/storage.rb +0 -103
- data/lib/selenium/webdriver/devtools/v88/system_info.rb +0 -52
- data/lib/selenium/webdriver/devtools/v88/target.rb +0 -145
- data/lib/selenium/webdriver/devtools/v88/tethering.rb +0 -57
- data/lib/selenium/webdriver/devtools/v88/tracing.rb +0 -79
- data/lib/selenium/webdriver/devtools/v88/web_audio.rb +0 -72
- data/lib/selenium/webdriver/devtools/v88/web_authn.rb +0 -102
- data/lib/selenium/webdriver/firefox/bridge.rb +0 -47
- data/lib/selenium/webdriver/safari/bridge.rb +0 -51
- data/selenium-webdriver.gemspec +0 -50
- data/selenium_server_deploy.jar +0 -0
@@ -1,65 +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 WebDriver
|
23
|
-
class DevTools
|
24
|
-
def performance
|
25
|
-
@performance ||= V86::Performance.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class Performance
|
30
|
-
EVENTS = {
|
31
|
-
metrics: 'metrics',
|
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
|
42
|
-
|
43
|
-
def disable
|
44
|
-
@devtools.send_cmd('Performance.disable')
|
45
|
-
end
|
46
|
-
|
47
|
-
def enable(time_domain: nil)
|
48
|
-
@devtools.send_cmd('Performance.enable',
|
49
|
-
timeDomain: time_domain)
|
50
|
-
end
|
51
|
-
|
52
|
-
def set_time_domain(time_domain:)
|
53
|
-
@devtools.send_cmd('Performance.setTimeDomain',
|
54
|
-
timeDomain: time_domain)
|
55
|
-
end
|
56
|
-
|
57
|
-
def get_metrics
|
58
|
-
@devtools.send_cmd('Performance.getMetrics')
|
59
|
-
end
|
60
|
-
|
61
|
-
end # V86
|
62
|
-
end # Performance
|
63
|
-
end # DevTools
|
64
|
-
end # WebDriver
|
65
|
-
end # Selenium
|
@@ -1,113 +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 WebDriver
|
23
|
-
class DevTools
|
24
|
-
def profiler
|
25
|
-
@profiler ||= V86::Profiler.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class Profiler
|
30
|
-
EVENTS = {
|
31
|
-
console_profile_finished: 'consoleProfileFinished',
|
32
|
-
console_profile_started: 'consoleProfileStarted',
|
33
|
-
precise_coverage_delta_update: 'preciseCoverageDeltaUpdate',
|
34
|
-
}.freeze
|
35
|
-
|
36
|
-
def initialize(devtools)
|
37
|
-
@devtools = devtools
|
38
|
-
end
|
39
|
-
|
40
|
-
def on(event, &block)
|
41
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
42
|
-
@devtools.callbacks["Profiler.#{event}"] << block
|
43
|
-
end
|
44
|
-
|
45
|
-
def disable
|
46
|
-
@devtools.send_cmd('Profiler.disable')
|
47
|
-
end
|
48
|
-
|
49
|
-
def enable
|
50
|
-
@devtools.send_cmd('Profiler.enable')
|
51
|
-
end
|
52
|
-
|
53
|
-
def get_best_effort_coverage
|
54
|
-
@devtools.send_cmd('Profiler.getBestEffortCoverage')
|
55
|
-
end
|
56
|
-
|
57
|
-
def set_sampling_interval(interval:)
|
58
|
-
@devtools.send_cmd('Profiler.setSamplingInterval',
|
59
|
-
interval: interval)
|
60
|
-
end
|
61
|
-
|
62
|
-
def start
|
63
|
-
@devtools.send_cmd('Profiler.start')
|
64
|
-
end
|
65
|
-
|
66
|
-
def start_precise_coverage(call_count: nil, detailed: nil, allow_triggered_updates: nil)
|
67
|
-
@devtools.send_cmd('Profiler.startPreciseCoverage',
|
68
|
-
callCount: call_count,
|
69
|
-
detailed: detailed,
|
70
|
-
allowTriggeredUpdates: allow_triggered_updates)
|
71
|
-
end
|
72
|
-
|
73
|
-
def start_type_profile
|
74
|
-
@devtools.send_cmd('Profiler.startTypeProfile')
|
75
|
-
end
|
76
|
-
|
77
|
-
def stop
|
78
|
-
@devtools.send_cmd('Profiler.stop')
|
79
|
-
end
|
80
|
-
|
81
|
-
def stop_precise_coverage
|
82
|
-
@devtools.send_cmd('Profiler.stopPreciseCoverage')
|
83
|
-
end
|
84
|
-
|
85
|
-
def stop_type_profile
|
86
|
-
@devtools.send_cmd('Profiler.stopTypeProfile')
|
87
|
-
end
|
88
|
-
|
89
|
-
def take_precise_coverage
|
90
|
-
@devtools.send_cmd('Profiler.takePreciseCoverage')
|
91
|
-
end
|
92
|
-
|
93
|
-
def take_type_profile
|
94
|
-
@devtools.send_cmd('Profiler.takeTypeProfile')
|
95
|
-
end
|
96
|
-
|
97
|
-
def enable_runtime_call_stats
|
98
|
-
@devtools.send_cmd('Profiler.enableRuntimeCallStats')
|
99
|
-
end
|
100
|
-
|
101
|
-
def disable_runtime_call_stats
|
102
|
-
@devtools.send_cmd('Profiler.disableRuntimeCallStats')
|
103
|
-
end
|
104
|
-
|
105
|
-
def get_runtime_call_stats
|
106
|
-
@devtools.send_cmd('Profiler.getRuntimeCallStats')
|
107
|
-
end
|
108
|
-
|
109
|
-
end # V86
|
110
|
-
end # Profiler
|
111
|
-
end # DevTools
|
112
|
-
end # WebDriver
|
113
|
-
end # Selenium
|
@@ -1,196 +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 WebDriver
|
23
|
-
class DevTools
|
24
|
-
def runtime
|
25
|
-
@runtime ||= V86::Runtime.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class Runtime
|
30
|
-
EVENTS = {
|
31
|
-
binding_called: 'bindingCalled',
|
32
|
-
console_api_called: 'consoleAPICalled',
|
33
|
-
exception_revoked: 'exceptionRevoked',
|
34
|
-
exception_thrown: 'exceptionThrown',
|
35
|
-
execution_context_created: 'executionContextCreated',
|
36
|
-
execution_context_destroyed: 'executionContextDestroyed',
|
37
|
-
execution_contexts_cleared: 'executionContextsCleared',
|
38
|
-
inspect_requested: 'inspectRequested',
|
39
|
-
}.freeze
|
40
|
-
|
41
|
-
def initialize(devtools)
|
42
|
-
@devtools = devtools
|
43
|
-
end
|
44
|
-
|
45
|
-
def on(event, &block)
|
46
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
47
|
-
@devtools.callbacks["Runtime.#{event}"] << block
|
48
|
-
end
|
49
|
-
|
50
|
-
def await_promise(promise_object_id:, return_by_value: nil, generate_preview: nil)
|
51
|
-
@devtools.send_cmd('Runtime.awaitPromise',
|
52
|
-
promiseObjectId: promise_object_id,
|
53
|
-
returnByValue: return_by_value,
|
54
|
-
generatePreview: generate_preview)
|
55
|
-
end
|
56
|
-
|
57
|
-
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)
|
58
|
-
@devtools.send_cmd('Runtime.callFunctionOn',
|
59
|
-
functionDeclaration: function_declaration,
|
60
|
-
objectId: object_id,
|
61
|
-
arguments: arguments,
|
62
|
-
silent: silent,
|
63
|
-
returnByValue: return_by_value,
|
64
|
-
generatePreview: generate_preview,
|
65
|
-
userGesture: user_gesture,
|
66
|
-
awaitPromise: await_promise,
|
67
|
-
executionContextId: execution_context_id,
|
68
|
-
objectGroup: object_group)
|
69
|
-
end
|
70
|
-
|
71
|
-
def compile_script(expression:, source_url:, persist_script:, execution_context_id: nil)
|
72
|
-
@devtools.send_cmd('Runtime.compileScript',
|
73
|
-
expression: expression,
|
74
|
-
sourceURL: source_url,
|
75
|
-
persistScript: persist_script,
|
76
|
-
executionContextId: execution_context_id)
|
77
|
-
end
|
78
|
-
|
79
|
-
def disable
|
80
|
-
@devtools.send_cmd('Runtime.disable')
|
81
|
-
end
|
82
|
-
|
83
|
-
def discard_console_entries
|
84
|
-
@devtools.send_cmd('Runtime.discardConsoleEntries')
|
85
|
-
end
|
86
|
-
|
87
|
-
def enable
|
88
|
-
@devtools.send_cmd('Runtime.enable')
|
89
|
-
end
|
90
|
-
|
91
|
-
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)
|
92
|
-
@devtools.send_cmd('Runtime.evaluate',
|
93
|
-
expression: expression,
|
94
|
-
objectGroup: object_group,
|
95
|
-
includeCommandLineAPI: include_command_line_api,
|
96
|
-
silent: silent,
|
97
|
-
contextId: context_id,
|
98
|
-
returnByValue: return_by_value,
|
99
|
-
generatePreview: generate_preview,
|
100
|
-
userGesture: user_gesture,
|
101
|
-
awaitPromise: await_promise,
|
102
|
-
throwOnSideEffect: throw_on_side_effect,
|
103
|
-
timeout: timeout,
|
104
|
-
disableBreaks: disable_breaks,
|
105
|
-
replMode: repl_mode,
|
106
|
-
allowUnsafeEvalBlockedByCSP: allow_unsafe_eval_blocked_by_csp)
|
107
|
-
end
|
108
|
-
|
109
|
-
def get_isolate_id
|
110
|
-
@devtools.send_cmd('Runtime.getIsolateId')
|
111
|
-
end
|
112
|
-
|
113
|
-
def get_heap_usage
|
114
|
-
@devtools.send_cmd('Runtime.getHeapUsage')
|
115
|
-
end
|
116
|
-
|
117
|
-
def get_properties(object_id:, own_properties: nil, accessor_properties_only: nil, generate_preview: nil)
|
118
|
-
@devtools.send_cmd('Runtime.getProperties',
|
119
|
-
objectId: object_id,
|
120
|
-
ownProperties: own_properties,
|
121
|
-
accessorPropertiesOnly: accessor_properties_only,
|
122
|
-
generatePreview: generate_preview)
|
123
|
-
end
|
124
|
-
|
125
|
-
def global_lexical_scope_names(execution_context_id: nil)
|
126
|
-
@devtools.send_cmd('Runtime.globalLexicalScopeNames',
|
127
|
-
executionContextId: execution_context_id)
|
128
|
-
end
|
129
|
-
|
130
|
-
def query_objects(prototype_object_id:, object_group: nil)
|
131
|
-
@devtools.send_cmd('Runtime.queryObjects',
|
132
|
-
prototypeObjectId: prototype_object_id,
|
133
|
-
objectGroup: object_group)
|
134
|
-
end
|
135
|
-
|
136
|
-
def release_object(object_id:)
|
137
|
-
@devtools.send_cmd('Runtime.releaseObject',
|
138
|
-
objectId: object_id)
|
139
|
-
end
|
140
|
-
|
141
|
-
def release_object_group(object_group:)
|
142
|
-
@devtools.send_cmd('Runtime.releaseObjectGroup',
|
143
|
-
objectGroup: object_group)
|
144
|
-
end
|
145
|
-
|
146
|
-
def run_if_waiting_for_debugger
|
147
|
-
@devtools.send_cmd('Runtime.runIfWaitingForDebugger')
|
148
|
-
end
|
149
|
-
|
150
|
-
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)
|
151
|
-
@devtools.send_cmd('Runtime.runScript',
|
152
|
-
scriptId: script_id,
|
153
|
-
executionContextId: execution_context_id,
|
154
|
-
objectGroup: object_group,
|
155
|
-
silent: silent,
|
156
|
-
includeCommandLineAPI: include_command_line_api,
|
157
|
-
returnByValue: return_by_value,
|
158
|
-
generatePreview: generate_preview,
|
159
|
-
awaitPromise: await_promise)
|
160
|
-
end
|
161
|
-
|
162
|
-
def set_async_call_stack_depth(max_depth:)
|
163
|
-
@devtools.send_cmd('Runtime.setAsyncCallStackDepth',
|
164
|
-
maxDepth: max_depth)
|
165
|
-
end
|
166
|
-
|
167
|
-
def set_custom_object_formatter_enabled(enabled:)
|
168
|
-
@devtools.send_cmd('Runtime.setCustomObjectFormatterEnabled',
|
169
|
-
enabled: enabled)
|
170
|
-
end
|
171
|
-
|
172
|
-
def set_max_call_stack_size_to_capture(size:)
|
173
|
-
@devtools.send_cmd('Runtime.setMaxCallStackSizeToCapture',
|
174
|
-
size: size)
|
175
|
-
end
|
176
|
-
|
177
|
-
def terminate_execution
|
178
|
-
@devtools.send_cmd('Runtime.terminateExecution')
|
179
|
-
end
|
180
|
-
|
181
|
-
def add_binding(name:, execution_context_id: nil)
|
182
|
-
@devtools.send_cmd('Runtime.addBinding',
|
183
|
-
name: name,
|
184
|
-
executionContextId: execution_context_id)
|
185
|
-
end
|
186
|
-
|
187
|
-
def remove_binding(name:)
|
188
|
-
@devtools.send_cmd('Runtime.removeBinding',
|
189
|
-
name: name)
|
190
|
-
end
|
191
|
-
|
192
|
-
end # V86
|
193
|
-
end # Runtime
|
194
|
-
end # DevTools
|
195
|
-
end # WebDriver
|
196
|
-
end # Selenium
|
@@ -1,48 +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 WebDriver
|
23
|
-
class DevTools
|
24
|
-
def schema
|
25
|
-
@schema ||= V86::Schema.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class Schema
|
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["Schema.#{event}"] << block
|
38
|
-
end
|
39
|
-
|
40
|
-
def get_domains
|
41
|
-
@devtools.send_cmd('Schema.getDomains')
|
42
|
-
end
|
43
|
-
|
44
|
-
end # V86
|
45
|
-
end # Schema
|
46
|
-
end # DevTools
|
47
|
-
end # WebDriver
|
48
|
-
end # Selenium
|
@@ -1,73 +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 WebDriver
|
23
|
-
class DevTools
|
24
|
-
def security
|
25
|
-
@security ||= V86::Security.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class Security
|
30
|
-
EVENTS = {
|
31
|
-
certificate_error: 'certificateError',
|
32
|
-
visible_security_state_changed: 'visibleSecurityStateChanged',
|
33
|
-
security_state_changed: 'securityStateChanged',
|
34
|
-
}.freeze
|
35
|
-
|
36
|
-
def initialize(devtools)
|
37
|
-
@devtools = devtools
|
38
|
-
end
|
39
|
-
|
40
|
-
def on(event, &block)
|
41
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
42
|
-
@devtools.callbacks["Security.#{event}"] << block
|
43
|
-
end
|
44
|
-
|
45
|
-
def disable
|
46
|
-
@devtools.send_cmd('Security.disable')
|
47
|
-
end
|
48
|
-
|
49
|
-
def enable
|
50
|
-
@devtools.send_cmd('Security.enable')
|
51
|
-
end
|
52
|
-
|
53
|
-
def set_ignore_certificate_errors(ignore:)
|
54
|
-
@devtools.send_cmd('Security.setIgnoreCertificateErrors',
|
55
|
-
ignore: ignore)
|
56
|
-
end
|
57
|
-
|
58
|
-
def handle_certificate_error(event_id:, action:)
|
59
|
-
@devtools.send_cmd('Security.handleCertificateError',
|
60
|
-
eventId: event_id,
|
61
|
-
action: action)
|
62
|
-
end
|
63
|
-
|
64
|
-
def set_override_certificate_errors(override:)
|
65
|
-
@devtools.send_cmd('Security.setOverrideCertificateErrors',
|
66
|
-
override: override)
|
67
|
-
end
|
68
|
-
|
69
|
-
end # V86
|
70
|
-
end # Security
|
71
|
-
end # DevTools
|
72
|
-
end # WebDriver
|
73
|
-
end # Selenium
|