selenium-devtools 0.148.0 → 0.150.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 +1 -4
- data/lib/selenium/devtools/{v147 → v149}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/animation.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/audits.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/autofill.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/bluetooth_emulation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/browser.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/cast.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/console.rb +2 -2
- data/lib/selenium/devtools/{v147/web_mcp.rb → v149/crash_report_context.rb} +7 -11
- data/lib/selenium/devtools/{v147 → v149}/css.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/device_access.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/dom.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/emulation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/extensions.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/fed_cm.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/file_system.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/input.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/io.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/log.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/media.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/memory.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/network.rb +11 -7
- data/lib/selenium/devtools/{v146 → v149}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/page.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/performance.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/preload.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/pwa.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/schema.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/security.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/smart_card_emulation.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/storage.rb +2 -26
- data/lib/selenium/devtools/{v146 → v149}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/target.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v146 → v149}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v147 → v149}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v149/web_mcp.rb +64 -0
- data/lib/selenium/devtools/{v147.rb → v149.rb} +4 -3
- data/lib/selenium/devtools/{v146 → v150}/accessibility.rb +2 -2
- data/lib/selenium/devtools/v150/ads.rb +42 -0
- data/lib/selenium/devtools/{v146 → v150}/animation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/audits.rb +2 -7
- data/lib/selenium/devtools/{v147 → v150}/autofill.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/bluetooth_emulation.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/browser.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/cast.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/console.rb +2 -2
- data/lib/selenium/devtools/v150/crash_report_context.rb +42 -0
- data/lib/selenium/devtools/{v146 → v150}/css.rb +16 -2
- data/lib/selenium/devtools/{v146 → v150}/debugger.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/device_access.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/dom.rb +3 -2
- data/lib/selenium/devtools/{v147 → v150}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/emulation.rb +27 -11
- data/lib/selenium/devtools/{v147 → v150}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/extensions.rb +6 -2
- data/lib/selenium/devtools/{v146 → v150}/fed_cm.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/file_system.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/input.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/io.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/log.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/media.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/memory.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/network.rb +11 -7
- data/lib/selenium/devtools/{v147 → v150}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/page.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/performance.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/preload.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/pwa.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/schema.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/security.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/smart_card_emulation.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/storage.rb +2 -26
- data/lib/selenium/devtools/{v147 → v150}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/target.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v147 → v150}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v146 → v150}/web_authn.rb +2 -2
- data/lib/selenium/devtools/v150/web_mcp.rb +64 -0
- data/lib/selenium/devtools/{v146.rb → v150.rb} +6 -3
- data/lib/selenium/devtools/version.rb +1 -1
- data/selenium-devtools.gemspec +1 -1
- metadata +119 -115
|
@@ -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 V150
|
|
24
24
|
class Browser
|
|
25
25
|
EVENTS = {
|
|
26
26
|
download_will_begin: 'downloadWillBegin',
|
|
@@ -151,6 +151,6 @@ module Selenium
|
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
end # Browser
|
|
154
|
-
end #
|
|
154
|
+
end # V150
|
|
155
155
|
end # DevTools
|
|
156
156
|
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 V150
|
|
24
24
|
class CacheStorage
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -66,6 +66,6 @@ module Selenium
|
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
end # CacheStorage
|
|
69
|
-
end #
|
|
69
|
+
end # V150
|
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
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 # V150
|
|
52
52
|
end # DevTools
|
|
53
53
|
end # Selenium
|
|
@@ -0,0 +1,42 @@
|
|
|
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 V150
|
|
24
|
+
class CrashReportContext
|
|
25
|
+
|
|
26
|
+
def initialize(devtools)
|
|
27
|
+
@devtools = devtools
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def on(event, &block)
|
|
31
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
|
32
|
+
@devtools.callbacks["CrashReportContext.#{event}"] << block
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def get_entries
|
|
36
|
+
@devtools.send_cmd('CrashReportContext.getEntries')
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end # CrashReportContext
|
|
40
|
+
end # V150
|
|
41
|
+
end # DevTools
|
|
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 V150
|
|
24
24
|
class CSS
|
|
25
25
|
EVENTS = {
|
|
26
26
|
fonts_updated: 'fontsUpdated',
|
|
@@ -197,6 +197,13 @@ module Selenium
|
|
|
197
197
|
text: text)
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
+
def set_container_query_condition_text(style_sheet_id:, range:, text:)
|
|
201
|
+
@devtools.send_cmd('CSS.setContainerQueryConditionText',
|
|
202
|
+
styleSheetId: style_sheet_id,
|
|
203
|
+
range: range,
|
|
204
|
+
text: text)
|
|
205
|
+
end
|
|
206
|
+
|
|
200
207
|
def set_supports_text(style_sheet_id:, range:, text:)
|
|
201
208
|
@devtools.send_cmd('CSS.setSupportsText',
|
|
202
209
|
styleSheetId: style_sheet_id,
|
|
@@ -204,6 +211,13 @@ module Selenium
|
|
|
204
211
|
text: text)
|
|
205
212
|
end
|
|
206
213
|
|
|
214
|
+
def set_navigation_text(style_sheet_id:, range:, text:)
|
|
215
|
+
@devtools.send_cmd('CSS.setNavigationText',
|
|
216
|
+
styleSheetId: style_sheet_id,
|
|
217
|
+
range: range,
|
|
218
|
+
text: text)
|
|
219
|
+
end
|
|
220
|
+
|
|
207
221
|
def set_scope_text(style_sheet_id:, range:, text:)
|
|
208
222
|
@devtools.send_cmd('CSS.setScopeText',
|
|
209
223
|
styleSheetId: style_sheet_id,
|
|
@@ -248,6 +262,6 @@ module Selenium
|
|
|
248
262
|
end
|
|
249
263
|
|
|
250
264
|
end # CSS
|
|
251
|
-
end #
|
|
265
|
+
end # V150
|
|
252
266
|
end # DevTools
|
|
253
267
|
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 V150
|
|
24
24
|
class Debugger
|
|
25
25
|
EVENTS = {
|
|
26
26
|
breakpoint_resolved: 'breakpointResolved',
|
|
@@ -233,6 +233,6 @@ module Selenium
|
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
end # Debugger
|
|
236
|
-
end #
|
|
236
|
+
end # V150
|
|
237
237
|
end # DevTools
|
|
238
238
|
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 V150
|
|
24
24
|
class DeviceAccess
|
|
25
25
|
EVENTS = {
|
|
26
26
|
device_request_prompted: 'deviceRequestPrompted',
|
|
@@ -55,6 +55,6 @@ module Selenium
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
end # DeviceAccess
|
|
58
|
-
end #
|
|
58
|
+
end # V150
|
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
24
24
|
class DOM
|
|
25
25
|
EVENTS = {
|
|
26
26
|
attribute_modified: 'attributeModified',
|
|
@@ -36,6 +36,7 @@ module Selenium
|
|
|
36
36
|
pseudo_element_added: 'pseudoElementAdded',
|
|
37
37
|
top_layer_elements_updated: 'topLayerElementsUpdated',
|
|
38
38
|
scrollable_flag_updated: 'scrollableFlagUpdated',
|
|
39
|
+
ad_related_state_updated: 'adRelatedStateUpdated',
|
|
39
40
|
affected_by_starting_styles_flag_updated: 'affectedByStartingStylesFlagUpdated',
|
|
40
41
|
pseudo_element_removed: 'pseudoElementRemoved',
|
|
41
42
|
set_child_nodes: 'setChildNodes',
|
|
@@ -365,6 +366,6 @@ module Selenium
|
|
|
365
366
|
end
|
|
366
367
|
|
|
367
368
|
end # DOM
|
|
368
|
-
end #
|
|
369
|
+
end # V150
|
|
369
370
|
end # DevTools
|
|
370
371
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
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 # V150
|
|
74
74
|
end # DevTools
|
|
75
75
|
end # Selenium
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
# This file is automatically generated. Any changes will be lost!
|
|
21
21
|
module Selenium
|
|
22
22
|
module DevTools
|
|
23
|
-
module
|
|
23
|
+
module V150
|
|
24
24
|
class Emulation
|
|
25
25
|
EVENTS = {
|
|
26
26
|
virtual_time_budget_expired: 'virtualTimeBudgetExpired',
|
|
27
|
+
screen_orientation_lock_changed: 'screenOrientationLockChanged',
|
|
27
28
|
}.freeze
|
|
28
29
|
|
|
29
30
|
def initialize(devtools)
|
|
@@ -76,7 +77,7 @@ module Selenium
|
|
|
76
77
|
insets: insets)
|
|
77
78
|
end
|
|
78
79
|
|
|
79
|
-
def set_device_metrics_override(width:, height:, device_scale_factor:, mobile:, scale: nil, screen_width: nil, screen_height: nil, position_x: nil, position_y: nil, dont_set_visible_size: nil, screen_orientation: nil, viewport: nil, display_feature: nil, device_posture: nil)
|
|
80
|
+
def set_device_metrics_override(width:, height:, device_scale_factor:, mobile:, scale: nil, screen_width: nil, screen_height: nil, position_x: nil, position_y: nil, dont_set_visible_size: nil, screen_orientation: nil, viewport: nil, display_feature: nil, device_posture: nil, scrollbar_type: nil, screen_orientation_lock_emulation: nil)
|
|
80
81
|
@devtools.send_cmd('Emulation.setDeviceMetricsOverride',
|
|
81
82
|
width: width,
|
|
82
83
|
height: height,
|
|
@@ -91,7 +92,9 @@ module Selenium
|
|
|
91
92
|
screenOrientation: screen_orientation,
|
|
92
93
|
viewport: viewport,
|
|
93
94
|
displayFeature: display_feature,
|
|
94
|
-
devicePosture: device_posture
|
|
95
|
+
devicePosture: device_posture,
|
|
96
|
+
scrollbarType: scrollbar_type,
|
|
97
|
+
screenOrientationLockEmulation: screen_orientation_lock_emulation)
|
|
95
98
|
end
|
|
96
99
|
|
|
97
100
|
def set_device_posture_override(posture:)
|
|
@@ -186,13 +189,6 @@ module Selenium
|
|
|
186
189
|
state: state)
|
|
187
190
|
end
|
|
188
191
|
|
|
189
|
-
def set_pressure_data_override(source:, state:, own_contribution_estimate: nil)
|
|
190
|
-
@devtools.send_cmd('Emulation.setPressureDataOverride',
|
|
191
|
-
source: source,
|
|
192
|
-
state: state,
|
|
193
|
-
ownContributionEstimate: own_contribution_estimate)
|
|
194
|
-
end
|
|
195
|
-
|
|
196
192
|
def set_idle_override(is_user_active:, is_screen_unlocked:)
|
|
197
193
|
@devtools.send_cmd('Emulation.setIdleOverride',
|
|
198
194
|
isUserActive: is_user_active,
|
|
@@ -299,12 +295,32 @@ module Selenium
|
|
|
299
295
|
isInternal: is_internal)
|
|
300
296
|
end
|
|
301
297
|
|
|
298
|
+
def update_screen(screen_id:, left: nil, top: nil, width: nil, height: nil, work_area_insets: nil, device_pixel_ratio: nil, rotation: nil, color_depth: nil, label: nil, is_internal: nil)
|
|
299
|
+
@devtools.send_cmd('Emulation.updateScreen',
|
|
300
|
+
screenId: screen_id,
|
|
301
|
+
left: left,
|
|
302
|
+
top: top,
|
|
303
|
+
width: width,
|
|
304
|
+
height: height,
|
|
305
|
+
workAreaInsets: work_area_insets,
|
|
306
|
+
devicePixelRatio: device_pixel_ratio,
|
|
307
|
+
rotation: rotation,
|
|
308
|
+
colorDepth: color_depth,
|
|
309
|
+
label: label,
|
|
310
|
+
isInternal: is_internal)
|
|
311
|
+
end
|
|
312
|
+
|
|
302
313
|
def remove_screen(screen_id:)
|
|
303
314
|
@devtools.send_cmd('Emulation.removeScreen',
|
|
304
315
|
screenId: screen_id)
|
|
305
316
|
end
|
|
306
317
|
|
|
318
|
+
def set_primary_screen(screen_id:)
|
|
319
|
+
@devtools.send_cmd('Emulation.setPrimaryScreen',
|
|
320
|
+
screenId: screen_id)
|
|
321
|
+
end
|
|
322
|
+
|
|
307
323
|
end # Emulation
|
|
308
|
-
end #
|
|
324
|
+
end # V150
|
|
309
325
|
end # DevTools
|
|
310
326
|
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 V150
|
|
24
24
|
class EventBreakpoints
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -47,6 +47,6 @@ module Selenium
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
end # EventBreakpoints
|
|
50
|
-
end #
|
|
50
|
+
end # V150
|
|
51
51
|
end # DevTools
|
|
52
52
|
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 V150
|
|
24
24
|
class Extensions
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -44,6 +44,10 @@ module Selenium
|
|
|
44
44
|
enableInIncognito: enable_in_incognito)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
def get_extensions
|
|
48
|
+
@devtools.send_cmd('Extensions.getExtensions')
|
|
49
|
+
end
|
|
50
|
+
|
|
47
51
|
def uninstall(id:)
|
|
48
52
|
@devtools.send_cmd('Extensions.uninstall',
|
|
49
53
|
id: id)
|
|
@@ -77,6 +81,6 @@ module Selenium
|
|
|
77
81
|
end
|
|
78
82
|
|
|
79
83
|
end # Extensions
|
|
80
|
-
end #
|
|
84
|
+
end # V150
|
|
81
85
|
end # DevTools
|
|
82
86
|
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 V150
|
|
24
24
|
class FedCm
|
|
25
25
|
EVENTS = {
|
|
26
26
|
dialog_shown: 'dialogShown',
|
|
@@ -75,6 +75,6 @@ module Selenium
|
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
end # FedCm
|
|
78
|
-
end #
|
|
78
|
+
end # V150
|
|
79
79
|
end # DevTools
|
|
80
80
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
24
24
|
class FileSystem
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -38,6 +38,6 @@ module Selenium
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
end # FileSystem
|
|
41
|
-
end #
|
|
41
|
+
end # V150
|
|
42
42
|
end # DevTools
|
|
43
43
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
24
24
|
class HeapProfiler
|
|
25
25
|
EVENTS = {
|
|
26
26
|
add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
|
|
@@ -105,6 +105,6 @@ module Selenium
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
end # HeapProfiler
|
|
108
|
-
end #
|
|
108
|
+
end # V150
|
|
109
109
|
end # DevTools
|
|
110
110
|
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 V150
|
|
24
24
|
class IndexedDB
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -105,6 +105,6 @@ module Selenium
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
end # IndexedDB
|
|
108
|
-
end #
|
|
108
|
+
end # V150
|
|
109
109
|
end # DevTools
|
|
110
110
|
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 V150
|
|
24
24
|
class Input
|
|
25
25
|
EVENTS = {
|
|
26
26
|
drag_intercepted: 'dragIntercepted',
|
|
@@ -167,6 +167,6 @@ module Selenium
|
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
end # Input
|
|
170
|
-
end #
|
|
170
|
+
end # V150
|
|
171
171
|
end # DevTools
|
|
172
172
|
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 V150
|
|
24
24
|
class Inspector
|
|
25
25
|
EVENTS = {
|
|
26
26
|
detached: 'detached',
|
|
@@ -47,6 +47,6 @@ module Selenium
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
end # Inspector
|
|
50
|
-
end #
|
|
50
|
+
end # V150
|
|
51
51
|
end # DevTools
|
|
52
52
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
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 # V150
|
|
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 V150
|
|
24
24
|
class Memory
|
|
25
25
|
|
|
26
26
|
def initialize(devtools)
|
|
@@ -81,6 +81,6 @@ module Selenium
|
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
end # Memory
|
|
84
|
-
end #
|
|
84
|
+
end # V150
|
|
85
85
|
end # DevTools
|
|
86
86
|
end # Selenium
|