selenium-devtools 0.111.0 → 0.112.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/{v109 → v112}/accessibility.rb +2 -2
  3. data/lib/selenium/devtools/{v109 → v112}/animation.rb +2 -2
  4. data/lib/selenium/devtools/{v109 → v112}/audits.rb +2 -2
  5. data/lib/selenium/devtools/{v109 → v112}/background_service.rb +2 -2
  6. data/lib/selenium/devtools/{v109 → v112}/browser.rb +2 -2
  7. data/lib/selenium/devtools/{v109 → v112}/cache_storage.rb +5 -4
  8. data/lib/selenium/devtools/{v109 → v112}/cast.rb +2 -2
  9. data/lib/selenium/devtools/{v109 → v112}/console.rb +2 -2
  10. data/lib/selenium/devtools/{v109 → v112}/css.rb +2 -2
  11. data/lib/selenium/devtools/{v109 → v112}/database.rb +2 -2
  12. data/lib/selenium/devtools/{v109 → v112}/debugger.rb +2 -2
  13. data/lib/selenium/devtools/v112/device_access.rb +60 -0
  14. data/lib/selenium/devtools/{v109 → v112}/device_orientation.rb +2 -2
  15. data/lib/selenium/devtools/{v109 → v112}/dom.rb +2 -2
  16. data/lib/selenium/devtools/{v109 → v112}/dom_debugger.rb +2 -2
  17. data/lib/selenium/devtools/{v109 → v112}/dom_snapshot.rb +2 -2
  18. data/lib/selenium/devtools/{v109 → v112}/dom_storage.rb +2 -2
  19. data/lib/selenium/devtools/{v109 → v112}/emulation.rb +2 -2
  20. data/lib/selenium/devtools/{v109 → v112}/event_breakpoints.rb +2 -2
  21. data/lib/selenium/devtools/{v109 → v112}/fetch.rb +2 -2
  22. data/lib/selenium/devtools/{v109 → v112}/headless_experimental.rb +2 -2
  23. data/lib/selenium/devtools/{v109 → v112}/heap_profiler.rb +2 -2
  24. data/lib/selenium/devtools/{v109 → v112}/indexed_db.rb +2 -2
  25. data/lib/selenium/devtools/{v109 → v112}/input.rb +2 -2
  26. data/lib/selenium/devtools/{v109 → v112}/inspector.rb +2 -2
  27. data/lib/selenium/devtools/{v109 → v112}/io.rb +2 -2
  28. data/lib/selenium/devtools/{v109 → v112}/layer_tree.rb +2 -2
  29. data/lib/selenium/devtools/{v109 → v112}/log.rb +2 -2
  30. data/lib/selenium/devtools/{v109 → v112}/media.rb +2 -2
  31. data/lib/selenium/devtools/{v109 → v112}/memory.rb +2 -2
  32. data/lib/selenium/devtools/{v109 → v112}/network.rb +2 -2
  33. data/lib/selenium/devtools/{v109 → v112}/overlay.rb +2 -2
  34. data/lib/selenium/devtools/{v109 → v112}/page.rb +9 -2
  35. data/lib/selenium/devtools/{v109 → v112}/performance.rb +2 -2
  36. data/lib/selenium/devtools/{v109 → v112}/performance_timeline.rb +2 -2
  37. data/lib/selenium/devtools/v112/preload.rb +50 -0
  38. data/lib/selenium/devtools/{v109 → v112}/profiler.rb +2 -2
  39. data/lib/selenium/devtools/{v109 → v112}/runtime.rb +4 -3
  40. data/lib/selenium/devtools/{v109 → v112}/schema.rb +2 -2
  41. data/lib/selenium/devtools/{v109 → v112}/security.rb +2 -2
  42. data/lib/selenium/devtools/{v109 → v112}/service_worker.rb +2 -2
  43. data/lib/selenium/devtools/{v109 → v112}/storage.rb +17 -2
  44. data/lib/selenium/devtools/{v109 → v112}/system_info.rb +7 -2
  45. data/lib/selenium/devtools/{v109 → v112}/target.rb +5 -4
  46. data/lib/selenium/devtools/{v109 → v112}/tethering.rb +2 -2
  47. data/lib/selenium/devtools/{v109 → v112}/tracing.rb +2 -2
  48. data/lib/selenium/devtools/{v109 → v112}/web_audio.rb +2 -2
  49. data/lib/selenium/devtools/{v109 → v112}/web_authn.rb +6 -2
  50. data/lib/selenium/devtools/v112.rb +1 -0
  51. data/lib/selenium/devtools/version.rb +1 -1
  52. data/lib/selenium/devtools.rb +18 -0
  53. metadata +51 -49
  54. data/lib/selenium/devtools/v109.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08dc4875a278620870c8db0f38c19153d094c770c22a466697df095cdbec67e5'
