selenium-devtools 0.113.0 → 0.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/selenium/devtools/{v111 → v114}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/animation.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/audits.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/browser.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/cast.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/console.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/css.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/database.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/debugger.rb +2 -2
- data/lib/selenium/devtools/v114/device_access.rb +60 -0
- data/lib/selenium/devtools/{v111 → v114}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/dom.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/emulation.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/v114/fed_cm.rb +66 -0
- data/lib/selenium/devtools/{v111 → v114}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/input.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/io.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/log.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/media.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/memory.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/network.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/page.rb +7 -3
- data/lib/selenium/devtools/{v111 → v114}/performance.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/v114/preload.rb +55 -0
- data/lib/selenium/devtools/{v111 → v114}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/schema.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/security.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/storage.rb +20 -2
- data/lib/selenium/devtools/{v111 → v114}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/target.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v111 → v114}/web_authn.rb +2 -2
- data/lib/selenium/devtools/{v111.rb → v114.rb} +6 -3
- data/lib/selenium/devtools/version.rb +1 -1
- data/lib/selenium/devtools.rb +10 -3
- metadata +52 -49
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3122a63206e52ea9f147ffcf4f47ce8349ddd90b027652ed17d25a17e9c740f8
|
|
4
|
+
data.tar.gz: 06cb3b7557f235d88aa823f7f5a85da1735902b9342e66cd808f281e69da7f1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e734f7eabc1fb6b467cb384d2bbb96e24db96392cc671e65511b744ff476a691a8fb7de1343ae8c4c0ac4d7ae26c7c8ac605845b13b07f01376505067f3ea97e
|
|
7
|
+
data.tar.gz: 5fed23a9c830c6243fd76d8a736c8e31557eacbc396666d44ae49ce1c94ea50209dc2626698463dc77a88c134e1a487b06dbe94616c1df1259427830cfa8ed4b
|
data/Gemfile
CHANGED
|
@@ -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 V114
|
|
24
24
|
class Accessibility
|
|
25
25
|
EVENTS = {
|
|
26
26
|
load_complete: 'loadComplete',
|
|
@@ -86,6 +86,6 @@ module Selenium
|
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
end # Accessibility
|
|
89
|
-
end #
|
|
89
|
+
end # V114
|
|
90
90
|
end # DevTools
|
|
91
91
|
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 V114
|
|
24
24
|
class Animation
|
|
25
25
|
EVENTS = {
|
|
26
26
|
animation_canceled: 'animationCanceled',
|
|
@@ -89,6 +89,6 @@ module Selenium
|
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
end # Animation
|
|
92
|
-
end #
|
|
92
|
+
end # V114
|
|
93
93
|
end # DevTools
|
|
94
94
|
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 V114
|
|
24
24
|
class Audits
|
|
25
25
|
EVENTS = {
|
|
26
26
|
issue_added: 'issueAdded',
|
|
@@ -57,6 +57,6 @@ module Selenium
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
end # Audits
|
|
60
|
-
end #
|
|
60
|
+
end # V114
|
|
61
61
|
end # DevTools
|
|
62
62
|
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 V114
|
|
24
24
|
class BackgroundService
|
|
25
25
|
EVENTS = {
|
|
26
26
|
recording_state_changed: 'recordingStateChanged',
|
|
@@ -58,6 +58,6 @@ module Selenium
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
end # BackgroundService
|
|
61
|
-
end #
|
|
61
|
+
end # V114
|
|
62
62
|
end # DevTools
|
|
63
63
|
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 V114
|
|
24
24
|
class Browser
|
|
25
25
|
EVENTS = {
|
|
26
26
|
download_will_begin: 'downloadWillBegin',
|
|
@@ -130,6 +130,6 @@ module Selenium
|
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
end # Browser
|
|
133
|
-
end #
|
|
133
|
+
end # V114
|
|
134
134
|
end # DevTools
|
|
135
135
|
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 V114
|
|
24
24
|
class CacheStorage
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -65,6 +65,6 @@ module Selenium
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
end # CacheStorage
|
|
68
|
-
end #
|
|
68
|
+
end # V114
|
|
69
69
|
end # DevTools
|
|
70
70
|
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 V114
|
|
24
24
|
class Cast
|
|
25
25
|
EVENTS = {
|
|
26
26
|
sinks_updated: 'sinksUpdated',
|
|
@@ -66,6 +66,6 @@ module Selenium
|
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
end # Cast
|
|
69
|
-
end #
|
|
69
|
+
end # V114
|
|
70
70
|
end # DevTools
|
|
71
71
|
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 V114
|
|
24
24
|
class Console
|
|
25
25
|
EVENTS = {
|
|
26
26
|
message_added: 'messageAdded',
|
|
@@ -48,6 +48,6 @@ module Selenium
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
end # Console
|
|
51
|
-
end #
|
|
51
|
+
end # V114
|
|
52
52
|
end # DevTools
|
|
53
53
|
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 V114
|
|
24
24
|
class CSS
|
|
25
25
|
EVENTS = {
|
|
26
26
|
fonts_updated: 'fontsUpdated',
|
|
@@ -196,6 +196,6 @@ module Selenium
|
|
|
196
196
|
end
|
|
197
197
|
|
|
198
198
|
end # CSS
|
|
199
|
-
end #
|
|
199
|
+
end # V114
|
|
200
200
|
end # DevTools
|
|
201
201
|
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 V114
|
|
24
24
|
class Database
|
|
25
25
|
EVENTS = {
|
|
26
26
|
add_database: 'addDatabase',
|
|
@@ -55,6 +55,6 @@ module Selenium
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
end # Database
|
|
58
|
-
end #
|
|
58
|
+
end # V114
|
|
59
59
|
end # DevTools
|
|
60
60
|
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 V114
|
|
24
24
|
class Debugger
|
|
25
25
|
EVENTS = {
|
|
26
26
|
breakpoint_resolved: 'breakpointResolved',
|
|
@@ -227,6 +227,6 @@ module Selenium
|
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
end # Debugger
|
|
230
|
-
end #
|
|
230
|
+
end # V114
|
|
231
231
|
end # DevTools
|
|
232
232
|
end # Selenium
|
|
@@ -0,0 +1,60 @@
|
|
|
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 V114
|
|
24
|
+
class DeviceAccess
|
|
25
|
+
EVENTS = {
|
|
26
|
+
device_request_prompted: 'deviceRequestPrompted',
|
|
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["DeviceAccess.#{event}"] << block
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def enable
|
|
39
|
+
@devtools.send_cmd('DeviceAccess.enable')
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def disable
|
|
43
|
+
@devtools.send_cmd('DeviceAccess.disable')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def select_prompt(id:, device_id:)
|
|
47
|
+
@devtools.send_cmd('DeviceAccess.selectPrompt',
|
|
48
|
+
id: id,
|
|
49
|
+
deviceId: device_id)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def cancel_prompt(id:)
|
|
53
|
+
@devtools.send_cmd('DeviceAccess.cancelPrompt',
|
|
54
|
+
id: id)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
end # DeviceAccess
|
|
58
|
+
end # V114
|
|
59
|
+
end # DevTools
|
|
60
|
+
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 V114
|
|
24
24
|
class DeviceOrientation
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -44,6 +44,6 @@ module Selenium
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
end # DeviceOrientation
|
|
47
|
-
end #
|
|
47
|
+
end # V114
|
|
48
48
|
end # DevTools
|
|
49
49
|
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 V114
|
|
24
24
|
class DOM
|
|
25
25
|
EVENTS = {
|
|
26
26
|
attribute_modified: 'attributeModified',
|
|
@@ -337,6 +337,6 @@ module Selenium
|
|
|
337
337
|
end
|
|
338
338
|
|
|
339
339
|
end # DOM
|
|
340
|
-
end #
|
|
340
|
+
end # V114
|
|
341
341
|
end # DevTools
|
|
342
342
|
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 V114
|
|
24
24
|
class DOMDebugger
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -89,6 +89,6 @@ module Selenium
|
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
end # DOMDebugger
|
|
92
|
-
end #
|
|
92
|
+
end # V114
|
|
93
93
|
end # DevTools
|
|
94
94
|
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 V114
|
|
24
24
|
class DOMSnapshot
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -58,6 +58,6 @@ module Selenium
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
end # DOMSnapshot
|
|
61
|
-
end #
|
|
61
|
+
end # V114
|
|
62
62
|
end # DevTools
|
|
63
63
|
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 V114
|
|
24
24
|
class DOMStorage
|
|
25
25
|
EVENTS = {
|
|
26
26
|
dom_storage_item_added: 'domStorageItemAdded',
|
|
@@ -70,6 +70,6 @@ module Selenium
|
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
end # DOMStorage
|
|
73
|
-
end #
|
|
73
|
+
end # V114
|
|
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 V114
|
|
24
24
|
class Emulation
|
|
25
25
|
EVENTS = {
|
|
26
26
|
virtual_time_budget_expired: 'virtualTimeBudgetExpired',
|
|
@@ -201,6 +201,6 @@ module Selenium
|
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
end # Emulation
|
|
204
|
-
end #
|
|
204
|
+
end # V114
|
|
205
205
|
end # DevTools
|
|
206
206
|
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 V114
|
|
24
24
|
class EventBreakpoints
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -43,6 +43,6 @@ module Selenium
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
end # EventBreakpoints
|
|
46
|
-
end #
|
|
46
|
+
end # V114
|
|
47
47
|
end # DevTools
|
|
48
48
|
end # Selenium
|
|
@@ -0,0 +1,66 @@
|
|
|
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 V114
|
|
24
|
+
class FedCm
|
|
25
|
+
EVENTS = {
|
|
26
|
+
dialog_shown: 'dialogShown',
|
|
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["FedCm.#{event}"] << block
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def enable(disable_rejection_delay: nil)
|
|
39
|
+
@devtools.send_cmd('FedCm.enable',
|
|
40
|
+
disableRejectionDelay: disable_rejection_delay)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def disable
|
|
44
|
+
@devtools.send_cmd('FedCm.disable')
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def select_account(dialog_id:, account_index:)
|
|
48
|
+
@devtools.send_cmd('FedCm.selectAccount',
|
|
49
|
+
dialogId: dialog_id,
|
|
50
|
+
accountIndex: account_index)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def dismiss_dialog(dialog_id:, trigger_cooldown: nil)
|
|
54
|
+
@devtools.send_cmd('FedCm.dismissDialog',
|
|
55
|
+
dialogId: dialog_id,
|
|
56
|
+
triggerCooldown: trigger_cooldown)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def reset_cooldown
|
|
60
|
+
@devtools.send_cmd('FedCm.resetCooldown')
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
end # FedCm
|
|
64
|
+
end # V114
|
|
65
|
+
end # DevTools
|
|
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 V114
|
|
24
24
|
class Fetch
|
|
25
25
|
EVENTS = {
|
|
26
26
|
request_paused: 'requestPaused',
|
|
@@ -98,6 +98,6 @@ module Selenium
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
end # Fetch
|
|
101
|
-
end #
|
|
101
|
+
end # V114
|
|
102
102
|
end # DevTools
|
|
103
103
|
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 V114
|
|
24
24
|
class HeadlessExperimental
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -49,6 +49,6 @@ module Selenium
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
end # HeadlessExperimental
|
|
52
|
-
end #
|
|
52
|
+
end # V114
|
|
53
53
|
end # DevTools
|
|
54
54
|
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 V114
|
|
24
24
|
class HeapProfiler
|
|
25
25
|
EVENTS = {
|
|
26
26
|
add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
|
|
@@ -104,6 +104,6 @@ module Selenium
|
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
end # HeapProfiler
|
|
107
|
-
end #
|
|
107
|
+
end # V114
|
|
108
108
|
end # DevTools
|
|
109
109
|
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 V114
|
|
24
24
|
class IndexedDB
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -98,6 +98,6 @@ module Selenium
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
end # IndexedDB
|
|
101
|
-
end #
|
|
101
|
+
end # V114
|
|
102
102
|
end # DevTools
|
|
103
103
|
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 V114
|
|
24
24
|
class Input
|
|
25
25
|
EVENTS = {
|
|
26
26
|
drag_intercepted: 'dragIntercepted',
|
|
@@ -163,6 +163,6 @@ module Selenium
|
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
end # Input
|
|
166
|
-
end #
|
|
166
|
+
end # V114
|
|
167
167
|
end # DevTools
|
|
168
168
|
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 V114
|
|
24
24
|
class Inspector
|
|
25
25
|
EVENTS = {
|
|
26
26
|
detached: 'detached',
|
|
@@ -46,6 +46,6 @@ module Selenium
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
end # Inspector
|
|
49
|
-
end #
|
|
49
|
+
end # V114
|
|
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 V114
|
|
24
24
|
class IO
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -50,6 +50,6 @@ module Selenium
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
end # IO
|
|
53
|
-
end #
|
|
53
|
+
end # V114
|
|
54
54
|
end # DevTools
|
|
55
55
|
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 V114
|
|
24
24
|
class LayerTree
|
|
25
25
|
EVENTS = {
|
|
26
26
|
layer_painted: 'layerPainted',
|
|
@@ -86,6 +86,6 @@ module Selenium
|
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
end # LayerTree
|
|
89
|
-
end #
|
|
89
|
+
end # V114
|
|
90
90
|
end # DevTools
|
|
91
91
|
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 V114
|
|
24
24
|
class Log
|
|
25
25
|
EVENTS = {
|
|
26
26
|
entry_added: 'entryAdded',
|
|
@@ -57,6 +57,6 @@ module Selenium
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
end # Log
|
|
60
|
-
end #
|
|
60
|
+
end # V114
|
|
61
61
|
end # DevTools
|
|
62
62
|
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 V114
|
|
24
24
|
class Media
|
|
25
25
|
EVENTS = {
|
|
26
26
|
player_properties_changed: 'playerPropertiesChanged',
|
|
@@ -48,6 +48,6 @@ module Selenium
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
end # Media
|
|
51
|
-
end #
|
|
51
|
+
end # V114
|
|
52
52
|
end # DevTools
|
|
53
53
|
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 V114
|
|
24
24
|
class Memory
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -77,6 +77,6 @@ module Selenium
|
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
end # Memory
|
|
80
|
-
end #
|
|
80
|
+
end # V114
|
|
81
81
|
end # DevTools
|
|
82
82
|
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 V114
|
|
24
24
|
class Network
|
|
25
25
|
EVENTS = {
|
|
26
26
|
data_received: 'dataReceived',
|
|
@@ -259,6 +259,6 @@ module Selenium
|
|
|
259
259
|
end
|
|
260
260
|
|
|
261
261
|
end # Network
|
|
262
|
-
end #
|
|
262
|
+
end # V114
|
|
263
263
|
end # DevTools
|
|
264
264
|
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 V114
|
|
24
24
|
class Overlay
|
|
25
25
|
EVENTS = {
|
|
26
26
|
inspect_node_requested: 'inspectNodeRequested',
|
|
@@ -197,6 +197,6 @@ module Selenium
|
|
|
197
197
|
end
|
|
198
198
|
|
|
199
199
|
end # Overlay
|
|
200
|
-
end #
|
|
200
|
+
end # V114
|
|
201
201
|
end # DevTools
|
|
202
202
|
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 V114
|
|
24
24
|
class Page
|
|
25
25
|
EVENTS = {
|
|
26
26
|
dom_content_event_fired: 'domContentEventFired',
|
|
@@ -43,7 +43,6 @@ module Selenium
|
|
|
43
43
|
javascript_dialog_opening: 'javascriptDialogOpening',
|
|
44
44
|
lifecycle_event: 'lifecycleEvent',
|
|
45
45
|
back_forward_cache_not_used: 'backForwardCacheNotUsed',
|
|
46
|
-
prerender_attempt_completed: 'prerenderAttemptCompleted',
|
|
47
46
|
load_event_fired: 'loadEventFired',
|
|
48
47
|
navigated_within_document: 'navigatedWithinDocument',
|
|
49
48
|
screencast_frame: 'screencastFrame',
|
|
@@ -379,6 +378,11 @@ module Selenium
|
|
|
379
378
|
mode: mode)
|
|
380
379
|
end
|
|
381
380
|
|
|
381
|
+
def set_rph_registration_mode(mode:)
|
|
382
|
+
@devtools.send_cmd('Page.setRPHRegistrationMode',
|
|
383
|
+
mode: mode)
|
|
384
|
+
end
|
|
385
|
+
|
|
382
386
|
def generate_test_report(message:, group: nil)
|
|
383
387
|
@devtools.send_cmd('Page.generateTestReport',
|
|
384
388
|
message: message,
|
|
@@ -395,6 +399,6 @@ module Selenium
|
|
|
395
399
|
end
|
|
396
400
|
|
|
397
401
|
end # Page
|
|
398
|
-
end #
|
|
402
|
+
end # V114
|
|
399
403
|
end # DevTools
|
|
400
404
|
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 V114
|
|
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 # V114
|
|
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 V114
|
|
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 # V114
|
|
45
45
|
end # DevTools
|
|
46
46
|
end # Selenium
|
|
@@ -0,0 +1,55 @@
|
|
|
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 V114
|
|
24
|
+
class Preload
|
|
25
|
+
EVENTS = {
|
|
26
|
+
rule_set_updated: 'ruleSetUpdated',
|
|
27
|
+
rule_set_removed: 'ruleSetRemoved',
|
|
28
|
+
prerender_attempt_completed: 'prerenderAttemptCompleted',
|
|
29
|
+
preload_enabled_state_updated: 'preloadEnabledStateUpdated',
|
|
30
|
+
prefetch_status_updated: 'prefetchStatusUpdated',
|
|
31
|
+
prerender_status_updated: 'prerenderStatusUpdated',
|
|
32
|
+
preloading_attempt_sources_updated: 'preloadingAttemptSourcesUpdated',
|
|
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["Preload.#{event}"] << block
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def enable
|
|
45
|
+
@devtools.send_cmd('Preload.enable')
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def disable
|
|
49
|
+
@devtools.send_cmd('Preload.disable')
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end # Preload
|
|
53
|
+
end # V114
|
|
54
|
+
end # DevTools
|
|
55
|
+
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 V114
|
|
24
24
|
class Profiler
|
|
25
25
|
EVENTS = {
|
|
26
26
|
console_profile_finished: 'consoleProfileFinished',
|
|
@@ -78,6 +78,6 @@ module Selenium
|
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
end # Profiler
|
|
81
|
-
end #
|
|
81
|
+
end # V114
|
|
82
82
|
end # DevTools
|
|
83
83
|
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 V114
|
|
24
24
|
class Runtime
|
|
25
25
|
EVENTS = {
|
|
26
26
|
binding_called: 'bindingCalled',
|
|
@@ -197,6 +197,6 @@ module Selenium
|
|
|
197
197
|
end
|
|
198
198
|
|
|
199
199
|
end # Runtime
|
|
200
|
-
end #
|
|
200
|
+
end # V114
|
|
201
201
|
end # DevTools
|
|
202
202
|
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 V114
|
|
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 # V114
|
|
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 V114
|
|
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 # V114
|
|
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 V114
|
|
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 # V114
|
|
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 V114
|
|
24
24
|
class Storage
|
|
25
25
|
EVENTS = {
|
|
26
26
|
cache_storage_content_updated: 'cacheStorageContentUpdated',
|
|
@@ -29,6 +29,8 @@ module Selenium
|
|
|
29
29
|
indexed_db_list_updated: 'indexedDBListUpdated',
|
|
30
30
|
interest_group_accessed: 'interestGroupAccessed',
|
|
31
31
|
shared_storage_accessed: 'sharedStorageAccessed',
|
|
32
|
+
storage_bucket_created_or_updated: 'storageBucketCreatedOrUpdated',
|
|
33
|
+
storage_bucket_deleted: 'storageBucketDeleted',
|
|
32
34
|
}.freeze
|
|
33
35
|
|
|
34
36
|
def initialize(devtools)
|
|
@@ -183,7 +185,23 @@ module Selenium
|
|
|
183
185
|
enable: enable)
|
|
184
186
|
end
|
|
185
187
|
|
|
188
|
+
def set_storage_bucket_tracking(storage_key:, enable:)
|
|
189
|
+
@devtools.send_cmd('Storage.setStorageBucketTracking',
|
|
190
|
+
storageKey: storage_key,
|
|
191
|
+
enable: enable)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
def delete_storage_bucket(storage_key:, bucket_name:)
|
|
195
|
+
@devtools.send_cmd('Storage.deleteStorageBucket',
|
|
196
|
+
storageKey: storage_key,
|
|
197
|
+
bucketName: bucket_name)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def run_bounce_tracking_mitigations
|
|
201
|
+
@devtools.send_cmd('Storage.runBounceTrackingMitigations')
|
|
202
|
+
end
|
|
203
|
+
|
|
186
204
|
end # Storage
|
|
187
|
-
end #
|
|
205
|
+
end # V114
|
|
188
206
|
end # DevTools
|
|
189
207
|
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 V114
|
|
24
24
|
class SystemInfo
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -46,6 +46,6 @@ module Selenium
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
end # SystemInfo
|
|
49
|
-
end #
|
|
49
|
+
end # V114
|
|
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 V114
|
|
24
24
|
class Target
|
|
25
25
|
EVENTS = {
|
|
26
26
|
attached_to_target: 'attachedToTarget',
|
|
@@ -146,6 +146,6 @@ module Selenium
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
end # Target
|
|
149
|
-
end #
|
|
149
|
+
end # V114
|
|
150
150
|
end # DevTools
|
|
151
151
|
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 V114
|
|
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 # V114
|
|
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 V114
|
|
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 # V114
|
|
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 V114
|
|
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 # V114
|
|
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 V114
|
|
24
24
|
class WebAuthn
|
|
25
25
|
EVENTS = {
|
|
26
26
|
credential_added: 'credentialAdded',
|
|
@@ -104,6 +104,6 @@ module Selenium
|
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
end # WebAuthn
|
|
107
|
-
end #
|
|
107
|
+
end # V114
|
|
108
108
|
end # DevTools
|
|
109
109
|
end # Selenium
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
|
21
21
|
|
|
22
|
-
Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/
|
|
22
|
+
Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v114/*", &method(:require))
|
|
23
23
|
|
|
24
24
|
module Selenium
|
|
25
25
|
module DevTools
|
|
26
|
-
module
|
|
26
|
+
module V114
|
|
27
27
|
METHODS_TO_CLASSES = {
|
|
28
28
|
accessibility: 'Accessibility',
|
|
29
29
|
animation: 'Animation',
|
|
@@ -65,6 +65,9 @@ module Selenium
|
|
|
65
65
|
web_audio: 'WebAudio',
|
|
66
66
|
web_authn: 'WebAuthn',
|
|
67
67
|
media: 'Media',
|
|
68
|
+
device_access: 'DeviceAccess',
|
|
69
|
+
preload: 'Preload',
|
|
70
|
+
fed_cm: 'FedCm',
|
|
68
71
|
console: 'Console',
|
|
69
72
|
debugger: 'Debugger',
|
|
70
73
|
heap_profiler: 'HeapProfiler',
|
|
@@ -72,6 +75,6 @@ module Selenium
|
|
|
72
75
|
runtime: 'Runtime',
|
|
73
76
|
schema: 'Schema',
|
|
74
77
|
}.freeze
|
|
75
|
-
end #
|
|
78
|
+
end # V114
|
|
76
79
|
end # DevTools
|
|
77
80
|
end # Selenium
|
data/lib/selenium/devtools.rb
CHANGED
|
@@ -25,7 +25,8 @@ module Selenium
|
|
|
25
25
|
def load_version
|
|
26
26
|
require "selenium/devtools/v#{@version}"
|
|
27
27
|
rescue LoadError
|
|
28
|
-
|
|
28
|
+
WebDriver.logger.warn "Could not load selenium-devtools v#{@version}. Trying older versions.",
|
|
29
|
+
id: :devtools
|
|
29
30
|
load_older_version
|
|
30
31
|
end
|
|
31
32
|
|
|
@@ -35,13 +36,19 @@ module Selenium
|
|
|
35
36
|
def load_older_version
|
|
36
37
|
load_old_version(@version - 1)
|
|
37
38
|
rescue LoadError
|
|
38
|
-
|
|
39
|
+
begin
|
|
40
|
+
load_old_version(@version - 2)
|
|
41
|
+
rescue LoadError
|
|
42
|
+
raise WebDriver::Error::WebDriverError,
|
|
43
|
+
'Could not find a valid devtools version; use a more recent version of selenium-devtools gem'
|
|
44
|
+
end
|
|
39
45
|
end
|
|
40
46
|
|
|
41
47
|
def load_old_version(version)
|
|
42
48
|
require "selenium/devtools/v#{version}"
|
|
43
49
|
self.version = version
|
|
44
|
-
|
|
50
|
+
msg = "Using selenium-devtools version v#{version}, some features may not work as expected."
|
|
51
|
+
WebDriver.logger.warn msg, id: :devtools
|
|
45
52
|
end
|
|
46
53
|
end
|
|
47
54
|
end # DevTools
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: selenium-devtools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.114.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Rodionov
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2023-05
|
|
13
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: selenium-webdriver
|
|
@@ -41,53 +41,6 @@ files:
|
|
|
41
41
|
- LICENSE
|
|
42
42
|
- NOTICE
|
|
43
43
|
- lib/selenium/devtools.rb
|
|
44
|
-
- lib/selenium/devtools/v111.rb
|
|
45
|
-
- lib/selenium/devtools/v111/accessibility.rb
|
|
46
|
-
- lib/selenium/devtools/v111/animation.rb
|
|
47
|
-
- lib/selenium/devtools/v111/audits.rb
|
|
48
|
-
- lib/selenium/devtools/v111/background_service.rb
|
|
49
|
-
- lib/selenium/devtools/v111/browser.rb
|
|
50
|
-
- lib/selenium/devtools/v111/cache_storage.rb
|
|
51
|
-
- lib/selenium/devtools/v111/cast.rb
|
|
52
|
-
- lib/selenium/devtools/v111/console.rb
|
|
53
|
-
- lib/selenium/devtools/v111/css.rb
|
|
54
|
-
- lib/selenium/devtools/v111/database.rb
|
|
55
|
-
- lib/selenium/devtools/v111/debugger.rb
|
|
56
|
-
- lib/selenium/devtools/v111/device_orientation.rb
|
|
57
|
-
- lib/selenium/devtools/v111/dom.rb
|
|
58
|
-
- lib/selenium/devtools/v111/dom_debugger.rb
|
|
59
|
-
- lib/selenium/devtools/v111/dom_snapshot.rb
|
|
60
|
-
- lib/selenium/devtools/v111/dom_storage.rb
|
|
61
|
-
- lib/selenium/devtools/v111/emulation.rb
|
|
62
|
-
- lib/selenium/devtools/v111/event_breakpoints.rb
|
|
63
|
-
- lib/selenium/devtools/v111/fetch.rb
|
|
64
|
-
- lib/selenium/devtools/v111/headless_experimental.rb
|
|
65
|
-
- lib/selenium/devtools/v111/heap_profiler.rb
|
|
66
|
-
- lib/selenium/devtools/v111/indexed_db.rb
|
|
67
|
-
- lib/selenium/devtools/v111/input.rb
|
|
68
|
-
- lib/selenium/devtools/v111/inspector.rb
|
|
69
|
-
- lib/selenium/devtools/v111/io.rb
|
|
70
|
-
- lib/selenium/devtools/v111/layer_tree.rb
|
|
71
|
-
- lib/selenium/devtools/v111/log.rb
|
|
72
|
-
- lib/selenium/devtools/v111/media.rb
|
|
73
|
-
- lib/selenium/devtools/v111/memory.rb
|
|
74
|
-
- lib/selenium/devtools/v111/network.rb
|
|
75
|
-
- lib/selenium/devtools/v111/overlay.rb
|
|
76
|
-
- lib/selenium/devtools/v111/page.rb
|
|
77
|
-
- lib/selenium/devtools/v111/performance.rb
|
|
78
|
-
- lib/selenium/devtools/v111/performance_timeline.rb
|
|
79
|
-
- lib/selenium/devtools/v111/profiler.rb
|
|
80
|
-
- lib/selenium/devtools/v111/runtime.rb
|
|
81
|
-
- lib/selenium/devtools/v111/schema.rb
|
|
82
|
-
- lib/selenium/devtools/v111/security.rb
|
|
83
|
-
- lib/selenium/devtools/v111/service_worker.rb
|
|
84
|
-
- lib/selenium/devtools/v111/storage.rb
|
|
85
|
-
- lib/selenium/devtools/v111/system_info.rb
|
|
86
|
-
- lib/selenium/devtools/v111/target.rb
|
|
87
|
-
- lib/selenium/devtools/v111/tethering.rb
|
|
88
|
-
- lib/selenium/devtools/v111/tracing.rb
|
|
89
|
-
- lib/selenium/devtools/v111/web_audio.rb
|
|
90
|
-
- lib/selenium/devtools/v111/web_authn.rb
|
|
91
44
|
- lib/selenium/devtools/v112.rb
|
|
92
45
|
- lib/selenium/devtools/v112/accessibility.rb
|
|
93
46
|
- lib/selenium/devtools/v112/animation.rb
|
|
@@ -187,6 +140,56 @@ files:
|
|
|
187
140
|
- lib/selenium/devtools/v113/tracing.rb
|
|
188
141
|
- lib/selenium/devtools/v113/web_audio.rb
|
|
189
142
|
- lib/selenium/devtools/v113/web_authn.rb
|
|
143
|
+
- lib/selenium/devtools/v114.rb
|
|
144
|
+
- lib/selenium/devtools/v114/accessibility.rb
|
|
145
|
+
- lib/selenium/devtools/v114/animation.rb
|
|
146
|
+
- lib/selenium/devtools/v114/audits.rb
|
|
147
|
+
- lib/selenium/devtools/v114/background_service.rb
|
|
148
|
+
- lib/selenium/devtools/v114/browser.rb
|
|
149
|
+
- lib/selenium/devtools/v114/cache_storage.rb
|
|
150
|
+
- lib/selenium/devtools/v114/cast.rb
|
|
151
|
+
- lib/selenium/devtools/v114/console.rb
|
|
152
|
+
- lib/selenium/devtools/v114/css.rb
|
|
153
|
+
- lib/selenium/devtools/v114/database.rb
|
|
154
|
+
- lib/selenium/devtools/v114/debugger.rb
|
|
155
|
+
- lib/selenium/devtools/v114/device_access.rb
|
|
156
|
+
- lib/selenium/devtools/v114/device_orientation.rb
|
|
157
|
+
- lib/selenium/devtools/v114/dom.rb
|
|
158
|
+
- lib/selenium/devtools/v114/dom_debugger.rb
|
|
159
|
+
- lib/selenium/devtools/v114/dom_snapshot.rb
|
|
160
|
+
- lib/selenium/devtools/v114/dom_storage.rb
|
|
161
|
+
- lib/selenium/devtools/v114/emulation.rb
|
|
162
|
+
- lib/selenium/devtools/v114/event_breakpoints.rb
|
|
163
|
+
- lib/selenium/devtools/v114/fed_cm.rb
|
|
164
|
+
- lib/selenium/devtools/v114/fetch.rb
|
|
165
|
+
- lib/selenium/devtools/v114/headless_experimental.rb
|
|
166
|
+
- lib/selenium/devtools/v114/heap_profiler.rb
|
|
167
|
+
- lib/selenium/devtools/v114/indexed_db.rb
|
|
168
|
+
- lib/selenium/devtools/v114/input.rb
|
|
169
|
+
- lib/selenium/devtools/v114/inspector.rb
|
|
170
|
+
- lib/selenium/devtools/v114/io.rb
|
|
171
|
+
- lib/selenium/devtools/v114/layer_tree.rb
|
|
172
|
+
- lib/selenium/devtools/v114/log.rb
|
|
173
|
+
- lib/selenium/devtools/v114/media.rb
|
|
174
|
+
- lib/selenium/devtools/v114/memory.rb
|
|
175
|
+
- lib/selenium/devtools/v114/network.rb
|
|
176
|
+
- lib/selenium/devtools/v114/overlay.rb
|
|
177
|
+
- lib/selenium/devtools/v114/page.rb
|
|
178
|
+
- lib/selenium/devtools/v114/performance.rb
|
|
179
|
+
- lib/selenium/devtools/v114/performance_timeline.rb
|
|
180
|
+
- lib/selenium/devtools/v114/preload.rb
|
|
181
|
+
- lib/selenium/devtools/v114/profiler.rb
|
|
182
|
+
- lib/selenium/devtools/v114/runtime.rb
|
|
183
|
+
- lib/selenium/devtools/v114/schema.rb
|
|
184
|
+
- lib/selenium/devtools/v114/security.rb
|
|
185
|
+
- lib/selenium/devtools/v114/service_worker.rb
|
|
186
|
+
- lib/selenium/devtools/v114/storage.rb
|
|
187
|
+
- lib/selenium/devtools/v114/system_info.rb
|
|
188
|
+
- lib/selenium/devtools/v114/target.rb
|
|
189
|
+
- lib/selenium/devtools/v114/tethering.rb
|
|
190
|
+
- lib/selenium/devtools/v114/tracing.rb
|
|
191
|
+
- lib/selenium/devtools/v114/web_audio.rb
|
|
192
|
+
- lib/selenium/devtools/v114/web_authn.rb
|
|
190
193
|
- lib/selenium/devtools/v85.rb
|
|
191
194
|
- lib/selenium/devtools/v85/accessibility.rb
|
|
192
195
|
- lib/selenium/devtools/v85/animation.rb
|