selenium-devtools 0.111.0 → 0.113.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/v111.rb +77 -1
  3. data/lib/selenium/devtools/{v110 → v112}/accessibility.rb +2 -2
  4. data/lib/selenium/devtools/{v110 → v112}/animation.rb +2 -2
  5. data/lib/selenium/devtools/{v110 → v112}/audits.rb +2 -2
  6. data/lib/selenium/devtools/{v109 → v112}/background_service.rb +2 -2
  7. data/lib/selenium/devtools/{v109 → v112}/browser.rb +2 -2
  8. data/lib/selenium/devtools/{v110 → v112}/cache_storage.rb +2 -2
  9. data/lib/selenium/devtools/{v109 → v112}/cast.rb +2 -2
  10. data/lib/selenium/devtools/{v110 → v112}/console.rb +2 -2
  11. data/lib/selenium/devtools/{v109 → v112}/css.rb +2 -2
  12. data/lib/selenium/devtools/{v110 → v112}/database.rb +2 -2
  13. data/lib/selenium/devtools/{v110 → v112}/debugger.rb +2 -2
  14. data/lib/selenium/devtools/v112/device_access.rb +60 -0
  15. data/lib/selenium/devtools/{v109 → v112}/device_orientation.rb +2 -2
  16. data/lib/selenium/devtools/{v110 → v112}/dom.rb +2 -2
  17. data/lib/selenium/devtools/{v110 → v112}/dom_debugger.rb +2 -2
  18. data/lib/selenium/devtools/{v110 → v112}/dom_snapshot.rb +2 -2
  19. data/lib/selenium/devtools/{v109 → v112}/dom_storage.rb +2 -2
  20. data/lib/selenium/devtools/{v110 → v112}/emulation.rb +2 -2
  21. data/lib/selenium/devtools/{v110 → v112}/event_breakpoints.rb +2 -2
  22. data/lib/selenium/devtools/{v109 → v112}/fetch.rb +2 -2
  23. data/lib/selenium/devtools/{v109 → v112}/headless_experimental.rb +2 -2
  24. data/lib/selenium/devtools/{v110 → v112}/heap_profiler.rb +2 -2
  25. data/lib/selenium/devtools/{v109 → v112}/indexed_db.rb +2 -2
  26. data/lib/selenium/devtools/{v110 → v112}/input.rb +2 -2
  27. data/lib/selenium/devtools/{v110 → v112}/inspector.rb +2 -2
  28. data/lib/selenium/devtools/{v109 → v112}/io.rb +2 -2
  29. data/lib/selenium/devtools/{v110 → v112}/layer_tree.rb +2 -2
  30. data/lib/selenium/devtools/{v110 → v112}/log.rb +2 -2
  31. data/lib/selenium/devtools/{v110 → v112}/media.rb +2 -2
  32. data/lib/selenium/devtools/{v110 → v112}/memory.rb +2 -2
  33. data/lib/selenium/devtools/{v110 → v112}/network.rb +2 -2
  34. data/lib/selenium/devtools/{v109 → v112}/overlay.rb +2 -2
  35. data/lib/selenium/devtools/{v110 → v112}/page.rb +9 -2
  36. data/lib/selenium/devtools/{v109 → v112}/performance.rb +2 -2
  37. data/lib/selenium/devtools/{v110 → v112}/performance_timeline.rb +2 -2
  38. data/lib/selenium/devtools/v112/preload.rb +50 -0
  39. data/lib/selenium/devtools/{v110 → v112}/profiler.rb +2 -2
  40. data/lib/selenium/devtools/{v110 → v112}/runtime.rb +4 -3
  41. data/lib/selenium/devtools/{v110 → v112}/schema.rb +2 -2
  42. data/lib/selenium/devtools/{v109 → v112}/security.rb +2 -2
  43. data/lib/selenium/devtools/{v109 → v112}/service_worker.rb +2 -2
  44. data/lib/selenium/devtools/{v110 → v112}/storage.rb +7 -2
  45. data/lib/selenium/devtools/{v110 → v112}/system_info.rb +2 -2
  46. data/lib/selenium/devtools/{v110 → v112}/target.rb +5 -4
  47. data/lib/selenium/devtools/{v109 → v112}/tethering.rb +2 -2
  48. data/lib/selenium/devtools/{v109 → v112}/tracing.rb +2 -2
  49. data/lib/selenium/devtools/{v109 → v112}/web_audio.rb +2 -2
  50. data/lib/selenium/devtools/{v110 → v112}/web_authn.rb +2 -2
  51. data/lib/selenium/devtools/v112.rb +79 -0
  52. data/lib/selenium/devtools/{v109 → v113}/accessibility.rb +2 -2
  53. data/lib/selenium/devtools/{v109 → v113}/animation.rb +2 -2
  54. data/lib/selenium/devtools/{v109 → v113}/audits.rb +2 -2
  55. data/lib/selenium/devtools/{v110 → v113}/background_service.rb +2 -2
  56. data/lib/selenium/devtools/{v110 → v113}/browser.rb +2 -2
  57. data/lib/selenium/devtools/{v109 → v113}/cache_storage.rb +5 -4
  58. data/lib/selenium/devtools/{v110 → v113}/cast.rb +2 -2
  59. data/lib/selenium/devtools/{v109 → v113}/console.rb +2 -2
  60. data/lib/selenium/devtools/{v110 → v113}/css.rb +2 -2
  61. data/lib/selenium/devtools/{v109 → v113}/database.rb +2 -2
  62. data/lib/selenium/devtools/{v109 → v113}/debugger.rb +2 -2
  63. data/lib/selenium/devtools/v113/device_access.rb +60 -0
  64. data/lib/selenium/devtools/{v110 → v113}/device_orientation.rb +2 -2
  65. data/lib/selenium/devtools/{v109 → v113}/dom.rb +2 -2
  66. data/lib/selenium/devtools/{v109 → v113}/dom_debugger.rb +2 -2
  67. data/lib/selenium/devtools/{v109 → v113}/dom_snapshot.rb +2 -2
  68. data/lib/selenium/devtools/{v110 → v113}/dom_storage.rb +2 -2
  69. data/lib/selenium/devtools/{v109 → v113}/emulation.rb +2 -2
  70. data/lib/selenium/devtools/{v109 → v113}/event_breakpoints.rb +2 -2
  71. data/lib/selenium/devtools/v113/fed_cm.rb +66 -0
  72. data/lib/selenium/devtools/{v110 → v113}/fetch.rb +2 -2
  73. data/lib/selenium/devtools/{v110 → v113}/headless_experimental.rb +2 -2
  74. data/lib/selenium/devtools/{v109 → v113}/heap_profiler.rb +2 -2
  75. data/lib/selenium/devtools/{v110 → v113}/indexed_db.rb +2 -2
  76. data/lib/selenium/devtools/{v109 → v113}/input.rb +2 -2
  77. data/lib/selenium/devtools/{v109 → v113}/inspector.rb +2 -2
  78. data/lib/selenium/devtools/{v110 → v113}/io.rb +2 -2
  79. data/lib/selenium/devtools/{v109 → v113}/layer_tree.rb +2 -2
  80. data/lib/selenium/devtools/{v109 → v113}/log.rb +2 -2
  81. data/lib/selenium/devtools/{v109 → v113}/media.rb +2 -2
  82. data/lib/selenium/devtools/{v109 → v113}/memory.rb +2 -2
  83. data/lib/selenium/devtools/{v109 → v113}/network.rb +2 -2
  84. data/lib/selenium/devtools/{v110 → v113}/overlay.rb +2 -2
  85. data/lib/selenium/devtools/{v109 → v113}/page.rb +7 -3
  86. data/lib/selenium/devtools/{v110 → v113}/performance.rb +2 -2
  87. data/lib/selenium/devtools/{v109 → v113}/performance_timeline.rb +2 -2
  88. data/lib/selenium/devtools/v113/preload.rb +54 -0
  89. data/lib/selenium/devtools/{v109 → v113}/profiler.rb +2 -2
  90. data/lib/selenium/devtools/{v109 → v113}/runtime.rb +4 -3
  91. data/lib/selenium/devtools/{v109 → v113}/schema.rb +2 -2
  92. data/lib/selenium/devtools/{v110 → v113}/security.rb +2 -2
  93. data/lib/selenium/devtools/{v110 → v113}/service_worker.rb +2 -2
  94. data/lib/selenium/devtools/{v109 → v113}/storage.rb +31 -2
  95. data/lib/selenium/devtools/{v109 → v113}/system_info.rb +7 -2
  96. data/lib/selenium/devtools/{v109 → v113}/target.rb +5 -4
  97. data/lib/selenium/devtools/{v110 → v113}/tethering.rb +2 -2
  98. data/lib/selenium/devtools/{v110 → v113}/tracing.rb +2 -2
  99. data/lib/selenium/devtools/{v110 → v113}/web_audio.rb +2 -2
  100. data/lib/selenium/devtools/{v109 → v113}/web_authn.rb +6 -2
  101. data/lib/selenium/devtools/v113.rb +80 -0
  102. data/lib/selenium/devtools/v85.rb +76 -1
  103. data/lib/selenium/devtools/version.rb +1 -1
  104. data/lib/selenium/devtools.rb +18 -0
  105. data/selenium-devtools.gemspec +1 -1
  106. metadata +106 -101
  107. data/lib/selenium/devtools/v109.rb +0 -1
  108. 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 V109
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 # V109
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 V109
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 # V109
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 V110
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 # V110
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 V109
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 # V109
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 V109
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 # V109
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 V109
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 # V109
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 V110
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 # V110
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 V109
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 # V109
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 V109
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 # V109
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 V110
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 # V110
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 V110
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 # V110
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 V109
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 # V109
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 V110
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 # V110
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 V109
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 # V109
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 V109
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 # V109
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 V110
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 # V110
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 V109
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 # V109
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 V109
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 # V109
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 V109
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 # V109
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 V109
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 # V109
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 V109
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 # V109
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 V110
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 # V110
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 V109
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 # V109
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 V110
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 # V110
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 V109
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 # V109
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 V109
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 # V109
81
+ end # V113
82
82
  end # DevTools
83
83
  end # Selenium