4
- data.tar.gz: 1d282f189c997dd1277b97a54f689bd96db38d0f9ead3f675509f9965118b2ee
3
+ metadata.gz: 6fd3a5246fd4d570440e2fb0a9b4536954b73cd80e4a1c3e007c4bc580000988
4
+ data.tar.gz: 1694475a054bb705b0e77b64eaa7d98c03ace272b9a602fee5456b8efe0f2e04
5
5
  SHA512:
6
- metadata.gz: 9bfa28933c8ab7c93316bb8bbca76c9a8db8f7f91ddffc2da5f615c56c331deb454bd95f7193713fac094cf3eb357f809ca96c67922de47da184cb50272867bc
7
- data.tar.gz: cd8ca6c4a3ee0fe90cc76ddbd81a36bd0198ef050e6f0c09d44416816cf555e101d7801506232c63f9516a9faa635ba953084f06ebd9545f07ec6baf2a96ae12
6
+ metadata.gz: b3d1e2b3dde732ecfa8b353341240423e685d5a52f4f5510f725585b02cb935756bff208b6e579eb2b7115483835e6af5d4def69a48f4797ae9e4f762ad90469
7
+ data.tar.gz: 89650bbb03de67a95b291d2bd313a244e04b8c81435383fb3a23c9b4ff5d75db913f775f48d887cf41e8a256eb2206bdf615885c1db600362cfdb7d4a423c095
@@ -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 V109
23
+ module V112
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 # V109
89
+ end # V112
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 V109
23
+ module V112
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 # V109
92
+ end # V112
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 V109
23
+ module V112
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 # V109
60
+ end # V112
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 V109
23
+ module V112
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 # V109
61
+ end # V112
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 V109
23
+ module V112
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 # V109
133
+ end # V112
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 V109
23
+ module V112
24
24
  class CacheStorage
25
25
 
26
26
  def initialize(devtools)
@@ -43,9 +43,10 @@ module Selenium
43
43
  request: request)
44
44
  end
45
45
 
46
- def request_cache_names(security_origin:)
46
+ def request_cache_names(security_origin: nil, storage_key: nil)
47
47
  @devtools.send_cmd('CacheStorage.requestCacheNames',
48
- securityOrigin: security_origin)
48
+ securityOrigin: security_origin,
49
+ storageKey: storage_key)
49
50
  end
50
51
 
51
52
  def request_cached_response(cache_id:, request_url:, request_headers:)
@@ -64,6 +65,6 @@ module Selenium
64
65
  end
65
66
 
66
67
  end # CacheStorage
67
- end # V109
68
+ end # V112
68
69
  end # DevTools
69
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 V109
23
+ module V112
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 # V109
69
+ end # V112
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 V109
23
+ module V112
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 # V109
51
+ end # V112
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 V109
23
+ module V112
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 # V109
199
+ end # V112
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 V109
23
+ module V112
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 # V109
58
+ end # V112
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 V109
23
+ module V112
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 # V109
230
+ end # V112
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 V112
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 # V112
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 V109
23
+ module V112
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 # V109
47
+ end # V112
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 V109
23
+ module V112
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 # V109
340
+ end # V112
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 V109
23
+ module V112
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 # V109
92
+ end # V112
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 V109
23
+ module V112
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 # V109
61
+ end # V112
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 V109
23
+ module V112
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 # V109
73
+ end # V112
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 V109
23
+ module V112
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 # V109
204
+ end # V112
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 V109
23
+ module V112
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 # V109
46
+ end # V112
47
47
  end # DevTools
48
48
  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 V109
