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,109 +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 heap_profiler
|
25
|
-
@heap_profiler ||= V86::HeapProfiler.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class HeapProfiler
|
30
|
-
EVENTS = {
|
31
|
-
add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
|
32
|
-
heap_stats_update: 'heapStatsUpdate',
|
33
|
-
last_seen_object_id: 'lastSeenObjectId',
|
34
|
-
report_heap_snapshot_progress: 'reportHeapSnapshotProgress',
|
35
|
-
reset_profiles: 'resetProfiles',
|
36
|
-
}.freeze
|
37
|
-
|
38
|
-
def initialize(devtools)
|
39
|
-
@devtools = devtools
|
40
|
-
end
|
41
|
-
|
42
|
-
def on(event, &block)
|
43
|
-
event = EVENTS[event] if event.is_a?(Symbol)
|
44
|
-
@devtools.callbacks["HeapProfiler.#{event}"] << block
|
45
|
-
end
|
46
|
-
|
47
|
-
def add_inspected_heap_object(heap_object_id:)
|
48
|
-
@devtools.send_cmd('HeapProfiler.addInspectedHeapObject',
|
49
|
-
heapObjectId: heap_object_id)
|
50
|
-
end
|
51
|
-
|
52
|
-
def collect_garbage
|
53
|
-
@devtools.send_cmd('HeapProfiler.collectGarbage')
|
54
|
-
end
|
55
|
-
|
56
|
-
def disable
|
57
|
-
@devtools.send_cmd('HeapProfiler.disable')
|
58
|
-
end
|
59
|
-
|
60
|
-
def enable
|
61
|
-
@devtools.send_cmd('HeapProfiler.enable')
|
62
|
-
end
|
63
|
-
|
64
|
-
def get_heap_object_id(object_id:)
|
65
|
-
@devtools.send_cmd('HeapProfiler.getHeapObjectId',
|
66
|
-
objectId: object_id)
|
67
|
-
end
|
68
|
-
|
69
|
-
def get_object_by_heap_object_id(object_id:, object_group: nil)
|
70
|
-
@devtools.send_cmd('HeapProfiler.getObjectByHeapObjectId',
|
71
|
-
objectId: object_id,
|
72
|
-
objectGroup: object_group)
|
73
|
-
end
|
74
|
-
|
75
|
-
def get_sampling_profile
|
76
|
-
@devtools.send_cmd('HeapProfiler.getSamplingProfile')
|
77
|
-
end
|
78
|
-
|
79
|
-
def start_sampling(sampling_interval: nil)
|
80
|
-
@devtools.send_cmd('HeapProfiler.startSampling',
|
81
|
-
samplingInterval: sampling_interval)
|
82
|
-
end
|
83
|
-
|
84
|
-
def start_tracking_heap_objects(track_allocations: nil)
|
85
|
-
@devtools.send_cmd('HeapProfiler.startTrackingHeapObjects',
|
86
|
-
trackAllocations: track_allocations)
|
87
|
-
end
|
88
|
-
|
89
|
-
def stop_sampling
|
90
|
-
@devtools.send_cmd('HeapProfiler.stopSampling')
|
91
|
-
end
|
92
|
-
|
93
|
-
def stop_tracking_heap_objects(report_progress: nil, treat_global_objects_as_roots: nil)
|
94
|
-
@devtools.send_cmd('HeapProfiler.stopTrackingHeapObjects',
|
95
|
-
reportProgress: report_progress,
|
96
|
-
treatGlobalObjectsAsRoots: treat_global_objects_as_roots)
|
97
|
-
end
|
98
|
-
|
99
|
-
def take_heap_snapshot(report_progress: nil, treat_global_objects_as_roots: nil)
|
100
|
-
@devtools.send_cmd('HeapProfiler.takeHeapSnapshot',
|
101
|
-
reportProgress: report_progress,
|
102
|
-
treatGlobalObjectsAsRoots: treat_global_objects_as_roots)
|
103
|
-
end
|
104
|
-
|
105
|
-
end # V86
|
106
|
-
end # HeapProfiler
|
107
|
-
end # DevTools
|
108
|
-
end # WebDriver
|
109
|
-
end # Selenium
|
@@ -1,102 +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 indexed_db
|
25
|
-
@indexed_db ||= V86::IndexedDB.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class IndexedDB
|
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["IndexedDB.#{event}"] << block
|
38
|
-
end
|
39
|
-
|
40
|
-
def clear_object_store(security_origin:, database_name:, object_store_name:)
|
41
|
-
@devtools.send_cmd('IndexedDB.clearObjectStore',
|
42
|
-
securityOrigin: security_origin,
|
43
|
-
databaseName: database_name,
|
44
|
-
objectStoreName: object_store_name)
|
45
|
-
end
|
46
|
-
|
47
|
-
def delete_database(security_origin:, database_name:)
|
48
|
-
@devtools.send_cmd('IndexedDB.deleteDatabase',
|
49
|
-
securityOrigin: security_origin,
|
50
|
-
databaseName: database_name)
|
51
|
-
end
|
52
|
-
|
53
|
-
def delete_object_store_entries(security_origin:, database_name:, object_store_name:, key_range:)
|
54
|
-
@devtools.send_cmd('IndexedDB.deleteObjectStoreEntries',
|
55
|
-
securityOrigin: security_origin,
|
56
|
-
databaseName: database_name,
|
57
|
-
objectStoreName: object_store_name,
|
58
|
-
keyRange: key_range)
|
59
|
-
end
|
60
|
-
|
61
|
-
def disable
|
62
|
-
@devtools.send_cmd('IndexedDB.disable')
|
63
|
-
end
|
64
|
-
|
65
|
-
def enable
|
66
|
-
@devtools.send_cmd('IndexedDB.enable')
|
67
|
-
end
|
68
|
-
|
69
|
-
def request_data(security_origin:, database_name:, object_store_name:, index_name:, skip_count:, page_size:, key_range: nil)
|
70
|
-
@devtools.send_cmd('IndexedDB.requestData',
|
71
|
-
securityOrigin: security_origin,
|
72
|
-
databaseName: database_name,
|
73
|
-
objectStoreName: object_store_name,
|
74
|
-
indexName: index_name,
|
75
|
-
skipCount: skip_count,
|
76
|
-
pageSize: page_size,
|
77
|
-
keyRange: key_range)
|
78
|
-
end
|
79
|
-
|
80
|
-
def get_metadata(security_origin:, database_name:, object_store_name:)
|
81
|
-
@devtools.send_cmd('IndexedDB.getMetadata',
|
82
|
-
securityOrigin: security_origin,
|
83
|
-
databaseName: database_name,
|
84
|
-
objectStoreName: object_store_name)
|
85
|
-
end
|
86
|
-
|
87
|
-
def request_database(security_origin:, database_name:)
|
88
|
-
@devtools.send_cmd('IndexedDB.requestDatabase',
|
89
|
-
securityOrigin: security_origin,
|
90
|
-
databaseName: database_name)
|
91
|
-
end
|
92
|
-
|
93
|
-
def request_database_names(security_origin:)
|
94
|
-
@devtools.send_cmd('IndexedDB.requestDatabaseNames',
|
95
|
-
securityOrigin: security_origin)
|
96
|
-
end
|
97
|
-
|
98
|
-
end # V86
|
99
|
-
end # IndexedDB
|
100
|
-
end # DevTools
|
101
|
-
end # WebDriver
|
102
|
-
end # Selenium
|
@@ -1,143 +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 input
|
25
|
-
@input ||= V86::Input.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class Input
|
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["Input.#{event}"] << block
|
38
|
-
end
|
39
|
-
|
40
|
-
def dispatch_key_event(type:, modifiers: nil, timestamp: nil, text: nil, unmodified_text: nil, key_identifier: nil, code: nil, key: nil, windows_virtual_key_code: nil, native_virtual_key_code: nil, auto_repeat: nil, is_keypad: nil, is_system_key: nil, location: nil, commands: nil)
|
41
|
-
@devtools.send_cmd('Input.dispatchKeyEvent',
|
42
|
-
type: type,
|
43
|
-
modifiers: modifiers,
|
44
|
-
timestamp: timestamp,
|
45
|
-
text: text,
|
46
|
-
unmodifiedText: unmodified_text,
|
47
|
-
keyIdentifier: key_identifier,
|
48
|
-
code: code,
|
49
|
-
key: key,
|
50
|
-
windowsVirtualKeyCode: windows_virtual_key_code,
|
51
|
-
nativeVirtualKeyCode: native_virtual_key_code,
|
52
|
-
autoRepeat: auto_repeat,
|
53
|
-
isKeypad: is_keypad,
|
54
|
-
isSystemKey: is_system_key,
|
55
|
-
location: location,
|
56
|
-
commands: commands)
|
57
|
-
end
|
58
|
-
|
59
|
-
def insert_text(text:)
|
60
|
-
@devtools.send_cmd('Input.insertText',
|
61
|
-
text: text)
|
62
|
-
end
|
63
|
-
|
64
|
-
def dispatch_mouse_event(type:, x:, y:, modifiers: nil, timestamp: nil, button: nil, buttons: nil, click_count: nil, delta_x: nil, delta_y: nil, pointer_type: nil)
|
65
|
-
@devtools.send_cmd('Input.dispatchMouseEvent',
|
66
|
-
type: type,
|
67
|
-
x: x,
|
68
|
-
y: y,
|
69
|
-
modifiers: modifiers,
|
70
|
-
timestamp: timestamp,
|
71
|
-
button: button,
|
72
|
-
buttons: buttons,
|
73
|
-
clickCount: click_count,
|
74
|
-
deltaX: delta_x,
|
75
|
-
deltaY: delta_y,
|
76
|
-
pointerType: pointer_type)
|
77
|
-
end
|
78
|
-
|
79
|
-
def dispatch_touch_event(type:, touch_points:, modifiers: nil, timestamp: nil)
|
80
|
-
@devtools.send_cmd('Input.dispatchTouchEvent',
|
81
|
-
type: type,
|
82
|
-
touchPoints: touch_points,
|
83
|
-
modifiers: modifiers,
|
84
|
-
timestamp: timestamp)
|
85
|
-
end
|
86
|
-
|
87
|
-
def emulate_touch_from_mouse_event(type:, x:, y:, button:, timestamp: nil, delta_x: nil, delta_y: nil, modifiers: nil, click_count: nil)
|
88
|
-
@devtools.send_cmd('Input.emulateTouchFromMouseEvent',
|
89
|
-
type: type,
|
90
|
-
x: x,
|
91
|
-
y: y,
|
92
|
-
button: button,
|
93
|
-
timestamp: timestamp,
|
94
|
-
deltaX: delta_x,
|
95
|
-
deltaY: delta_y,
|
96
|
-
modifiers: modifiers,
|
97
|
-
clickCount: click_count)
|
98
|
-
end
|
99
|
-
|
100
|
-
def set_ignore_input_events(ignore:)
|
101
|
-
@devtools.send_cmd('Input.setIgnoreInputEvents',
|
102
|
-
ignore: ignore)
|
103
|
-
end
|
104
|
-
|
105
|
-
def synthesize_pinch_gesture(x:, y:, scale_factor:, relative_speed: nil, gesture_source_type: nil)
|
106
|
-
@devtools.send_cmd('Input.synthesizePinchGesture',
|
107
|
-
x: x,
|
108
|
-
y: y,
|
109
|
-
scaleFactor: scale_factor,
|
110
|
-
relativeSpeed: relative_speed,
|
111
|
-
gestureSourceType: gesture_source_type)
|
112
|
-
end
|
113
|
-
|
114
|
-
def synthesize_scroll_gesture(x:, y:, x_distance: nil, y_distance: nil, x_overscroll: nil, y_overscroll: nil, prevent_fling: nil, speed: nil, gesture_source_type: nil, repeat_count: nil, repeat_delay_ms: nil, interaction_marker_name: nil)
|
115
|
-
@devtools.send_cmd('Input.synthesizeScrollGesture',
|
116
|
-
x: x,
|
117
|
-
y: y,
|
118
|
-
xDistance: x_distance,
|
119
|
-
yDistance: y_distance,
|
120
|
-
xOverscroll: x_overscroll,
|
121
|
-
yOverscroll: y_overscroll,
|
122
|
-
preventFling: prevent_fling,
|
123
|
-
speed: speed,
|
124
|
-
gestureSourceType: gesture_source_type,
|
125
|
-
repeatCount: repeat_count,
|
126
|
-
repeatDelayMs: repeat_delay_ms,
|
127
|
-
interactionMarkerName: interaction_marker_name)
|
128
|
-
end
|
129
|
-
|
130
|
-
def synthesize_tap_gesture(x:, y:, duration: nil, tap_count: nil, gesture_source_type: nil)
|
131
|
-
@devtools.send_cmd('Input.synthesizeTapGesture',
|
132
|
-
x: x,
|
133
|
-
y: y,
|
134
|
-
duration: duration,
|
135
|
-
tapCount: tap_count,
|
136
|
-
gestureSourceType: gesture_source_type)
|
137
|
-
end
|
138
|
-
|
139
|
-
end # V86
|
140
|
-
end # Input
|
141
|
-
end # DevTools
|
142
|
-
end # WebDriver
|
143
|
-
end # Selenium
|
@@ -1,57 +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 inspector
|
25
|
-
@inspector ||= V86::Inspector.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class Inspector
|
30
|
-
EVENTS = {
|
31
|
-
detached: 'detached',
|
32
|
-
target_crashed: 'targetCrashed',
|
33
|
-
target_reloaded_after_crash: 'targetReloadedAfterCrash',
|
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["Inspector.#{event}"] << block
|
43
|
-
end
|
44
|
-
|
45
|
-
def disable
|
46
|
-
@devtools.send_cmd('Inspector.disable')
|
47
|
-
end
|
48
|
-
|
49
|
-
def enable
|
50
|
-
@devtools.send_cmd('Inspector.enable')
|
51
|
-
end
|
52
|
-
|
53
|
-
end # V86
|
54
|
-
end # Inspector
|
55
|
-
end # DevTools
|
56
|
-
end # WebDriver
|
57
|
-
end # Selenium
|
@@ -1,61 +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 io
|
25
|
-
@io ||= V86::IO.new(self)
|
26
|
-
end
|
27
|
-
|
28
|
-
module V86
|
29
|
-
class IO
|
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["IO.#{event}"] << block
|
38
|
-
end
|
39
|
-
|
40
|
-
def close(handle:)
|
41
|
-
@devtools.send_cmd('IO.close',
|
42
|
-
handle: handle)
|
43
|
-
end
|
44
|
-
|
45
|
-
def read(handle:, offset: nil, size: nil)
|
46
|
-
@devtools.send_cmd('IO.read',
|
47
|
-
handle: handle,
|
48
|
-
offset: offset,
|
49
|
-
size: size)
|
50
|
-
end
|
51
|
-
|
52
|
-
def resolve_blob(object_id:)
|
53
|
-
@devtools.send_cmd('IO.resolveBlob',
|
54
|
-
objectId: object_id)
|
55
|
-
end
|
56
|
-
|
57
|
-
end # V86
|
58
|
-
end # IO
|
59
|
-
end # DevTools
|
60
|
-
end # WebDriver
|
61
|
-
end # Selenium
|