selenium-devtools 0.111.0 → 0.113.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/lib/selenium/devtools/v111.rb +77 -1
- data/lib/selenium/devtools/{v110 → v112}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/animation.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/audits.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/browser.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/cast.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/console.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/css.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/database.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/debugger.rb +2 -2
- data/lib/selenium/devtools/v112/device_access.rb +60 -0
- data/lib/selenium/devtools/{v109 → v112}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/dom.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/emulation.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/input.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/io.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/log.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/media.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/memory.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/network.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/page.rb +9 -2
- data/lib/selenium/devtools/{v109 → v112}/performance.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/v112/preload.rb +50 -0
- data/lib/selenium/devtools/{v110 → v112}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/runtime.rb +4 -3
- data/lib/selenium/devtools/{v110 → v112}/schema.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/security.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/storage.rb +7 -2
- data/lib/selenium/devtools/{v110 → v112}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/target.rb +5 -4
- data/lib/selenium/devtools/{v109 → v112}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v109 → v112}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v110 → v112}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v112.rb +79 -0
- data/lib/selenium/devtools/{v109 → v113}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/animation.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/audits.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/browser.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/cache_storage.rb +5 -4
- data/lib/selenium/devtools/{v110 → v113}/cast.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/console.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/css.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/database.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/debugger.rb +2 -2
- data/lib/selenium/devtools/v113/device_access.rb +60 -0
- data/lib/selenium/devtools/{v110 → v113}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/dom.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/emulation.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/v113/fed_cm.rb +66 -0
- data/lib/selenium/devtools/{v110 → v113}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/input.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/io.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/log.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/media.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/memory.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/network.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/page.rb +7 -3
- data/lib/selenium/devtools/{v110 → v113}/performance.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/v113/preload.rb +54 -0
- data/lib/selenium/devtools/{v109 → v113}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/runtime.rb +4 -3
- data/lib/selenium/devtools/{v109 → v113}/schema.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/security.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/storage.rb +31 -2
- data/lib/selenium/devtools/{v109 → v113}/system_info.rb +7 -2
- data/lib/selenium/devtools/{v109 → v113}/target.rb +5 -4
- data/lib/selenium/devtools/{v110 → v113}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v110 → v113}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v109 → v113}/web_authn.rb +6 -2
- data/lib/selenium/devtools/v113.rb +80 -0
- data/lib/selenium/devtools/v85.rb +76 -1
- data/lib/selenium/devtools/version.rb +1 -1
- data/lib/selenium/devtools.rb +18 -0
- data/selenium-devtools.gemspec +1 -1
- metadata +106 -101
- data/lib/selenium/devtools/v109.rb +0 -1
- data/lib/selenium/devtools/v110.rb +0 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
|
21
21
|
module Selenium
|
|
22
22
|
module DevTools
|
|
23
|
-
module
|
|
23
|
+
module V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
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 V113
|
|
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 # V113
|
|
45
45
|
end # DevTools
|
|
46
46
|
end # Selenium
|
|
@@ -0,0 +1,54 @@
|
|
|
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 V113
|
|
24
|
+
class Preload
|
|
25
|
+
EVENTS = {
|
|
26
|
+
rule_set_updated: 'ruleSetUpdated',
|
|
27
|
+
rule_set_removed: 'ruleSetRemoved',
|
|
28
|
+
prerender_attempt_completed: 'prerenderAttemptCompleted',
|
|
29
|
+
prefetch_status_updated: 'prefetchStatusUpdated',
|
|
30
|
+
prerender_status_updated: 'prerenderStatusUpdated',
|
|
31
|
+
preloading_attempt_sources_updated: 'preloadingAttemptSourcesUpdated',
|
|
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["Preload.#{event}"] << block
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def enable
|
|
44
|
+
@devtools.send_cmd('Preload.enable')
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def disable
|
|
48
|
+
@devtools.send_cmd('Preload.disable')
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end # Preload
|
|
52
|
+
end # V113
|
|
53
|
+
end # DevTools
|
|
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 V113
|
|
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 # V113
|
|
82
82
|
end # DevTools
|
|
83
83
|
end # Selenium
|