23
+ module V112
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 # V109
101
+ end # V112
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 V109
23
+ module V112
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 # V109
52
+ end # V112
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 V109
23
+ module V112
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 # V109
107
+ end # V112
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 V109
23
+ module V112
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 # V109
101
+ end # V112
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 V109
23
+ module V112
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 # V109
166
+ end # V112
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 V109
23
+ module V112
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 # V109
49
+ end # V112
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 V109
23
+ module V112
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 # V109
53
+ end # V112
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 V109
23
+ module V112
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 # V109
89
+ end # V112
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 V109
23
+ module V112
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 # V109
60
+ end # V112
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 V109
23
+ module V112
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 # V109
51
+ end # V112
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 V109
23
+ module V112
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 # V109
80
+ end # V112
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 V109
23
+ module V112
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 # V109
262
+ end # V112
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 V109
23
+ module V112
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 # V109
200
+ end # V112
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 V109
23
+ module V112
24
24
  class Page
25
25
  EVENTS = {
26
26
  dom_content_event_fired: 'domContentEventFired',
@@ -44,6 +44,8 @@ module Selenium
44
44
  lifecycle_event: 'lifecycleEvent',
45
45
  back_forward_cache_not_used: 'backForwardCacheNotUsed',
46
46
  prerender_attempt_completed: 'prerenderAttemptCompleted',
47
+ prefetch_status_updated: 'prefetchStatusUpdated',
48
+ prerender_status_updated: 'prerenderStatusUpdated',
47
49
  load_event_fired: 'loadEventFired',
48
50
  navigated_within_document: 'navigatedWithinDocument',
49
51
  screencast_frame: 'screencastFrame',
@@ -379,6 +381,11 @@ module Selenium
379
381
  mode: mode)
380
382
  end
381
383
 
384
+ def set_rph_registration_mode(mode:)
385
+ @devtools.send_cmd('Page.setRPHRegistrationMode',
386
+ mode: mode)
387
+ end
388
+
382
389
  def generate_test_report(message:, group: nil)
383
390
  @devtools.send_cmd('Page.generateTestReport',
384
391
  message: message,
@@ -395,6 +402,6 @@ module Selenium
395
402
  end
396
403
 
397
404
  end # Page
398
- end # V109
405
+ end # V112
399
406
  end # DevTools
400
407
  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 V109
23
+ module V112
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 # V109
57
+ end # V112
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 V109
23
+ module V112
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 # V109
44
+ end # V112
45
45
  end # DevTools
46
46
  end # Selenium
@@ -0,0 +1,50 @@
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 V112
24
+ class Preload
25
+ EVENTS = {
26
+ rule_set_updated: 'ruleSetUpdated',
27
+ rule_set_removed: 'ruleSetRemoved',
28
+ }.freeze
29
+
30
+ def initialize(devtools)
31
+ @devtools = devtools
32
+ end
33
+
34
+ def on(event, &block)
35
+ event = EVENTS[event] if event.is_a?(Symbol)
36
+ @devtools.callbacks["Preload.#{event}"] << block
37
+ end
38
+
39
+ def enable
40
+ @devtools.send_cmd('Preload.enable')
41
+ end
42
+
43
+ def disable
44
+ @devtools.send_cmd('Preload.disable')
45
+ end
46
+
47
+ end # Preload
48
+ end # V112
49
+ end # DevTools
50
+ 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 V109
23
+ module V112
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 # V109
81
+ end # V112
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 V109
23
+ module V112
24
24
  class Runtime
25
25
  EVENTS = {
26
26
  binding_called: 'bindingCalled',
@@ -49,7 +49,7 @@ module Selenium
49
49
  generatePreview: generate_preview)
50
50
  end
51
51
 
52
- def call_function_on(function_declaration:, object_id: nil, arguments: nil, silent: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, execution_context_id: nil, object_group: nil, throw_on_side_effect: nil, generate_web_driver_value: nil)
52
+ def call_function_on(function_declaration:, object_id: nil, arguments: nil, silent: nil, return_by_value: nil, generate_preview: nil, user_gesture: nil, await_promise: nil, execution_context_id: nil, object_group: nil, throw_on_side_effect: nil, unique_context_id: nil, generate_web_driver_value: nil)
53
53
  @devtools.send_cmd('Runtime.callFunctionOn',
54
54
  functionDeclaration: function_declaration,
55
55
  objectId: object_id,
@@ -62,6 +62,7 @@ module Selenium
62
62
  executionContextId: execution_context_id,
63
63
  objectGroup: object_group,
64
64
  throwOnSideEffect: throw_on_side_effect,
65
+ uniqueContextId: unique_context_id,
65
66
  generateWebDriverValue: generate_web_driver_value)
66
67
  end
67
68
 
@@ -196,6 +197,6 @@ module Selenium
196
197
  end
197
198
 
198
199
  end # Runtime
199
- end # V109
200
+ end # V112
200
201
  end # DevTools
201
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 V109
23
+ module V112
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 # V109
40
+ end # V112
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 V109
23
+ module V112
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 # V109
65
+ end # V112
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 V109
23
+ module V112
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 # V109
110
+ end # V112
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 V109
23
+ module V112
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -89,6 +89,11 @@ module Selenium
89
89
  origin: origin)
