selenium-devtools 0.157.0 → 0.158.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/{v155 → v158}/accessibility.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/ads.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/animation.rb +5 -4
- data/lib/selenium/devtools/{v155 → v158}/audits.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/autofill.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/background_service.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/bluetooth_emulation.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/browser.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/cache_storage.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/cast.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/console.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/crash_report_context.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/css.rb +8 -2
- data/lib/selenium/devtools/{v155 → v158}/debugger.rb +5 -4
- data/lib/selenium/devtools/{v155 → v158}/device_access.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/device_orientation.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/digital_credentials.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/dom.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/dom_debugger.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/dom_snapshot.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/dom_storage.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/emulation.rb +5 -4
- data/lib/selenium/devtools/{v155 → v158}/event_breakpoints.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/extensions.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/fed_cm.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/fetch.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/file_system.rb +2 -2
- data/lib/selenium/devtools/v158/find_in_page.rb +56 -0
- data/lib/selenium/devtools/{v155 → v158}/headless_experimental.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/heap_profiler.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/indexed_db.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/input.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/inspector.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/io.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/layer_tree.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/log.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/media.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/memory.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/network.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/overlay.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/page.rb +20 -2
- data/lib/selenium/devtools/{v155 → v158}/performance.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/performance_timeline.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/preload.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/profiler.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/pwa.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/runtime.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/schema.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/security.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/service_worker.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/smart_card_emulation.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/storage.rb +26 -6
- data/lib/selenium/devtools/{v155 → v158}/system_info.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/target.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/tethering.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/tracing.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/web_audio.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/web_authn.rb +2 -2
- data/lib/selenium/devtools/{v155 → v158}/web_mcp.rb +2 -2
- data/lib/selenium/devtools/{v155.rb → v158.rb} +4 -3
- data/lib/selenium/devtools/version.rb +1 -1
- metadata +62 -61
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef9c335abcbb3f29388dae2acc438546ba3eca07ad513f8ae991d66a78834358
|
|
4
|
+
data.tar.gz: 28a6225fcd6841c4a5154309cb9643e4f94b8643638ee2cf2a28bc0e53cc7a6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28d1621b44687b1d3ca9abc9b5e15d44f3a34e6ea79cb972b4d804a47ba8981932410a41280bed2a334349801b5419576d8b346739fc6b64221c5e9a339bd7bd
|
|
7
|
+
data.tar.gz: 0b9b6cd82836552a11d79bdb7032c2e590418caff2a4f8d966fd5fb1fcde5946ee30744c00d6ecfe862c1d969674016ed0c14c854de348c9cb19d153a6c08de1
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Accessibility
|
|
26
26
|
EVENTS = {
|
|
27
27
|
load_complete: 'loadComplete',
|
|
@@ -87,6 +87,6 @@ module Selenium
|
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
end # Accessibility
|
|
90
|
-
end #
|
|
90
|
+
end # V158
|
|
91
91
|
end # DevTools
|
|
92
92
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Ads
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -42,6 +42,6 @@ module Selenium
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
end # Ads
|
|
45
|
-
end #
|
|
45
|
+
end # V158
|
|
46
46
|
end # DevTools
|
|
47
47
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Animation
|
|
26
26
|
EVENTS = {
|
|
27
27
|
animation_canceled: 'animationCanceled',
|
|
@@ -66,10 +66,11 @@ module Selenium
|
|
|
66
66
|
animationId: animation_id)
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
def seek_animations(animations:, current_time:)
|
|
69
|
+
def seek_animations(animations:, current_time: nil, current_times: nil)
|
|
70
70
|
@devtools.send_cmd('Animation.seekAnimations',
|
|
71
71
|
animations: animations,
|
|
72
|
-
currentTime: current_time
|
|
72
|
+
currentTime: current_time,
|
|
73
|
+
currentTimes: current_times)
|
|
73
74
|
end
|
|
74
75
|
|
|
75
76
|
def set_paused(animations:, paused:)
|
|
@@ -91,6 +92,6 @@ module Selenium
|
|
|
91
92
|
end
|
|
92
93
|
|
|
93
94
|
end # Animation
|
|
94
|
-
end #
|
|
95
|
+
end # V158
|
|
95
96
|
end # DevTools
|
|
96
97
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Audits
|
|
26
26
|
EVENTS = {
|
|
27
27
|
issue_added: 'issueAdded',
|
|
@@ -57,6 +57,6 @@ module Selenium
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
end # Audits
|
|
60
|
-
end #
|
|
60
|
+
end # V158
|
|
61
61
|
end # DevTools
|
|
62
62
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Autofill
|
|
26
26
|
EVENTS = {
|
|
27
27
|
address_form_filled: 'addressFormFilled',
|
|
@@ -58,6 +58,6 @@ module Selenium
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
end # Autofill
|
|
61
|
-
end #
|
|
61
|
+
end # V158
|
|
62
62
|
end # DevTools
|
|
63
63
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class BackgroundService
|
|
26
26
|
EVENTS = {
|
|
27
27
|
recording_state_changed: 'recordingStateChanged',
|
|
@@ -59,6 +59,6 @@ module Selenium
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
end # BackgroundService
|
|
62
|
-
end #
|
|
62
|
+
end # V158
|
|
63
63
|
end # DevTools
|
|
64
64
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class BluetoothEmulation
|
|
26
26
|
EVENTS = {
|
|
27
27
|
gatt_operation_received: 'gattOperationReceived',
|
|
@@ -129,6 +129,6 @@ module Selenium
|
|
|
129
129
|
end
|
|
130
130
|
|
|
131
131
|
end # BluetoothEmulation
|
|
132
|
-
end #
|
|
132
|
+
end # V158
|
|
133
133
|
end # DevTools
|
|
134
134
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Browser
|
|
26
26
|
EVENTS = {
|
|
27
27
|
download_will_begin: 'downloadWillBegin',
|
|
@@ -158,6 +158,6 @@ module Selenium
|
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
end # Browser
|
|
161
|
-
end #
|
|
161
|
+
end # V158
|
|
162
162
|
end # DevTools
|
|
163
163
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class CacheStorage
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -67,6 +67,6 @@ module Selenium
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
end # CacheStorage
|
|
70
|
-
end #
|
|
70
|
+
end # V158
|
|
71
71
|
end # DevTools
|
|
72
72
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Cast
|
|
26
26
|
EVENTS = {
|
|
27
27
|
sinks_updated: 'sinksUpdated',
|
|
@@ -67,6 +67,6 @@ module Selenium
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
end # Cast
|
|
70
|
-
end #
|
|
70
|
+
end # V158
|
|
71
71
|
end # DevTools
|
|
72
72
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Console
|
|
26
26
|
EVENTS = {
|
|
27
27
|
message_added: 'messageAdded',
|
|
@@ -49,6 +49,6 @@ module Selenium
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
end # Console
|
|
52
|
-
end #
|
|
52
|
+
end # V158
|
|
53
53
|
end # DevTools
|
|
54
54
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class CrashReportContext
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -38,6 +38,6 @@ module Selenium
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
end # CrashReportContext
|
|
41
|
-
end #
|
|
41
|
+
end # V158
|
|
42
42
|
end # DevTools
|
|
43
43
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class CSS
|
|
26
26
|
EVENTS = {
|
|
27
27
|
fonts_updated: 'fontsUpdated',
|
|
@@ -80,6 +80,12 @@ module Selenium
|
|
|
80
80
|
forced: forced)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
def force_position_try_option(node_id:, index: nil)
|
|
84
|
+
@devtools.send_cmd('CSS.forcePositionTryOption',
|
|
85
|
+
nodeId: node_id,
|
|
86
|
+
index: index)
|
|
87
|
+
end
|
|
88
|
+
|
|
83
89
|
def get_background_colors(node_id:)
|
|
84
90
|
@devtools.send_cmd('CSS.getBackgroundColors',
|
|
85
91
|
nodeId: node_id)
|
|
@@ -263,6 +269,6 @@ module Selenium
|
|
|
263
269
|
end
|
|
264
270
|
|
|
265
271
|
end # CSS
|
|
266
|
-
end #
|
|
272
|
+
end # V158
|
|
267
273
|
end # DevTools
|
|
268
274
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Debugger
|
|
26
26
|
EVENTS = {
|
|
27
27
|
breakpoint_resolved: 'breakpointResolved',
|
|
@@ -229,12 +229,13 @@ module Selenium
|
|
|
229
229
|
@devtools.send_cmd('Debugger.stepOut')
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
def step_over(skip_list: nil)
|
|
232
|
+
def step_over(skip_list: nil, enter_ranges: nil)
|
|
233
233
|
@devtools.send_cmd('Debugger.stepOver',
|
|
234
|
-
skipList: skip_list
|
|
234
|
+
skipList: skip_list,
|
|
235
|
+
enterRanges: enter_ranges)
|
|
235
236
|
end
|
|
236
237
|
|
|
237
238
|
end # Debugger
|
|
238
|
-
end #
|
|
239
|
+
end # V158
|
|
239
240
|
end # DevTools
|
|
240
241
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class DeviceAccess
|
|
26
26
|
EVENTS = {
|
|
27
27
|
device_request_prompted: 'deviceRequestPrompted',
|
|
@@ -56,6 +56,6 @@ module Selenium
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
end # DeviceAccess
|
|
59
|
-
end #
|
|
59
|
+
end # V158
|
|
60
60
|
end # DevTools
|
|
61
61
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class DeviceOrientation
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -45,6 +45,6 @@ module Selenium
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
end # DeviceOrientation
|
|
48
|
-
end #
|
|
48
|
+
end # V158
|
|
49
49
|
end # DevTools
|
|
50
50
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class DigitalCredentials
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -42,6 +42,6 @@ module Selenium
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
end # DigitalCredentials
|
|
45
|
-
end #
|
|
45
|
+
end # V158
|
|
46
46
|
end # DevTools
|
|
47
47
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class DOM
|
|
26
26
|
EVENTS = {
|
|
27
27
|
attribute_modified: 'attributeModified',
|
|
@@ -393,6 +393,6 @@ module Selenium
|
|
|
393
393
|
end
|
|
394
394
|
|
|
395
395
|
end # DOM
|
|
396
|
-
end #
|
|
396
|
+
end # V158
|
|
397
397
|
end # DevTools
|
|
398
398
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class DOMDebugger
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -90,6 +90,6 @@ module Selenium
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
end # DOMDebugger
|
|
93
|
-
end #
|
|
93
|
+
end # V158
|
|
94
94
|
end # DevTools
|
|
95
95
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class DOMSnapshot
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -59,6 +59,6 @@ module Selenium
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
end # DOMSnapshot
|
|
62
|
-
end #
|
|
62
|
+
end # V158
|
|
63
63
|
end # DevTools
|
|
64
64
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class DOMStorage
|
|
26
26
|
EVENTS = {
|
|
27
27
|
dom_storage_item_added: 'domStorageItemAdded',
|
|
@@ -71,6 +71,6 @@ module Selenium
|
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
end # DOMStorage
|
|
74
|
-
end #
|
|
74
|
+
end # V158
|
|
75
75
|
end # DevTools
|
|
76
76
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Emulation
|
|
26
26
|
EVENTS = {
|
|
27
27
|
virtual_time_budget_expired: 'virtualTimeBudgetExpired',
|
|
@@ -83,7 +83,7 @@ module Selenium
|
|
|
83
83
|
keyboardRect: keyboard_rect)
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
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, viewport_meta: nil)
|
|
86
|
+
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, viewport_meta: nil, text_layout_mode: nil)
|
|
87
87
|
@devtools.send_cmd('Emulation.setDeviceMetricsOverride',
|
|
88
88
|
width: width,
|
|
89
89
|
height: height,
|
|
@@ -101,7 +101,8 @@ module Selenium
|
|
|
101
101
|
devicePosture: device_posture,
|
|
102
102
|
scrollbarType: scrollbar_type,
|
|
103
103
|
screenOrientationLockEmulation: screen_orientation_lock_emulation,
|
|
104
|
-
viewportMeta: viewport_meta
|
|
104
|
+
viewportMeta: viewport_meta,
|
|
105
|
+
textLayoutMode: text_layout_mode)
|
|
105
106
|
end
|
|
106
107
|
|
|
107
108
|
def set_device_posture_override(posture:)
|
|
@@ -333,6 +334,6 @@ module Selenium
|
|
|
333
334
|
end
|
|
334
335
|
|
|
335
336
|
end # Emulation
|
|
336
|
-
end #
|
|
337
|
+
end # V158
|
|
337
338
|
end # DevTools
|
|
338
339
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class EventBreakpoints
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -48,6 +48,6 @@ module Selenium
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
end # EventBreakpoints
|
|
51
|
-
end #
|
|
51
|
+
end # V158
|
|
52
52
|
end # DevTools
|
|
53
53
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Extensions
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -82,6 +82,6 @@ module Selenium
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
end # Extensions
|
|
85
|
-
end #
|
|
85
|
+
end # V158
|
|
86
86
|
end # DevTools
|
|
87
87
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class FedCm
|
|
26
26
|
EVENTS = {
|
|
27
27
|
dialog_shown: 'dialogShown',
|
|
@@ -76,6 +76,6 @@ module Selenium
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
end # FedCm
|
|
79
|
-
end #
|
|
79
|
+
end # V158
|
|
80
80
|
end # DevTools
|
|
81
81
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Fetch
|
|
26
26
|
EVENTS = {
|
|
27
27
|
request_paused: 'requestPaused',
|
|
@@ -99,6 +99,6 @@ module Selenium
|
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
end # Fetch
|
|
102
|
-
end #
|
|
102
|
+
end # V158
|
|
103
103
|
end # DevTools
|
|
104
104
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class FileSystem
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -39,6 +39,6 @@ module Selenium
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
end # FileSystem
|
|
42
|
-
end #
|
|
42
|
+
end # V158
|
|
43
43
|
end # DevTools
|
|
44
44
|
end # Selenium
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
# DO NOT EDIT! This file is generated by rb/lib/selenium/devtools/support/cdp_client_generator.rb.
|
|
21
|
+
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
|
+
module Selenium
|
|
23
|
+
module DevTools
|
|
24
|
+
module V158
|
|
25
|
+
class FindInPage
|
|
26
|
+
|
|
27
|
+
def initialize(devtools)
|
|
28
|
+
@devtools = devtools
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def on(event, &block)
|
|
32
|
+
event = EVENTS[event] if event.is_a?(Symbol)
|
|
33
|
+
@devtools.callbacks["FindInPage.#{event}"] << block
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def find_first(query:)
|
|
37
|
+
@devtools.send_cmd('FindInPage.findFirst',
|
|
38
|
+
query: query)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def find_next
|
|
42
|
+
@devtools.send_cmd('FindInPage.findNext')
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def find_prev
|
|
46
|
+
@devtools.send_cmd('FindInPage.findPrev')
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def stop
|
|
50
|
+
@devtools.send_cmd('FindInPage.stop')
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
end # FindInPage
|
|
54
|
+
end # V158
|
|
55
|
+
end # DevTools
|
|
56
|
+
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class HeadlessExperimental
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -50,6 +50,6 @@ module Selenium
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
end # HeadlessExperimental
|
|
53
|
-
end #
|
|
53
|
+
end # V158
|
|
54
54
|
end # DevTools
|
|
55
55
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class HeapProfiler
|
|
26
26
|
EVENTS = {
|
|
27
27
|
add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
|
|
@@ -106,6 +106,6 @@ module Selenium
|
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
end # HeapProfiler
|
|
109
|
-
end #
|
|
109
|
+
end # V158
|
|
110
110
|
end # DevTools
|
|
111
111
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class IndexedDB
|
|
26
26
|
|
|
27
27
|
def initialize(devtools)
|
|
@@ -106,6 +106,6 @@ module Selenium
|
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
end # IndexedDB
|
|
109
|
-
end #
|
|
109
|
+
end # V158
|
|
110
110
|
end # DevTools
|
|
111
111
|
end # Selenium
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# Regenerate with: `bazel build //rb/lib/selenium/devtools:all`
|
|
22
22
|
module Selenium
|
|
23
23
|
module DevTools
|
|
24
|
-
module
|
|
24
|
+
module V158
|
|
25
25
|
class Input
|
|
26
26
|
EVENTS = {
|
|
27
27
|
drag_intercepted: 'dragIntercepted',
|
|
@@ -168,6 +168,6 @@ module Selenium
|
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
end # Input
|
|
171
|
-
end #
|
|
171
|
+
end # V158
|
|
172
172
|
end # DevTools
|
|
173
173
|
end # Selenium
|