90
90
  end
91
91
 
92
+ def track_cache_storage_for_storage_key(storage_key:)
93
+ @devtools.send_cmd('Storage.trackCacheStorageForStorageKey',
94
+ storageKey: storage_key)
95
+ end
96
+
92
97
  def track_indexed_db_for_origin(origin:)
93
98
  @devtools.send_cmd('Storage.trackIndexedDBForOrigin',
94
99
  origin: origin)
@@ -104,6 +109,11 @@ module Selenium
104
109
  origin: origin)
105
110
  end
106
111
 
112
+ def untrack_cache_storage_for_storage_key(storage_key:)
113
+ @devtools.send_cmd('Storage.untrackCacheStorageForStorageKey',
114
+ storageKey: storage_key)
115
+ end
116
+
107
117
  def untrack_indexed_db_for_origin(origin:)
108
118
  @devtools.send_cmd('Storage.untrackIndexedDBForOrigin',
109
119
  origin: origin)
@@ -163,12 +173,17 @@ module Selenium
163
173
  ownerOrigin: owner_origin)
164
174
  end
165
175
 
176
+ def reset_shared_storage_budget(owner_origin:)
177
+ @devtools.send_cmd('Storage.resetSharedStorageBudget',
178
+ ownerOrigin: owner_origin)
179
+ end
180
+
166
181
  def set_shared_storage_tracking(enable:)
167
182
  @devtools.send_cmd('Storage.setSharedStorageTracking',
168
183
  enable: enable)
169
184
  end
170
185
 
171
186
  end # Storage
172
- end # V109
187
+ end # V112
173
188
  end # DevTools
174
189
  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 V109
23
+ module V112
24
24
  class SystemInfo
25
25
 
26
26
  def initialize(devtools)
@@ -36,11 +36,16 @@ module Selenium
36
36
  @devtools.send_cmd('SystemInfo.getInfo')
37
37
  end
38
38
 
39
+ def get_feature_state(feature_state:)
40
+ @devtools.send_cmd('SystemInfo.getFeatureState',
41
+ featureState: feature_state)
42
+ end
43
+
39
44
  def get_process_info
40
45
  @devtools.send_cmd('SystemInfo.getProcessInfo')
41
46
  end
42
47
 
43
48
  end # SystemInfo
44
- end # V109
49
+ end # V112
45
50
  end # DevTools
46
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 V109
23
+ module V112
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -79,7 +79,7 @@ module Selenium
79
79
  @devtools.send_cmd('Target.getBrowserContexts')
80
80
  end
81
81
 
82
- def create_target(url:, width: nil, height: nil, browser_context_id: nil, enable_begin_frame_control: nil, new_window: nil, background: nil)
82
+ def create_target(url:, width: nil, height: nil, browser_context_id: nil, enable_begin_frame_control: nil, new_window: nil, background: nil, for_tab: nil)
83
83
  @devtools.send_cmd('Target.createTarget',
84
84
  url: url,
85
85
  width: width,
@@ -87,7 +87,8 @@ module Selenium
87
87
  browserContextId: browser_context_id,
88
88
  enableBeginFrameControl: enable_begin_frame_control,
89
89
  newWindow: new_window,
90
- background: background)
90
+ background: background,
91
+ forTab: for_tab)
91
92
  end
92
93
 
93
94
  def detach_from_target(session_id: nil, target_id: nil)
@@ -145,6 +146,6 @@ module Selenium
145
146
  end
146
147
 
147
148
  end # Target
148
- end # V109
149
+ end # V112
149
150
  end # DevTools
150
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 V109
23
+ module V112
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 # V109
49
+ end # V112
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 V109
23
+ module V112
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 # V109
73
+ end # V112
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 V109
23
+ module V112
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 # V109
64
+ end # V112
65
65
  end # DevTools
66
66
  end # Selenium
@@ -20,8 +20,12 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V109
23
+ module V112
24
24
  class WebAuthn
25
+ EVENTS = {
26
+ credential_added: 'credentialAdded',
27
+ credential_asserted: 'credentialAsserted',
28
+ }.freeze
25
29
 
26
30
  def initialize(devtools)
27
31
  @devtools = devtools
@@ -100,6 +104,6 @@ module Selenium
100
104
  end
101
105
 
102
106
  end # WebAuthn
103
- end # V109
107
+ end # V112
104
108
  end # DevTools
105
109
  end # Selenium
@@ -0,0 +1 @@
1
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v112/*", &method(:require))
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.111.0'
22
+ VERSION = '0.112.0'
23
23
  end # DevTools
24
24
  end # Selenium
@@ -24,6 +24,24 @@ module Selenium
24
24
 
25
25
  def load_version
26
26
  require "selenium/devtools/v#{@version}"
27
+ rescue LoadError
28
+ Kernel.warn "Could not load selenium-devtools v#{@version}. Trying older versions."
29
+ load_older_version
30
+ end
31
+
32
+ private
33
+
34
+ # Try to load up to 2 versions back
35
+ def load_older_version
36
+ load_old_version(@version - 1)
37
+ rescue LoadError
38
+ load_old_version(@version - 2)
39
+ end
40
+
41
+ def load_old_version(version)
42
+ require "selenium/devtools/v#{version}"
43
+ self.version = version
44
+ Kernel.warn "Using selenium-devtools version v#{version}, some features may not work as expected."
27
45
  end
28
46
  end
29
47
  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.111.0
4
+ version: 0.112.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-03-16 00:00:00.000000000 Z
13
+ date: 2023-04-18 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/v109.rb
45
- - lib/selenium/devtools/v109/accessibility.rb
46
- - lib/selenium/devtools/v109/animation.rb
47
- - lib/selenium/devtools/v109/audits.rb
48
- - lib/selenium/devtools/v109/background_service.rb
49
- - lib/selenium/devtools/v109/browser.rb
50
- - lib/selenium/devtools/v109/cache_storage.rb
51
- - lib/selenium/devtools/v109/cast.rb
52
- - lib/selenium/devtools/v109/console.rb
53
- - lib/selenium/devtools/v109/css.rb
54
- - lib/selenium/devtools/v109/database.rb
55
- - lib/selenium/devtools/v109/debugger.rb
56
- - lib/selenium/devtools/v109/device_orientation.rb
57
- - lib/selenium/devtools/v109/dom.rb
58
- - lib/selenium/devtools/v109/dom_debugger.rb
59
- - lib/selenium/devtools/v109/dom_snapshot.rb
60
- - lib/selenium/devtools/v109/dom_storage.rb
61
- - lib/selenium/devtools/v109/emulation.rb
62
- - lib/selenium/devtools/v109/event_breakpoints.rb
63
- - lib/selenium/devtools/v109/fetch.rb
64
- - lib/selenium/devtools/v109/headless_experimental.rb
65
- - lib/selenium/devtools/v109/heap_profiler.rb
66
- - lib/selenium/devtools/v109/indexed_db.rb
67
- - lib/selenium/devtools/v109/input.rb
68
- - lib/selenium/devtools/v109/inspector.rb
69
- - lib/selenium/devtools/v109/io.rb
70
- - lib/selenium/devtools/v109/layer_tree.rb
71
- - lib/selenium/devtools/v109/log.rb
72
- - lib/selenium/devtools/v109/media.rb
73
- - lib/selenium/devtools/v109/memory.rb
74
- - lib/selenium/devtools/v109/network.rb
75
- - lib/selenium/devtools/v109/overlay.rb
76
- - lib/selenium/devtools/v109/page.rb
77
- - lib/selenium/devtools/v109/performance.rb
78
- - lib/selenium/devtools/v109/performance_timeline.rb
79
- - lib/selenium/devtools/v109/profiler.rb
80
- - lib/selenium/devtools/v109/runtime.rb
81
- - lib/selenium/devtools/v109/schema.rb
82
- - lib/selenium/devtools/v109/security.rb
83
- - lib/selenium/devtools/v109/service_worker.rb
84
- - lib/selenium/devtools/v109/storage.rb
85
- - lib/selenium/devtools/v109/system_info.rb
86
- - lib/selenium/devtools/v109/target.rb
87
- - lib/selenium/devtools/v109/tethering.rb
88
- - lib/selenium/devtools/v109/tracing.rb
89
- - lib/selenium/devtools/v109/web_audio.rb
90
- - lib/selenium/devtools/v109/web_authn.rb
91
44
  - lib/selenium/devtools/v110.rb
92
45
  - lib/selenium/devtools/v110/accessibility.rb
93
46
  - lib/selenium/devtools/v110/animation.rb
@@ -182,6 +135,55 @@ files:
182
135
  - lib/selenium/devtools/v111/tracing.rb
183
136
  - lib/selenium/devtools/v111/web_audio.rb
184
137
  - lib/selenium/devtools/v111/web_authn.rb
138
+ - lib/selenium/devtools/v112.rb
139
+ - lib/selenium/devtools/v112/accessibility.rb
140
+ - lib/selenium/devtools/v112/animation.rb
141
+ - lib/selenium/devtools/v112/audits.rb
142
+ - lib/selenium/devtools/v112/background_service.rb
143
+ - lib/selenium/devtools/v112/browser.rb
144
+ - lib/selenium/devtools/v112/cache_storage.rb
145
+ - lib/selenium/devtools/v112/cast.rb
146
+ - lib/selenium/devtools/v112/console.rb
147
+ - lib/selenium/devtools/v112/css.rb
148
+ - lib/selenium/devtools/v112/database.rb
149
+ - lib/selenium/devtools/v112/debugger.rb
150
+ - lib/selenium/devtools/v112/device_access.rb
151
+ - lib/selenium/devtools/v112/device_orientation.rb
152
+ - lib/selenium/devtools/v112/dom.rb
153
+ - lib/selenium/devtools/v112/dom_debugger.rb
154
+ - lib/selenium/devtools/v112/dom_snapshot.rb
155
+ - lib/selenium/devtools/v112/dom_storage.rb
156
+ - lib/selenium/devtools/v112/emulation.rb
157
+ - lib/selenium/devtools/v112/event_breakpoints.rb
158
+ - lib/selenium/devtools/v112/fetch.rb
159
+ - lib/selenium/devtools/v112/headless_experimental.rb
160
+ - lib/selenium/devtools/v112/heap_profiler.rb
161
+ - lib/selenium/devtools/v112/indexed_db.rb
162
+ - lib/selenium/devtools/v112/input.rb
163
+ - lib/selenium/devtools/v112/inspector.rb
164
+ - lib/selenium/devtools/v112/io.rb
165
+ - lib/selenium/devtools/v112/layer_tree.rb
166
+ - lib/selenium/devtools/v112/log.rb
167
+ - lib/selenium/devtools/v112/media.rb
168
+ - lib/selenium/devtools/v112/memory.rb
169
+ - lib/selenium/devtools/v112/network.rb
170
+ - lib/selenium/devtools/v112/overlay.rb
171
+ - lib/selenium/devtools/v112/page.rb
172
+ - lib/selenium/devtools/v112/performance.rb
173
+ - lib/selenium/devtools/v112/performance_timeline.rb
174
+ - lib/selenium/devtools/v112/preload.rb
175
+ - lib/selenium/devtools/v112/profiler.rb
176
+ - lib/selenium/devtools/v112/runtime.rb
177
+ - lib/selenium/devtools/v112/schema.rb
178
+ - lib/selenium/devtools/v112/security.rb
179
+ - lib/selenium/devtools/v112/service_worker.rb
180
+ - lib/selenium/devtools/v112/storage.rb
181
+ - lib/selenium/devtools/v112/system_info.rb
182
+ - lib/selenium/devtools/v112/target.rb
183
+ - lib/selenium/devtools/v112/tethering.rb
184
+ - lib/selenium/devtools/v112/tracing.rb
185
+ - lib/selenium/devtools/v112/web_audio.rb
186
+ - lib/selenium/devtools/v112/web_authn.rb
185
187
  - lib/selenium/devtools/v85.rb
186
188
  - lib/selenium/devtools/v85/accessibility.rb
187
189
  - lib/selenium/devtools/v85/animation.rb
@@ -1 +0,0 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v109/*", &method(:require))