selenium-devtools 0.112.0 → 0.114.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/lib/selenium/devtools/v112.rb +79 -1
  4. data/lib/selenium/devtools/{v111 → v113}/accessibility.rb +2 -2
  5. data/lib/selenium/devtools/{v111 → v113}/animation.rb +2 -2
  6. data/lib/selenium/devtools/{v111 → v113}/audits.rb +2 -2
  7. data/lib/selenium/devtools/{v110 → v113}/background_service.rb +2 -2
  8. data/lib/selenium/devtools/{v110 → v113}/browser.rb +2 -2
  9. data/lib/selenium/devtools/{v111 → v113}/cache_storage.rb +2 -2
  10. data/lib/selenium/devtools/{v110 → v113}/cast.rb +2 -2
  11. data/lib/selenium/devtools/{v111 → v113}/console.rb +2 -2
  12. data/lib/selenium/devtools/{v110 → v113}/css.rb +2 -2
  13. data/lib/selenium/devtools/{v111 → v113}/database.rb +2 -2
  14. data/lib/selenium/devtools/{v111 → v113}/debugger.rb +2 -2
  15. data/lib/selenium/devtools/v113/device_access.rb +60 -0
  16. data/lib/selenium/devtools/{v110 → v113}/device_orientation.rb +2 -2
  17. data/lib/selenium/devtools/{v111 → v113}/dom.rb +2 -2
  18. data/lib/selenium/devtools/{v111 → v113}/dom_debugger.rb +2 -2
  19. data/lib/selenium/devtools/{v111 → v113}/dom_snapshot.rb +2 -2
  20. data/lib/selenium/devtools/{v110 → v113}/dom_storage.rb +2 -2
  21. data/lib/selenium/devtools/{v111 → v113}/emulation.rb +2 -2
  22. data/lib/selenium/devtools/{v111 → v113}/event_breakpoints.rb +2 -2
  23. data/lib/selenium/devtools/v113/fed_cm.rb +66 -0
  24. data/lib/selenium/devtools/{v110 → v113}/fetch.rb +2 -2
  25. data/lib/selenium/devtools/{v110 → v113}/headless_experimental.rb +2 -2
  26. data/lib/selenium/devtools/{v111 → v113}/heap_profiler.rb +2 -2
  27. data/lib/selenium/devtools/{v110 → v113}/indexed_db.rb +2 -2
  28. data/lib/selenium/devtools/{v111 → v113}/input.rb +2 -2
  29. data/lib/selenium/devtools/{v111 → v113}/inspector.rb +2 -2
  30. data/lib/selenium/devtools/{v110 → v113}/io.rb +2 -2
  31. data/lib/selenium/devtools/{v111 → v113}/layer_tree.rb +2 -2
  32. data/lib/selenium/devtools/{v111 → v113}/log.rb +2 -2
  33. data/lib/selenium/devtools/{v111 → v113}/media.rb +2 -2
  34. data/lib/selenium/devtools/{v111 → v113}/memory.rb +2 -2
  35. data/lib/selenium/devtools/{v111 → v113}/network.rb +2 -2
  36. data/lib/selenium/devtools/{v110 → v113}/overlay.rb +2 -2
  37. data/lib/selenium/devtools/{v110 → v113}/page.rb +7 -3
  38. data/lib/selenium/devtools/{v110 → v113}/performance.rb +2 -2
  39. data/lib/selenium/devtools/{v111 → v113}/performance_timeline.rb +2 -2
  40. data/lib/selenium/devtools/v113/preload.rb +54 -0
  41. data/lib/selenium/devtools/{v111 → v113}/profiler.rb +2 -2
  42. data/lib/selenium/devtools/{v111 → v113}/runtime.rb +2 -2
  43. data/lib/selenium/devtools/{v111 → v113}/schema.rb +2 -2
  44. data/lib/selenium/devtools/{v110 → v113}/security.rb +2 -2
  45. data/lib/selenium/devtools/{v110 → v113}/service_worker.rb +2 -2
  46. data/lib/selenium/devtools/{v111 → v113}/storage.rb +16 -2
  47. data/lib/selenium/devtools/{v110 → v113}/system_info.rb +2 -2
  48. data/lib/selenium/devtools/{v111 → v113}/target.rb +2 -2
  49. data/lib/selenium/devtools/{v110 → v113}/tethering.rb +2 -2
  50. data/lib/selenium/devtools/{v110 → v113}/tracing.rb +2 -2
  51. data/lib/selenium/devtools/{v110 → v113}/web_audio.rb +2 -2
  52. data/lib/selenium/devtools/{v110 → v113}/web_authn.rb +2 -2
  53. data/lib/selenium/devtools/v113.rb +80 -0
  54. data/lib/selenium/devtools/{v110 → v114}/accessibility.rb +2 -2
  55. data/lib/selenium/devtools/{v110 → v114}/animation.rb +2 -2
  56. data/lib/selenium/devtools/{v110 → v114}/audits.rb +2 -2
  57. data/lib/selenium/devtools/{v111 → v114}/background_service.rb +2 -2
  58. data/lib/selenium/devtools/{v111 → v114}/browser.rb +2 -2
  59. data/lib/selenium/devtools/{v110 → v114}/cache_storage.rb +2 -2
  60. data/lib/selenium/devtools/{v111 → v114}/cast.rb +2 -2
  61. data/lib/selenium/devtools/{v110 → v114}/console.rb +2 -2
  62. data/lib/selenium/devtools/{v111 → v114}/css.rb +2 -2
  63. data/lib/selenium/devtools/{v110 → v114}/database.rb +2 -2
  64. data/lib/selenium/devtools/{v110 → v114}/debugger.rb +2 -2
  65. data/lib/selenium/devtools/v114/device_access.rb +60 -0
  66. data/lib/selenium/devtools/{v111 → v114}/device_orientation.rb +2 -2
  67. data/lib/selenium/devtools/{v110 → v114}/dom.rb +2 -2
  68. data/lib/selenium/devtools/{v110 → v114}/dom_debugger.rb +2 -2
  69. data/lib/selenium/devtools/{v110 → v114}/dom_snapshot.rb +2 -2
  70. data/lib/selenium/devtools/{v111 → v114}/dom_storage.rb +2 -2
  71. data/lib/selenium/devtools/{v110 → v114}/emulation.rb +2 -2
  72. data/lib/selenium/devtools/{v110 → v114}/event_breakpoints.rb +2 -2
  73. data/lib/selenium/devtools/v114/fed_cm.rb +66 -0
  74. data/lib/selenium/devtools/{v111 → v114}/fetch.rb +2 -2
  75. data/lib/selenium/devtools/{v111 → v114}/headless_experimental.rb +2 -2
  76. data/lib/selenium/devtools/{v110 → v114}/heap_profiler.rb +2 -2
  77. data/lib/selenium/devtools/{v111 → v114}/indexed_db.rb +2 -2
  78. data/lib/selenium/devtools/{v110 → v114}/input.rb +2 -2
  79. data/lib/selenium/devtools/{v110 → v114}/inspector.rb +2 -2
  80. data/lib/selenium/devtools/{v111 → v114}/io.rb +2 -2
  81. data/lib/selenium/devtools/{v110 → v114}/layer_tree.rb +2 -2
  82. data/lib/selenium/devtools/{v110 → v114}/log.rb +2 -2
  83. data/lib/selenium/devtools/{v110 → v114}/media.rb +2 -2
  84. data/lib/selenium/devtools/{v110 → v114}/memory.rb +2 -2
  85. data/lib/selenium/devtools/{v110 → v114}/network.rb +2 -2
  86. data/lib/selenium/devtools/{v111 → v114}/overlay.rb +2 -2
  87. data/lib/selenium/devtools/{v111 → v114}/page.rb +7 -3
  88. data/lib/selenium/devtools/{v111 → v114}/performance.rb +2 -2
  89. data/lib/selenium/devtools/{v110 → v114}/performance_timeline.rb +2 -2
  90. data/lib/selenium/devtools/v114/preload.rb +55 -0
  91. data/lib/selenium/devtools/{v110 → v114}/profiler.rb +2 -2
  92. data/lib/selenium/devtools/{v110 → v114}/runtime.rb +4 -3
  93. data/lib/selenium/devtools/{v110 → v114}/schema.rb +2 -2
  94. data/lib/selenium/devtools/{v111 → v114}/security.rb +2 -2
  95. data/lib/selenium/devtools/{v111 → v114}/service_worker.rb +2 -2
  96. data/lib/selenium/devtools/{v110 → v114}/storage.rb +25 -2
  97. data/lib/selenium/devtools/{v111 → v114}/system_info.rb +2 -2
  98. data/lib/selenium/devtools/{v110 → v114}/target.rb +5 -4
  99. data/lib/selenium/devtools/{v111 → v114}/tethering.rb +2 -2
  100. data/lib/selenium/devtools/{v111 → v114}/tracing.rb +2 -2
  101. data/lib/selenium/devtools/{v111 → v114}/web_audio.rb +2 -2
  102. data/lib/selenium/devtools/{v111 → v114}/web_authn.rb +2 -2
  103. data/lib/selenium/devtools/v114.rb +80 -0
  104. data/lib/selenium/devtools/v85.rb +76 -1
  105. data/lib/selenium/devtools/version.rb +1 -1
  106. data/lib/selenium/devtools.rb +10 -3
  107. data/selenium-devtools.gemspec +1 -1
  108. metadata +107 -101
  109. data/lib/selenium/devtools/v110.rb +0 -1
  110. data/lib/selenium/devtools/v111.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fd3a5246fd4d570440e2fb0a9b4536954b73cd80e4a1c3e007c4bc580000988
4
- data.tar.gz: 1694475a054bb705b0e77b64eaa7d98c03ace272b9a602fee5456b8efe0f2e04
3
+ metadata.gz: 3122a63206e52ea9f147ffcf4f47ce8349ddd90b027652ed17d25a17e9c740f8
4
+ data.tar.gz: 06cb3b7557f235d88aa823f7f5a85da1735902b9342e66cd808f281e69da7f1b
5
5
  SHA512:
6
- metadata.gz: b3d1e2b3dde732ecfa8b353341240423e685d5a52f4f5510f725585b02cb935756bff208b6e579eb2b7115483835e6af5d4def69a48f4797ae9e4f762ad90469
7
- data.tar.gz: 89650bbb03de67a95b291d2bd313a244e04b8c81435383fb3a23c9b4ff5d75db913f775f48d887cf41e8a256eb2206bdf615885c1db600362cfdb7d4a423c095
6
+ metadata.gz: e734f7eabc1fb6b467cb384d2bbb96e24db96392cc671e65511b744ff476a691a8fb7de1343ae8c4c0ac4d7ae26c7c8ac605845b13b07f01376505067f3ea97e
7
+ data.tar.gz: 5fed23a9c830c6243fd76d8a736c8e31557eacbc396666d44ae49ce1c94ea50209dc2626698463dc77a88c134e1a487b06dbe94616c1df1259427830cfa8ed4b
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ source 'https://rubygems.org'
4
4
  Dir["#{__dir__}/*.gemspec"].each do |spec|
5
5
  gemspec name: File.basename(spec, '.gemspec')
6
6
  end
7
+
8
+ gem 'debug', '~> 1.7', require: false, platforms: %i[mri mingw x64_mingw]
@@ -1 +1,79 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v112/*", &method(:require))
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
+
22
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v112/*", &method(:require))
23
+
24
+ module Selenium
25
+ module DevTools
26
+ module V112
27
+ METHODS_TO_CLASSES = {
28
+ accessibility: 'Accessibility',
29
+ animation: 'Animation',
30
+ audits: 'Audits',
31
+ background_service: 'BackgroundService',
32
+ browser: 'Browser',
33
+ css: 'CSS',
34
+ cache_storage: 'CacheStorage',
35
+ cast: 'Cast',
36
+ dom: 'DOM',
37
+ dom_debugger: 'DOMDebugger',
38
+ event_breakpoints: 'EventBreakpoints',
39
+ dom_snapshot: 'DOMSnapshot',
40
+ dom_storage: 'DOMStorage',
41
+ database: 'Database',
42
+ device_orientation: 'DeviceOrientation',
43
+ emulation: 'Emulation',
44
+ headless_experimental: 'HeadlessExperimental',
45
+ io: 'IO',
46
+ indexed_db: 'IndexedDB',
47
+ input: 'Input',
48
+ inspector: 'Inspector',
49
+ layer_tree: 'LayerTree',
50
+ log: 'Log',
51
+ memory: 'Memory',
52
+ network: 'Network',
53
+ overlay: 'Overlay',
54
+ page: 'Page',
55
+ performance: 'Performance',
56
+ performance_timeline: 'PerformanceTimeline',
57
+ security: 'Security',
58
+ service_worker: 'ServiceWorker',
59
+ storage: 'Storage',
60
+ system_info: 'SystemInfo',
61
+ target: 'Target',
62
+ tethering: 'Tethering',
63
+ tracing: 'Tracing',
64
+ fetch: 'Fetch',
65
+ web_audio: 'WebAudio',
66
+ web_authn: 'WebAuthn',
67
+ media: 'Media',
68
+ device_access: 'DeviceAccess',
69
+ preload: 'Preload',
70
+ console: 'Console',
71
+ debugger: 'Debugger',
72
+ heap_profiler: 'HeapProfiler',
73
+ profiler: 'Profiler',
74
+ runtime: 'Runtime',
75
+ schema: 'Schema',
76
+ }.freeze
77
+ end # V112
78
+ end # DevTools
79
+ 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 V111
23
+ module V113
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 # V111
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 V111
23
+ module V113
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 # V111
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 V111
23
+ module V113
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 # V111
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 V110
23
+ module V113
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 # V110
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 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 # V110
133
+ end # V113
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 V111
23
+ module V113
24
24
  class CacheStorage
25
25
 
26
26
  def initialize(devtools)
@@ -65,6 +65,6 @@ module Selenium
65
65
  end
66
66
 
67
67
  end # CacheStorage
68
- end # V111
68
+ end # V113
69
69
  end # DevTools
70
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 V110
23
+ module V113
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 # V110
69
+ end # V113
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 V111
23
+ module V113
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 # V111
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 V110
23
+ module V113
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 # V110
199
+ end # V113
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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 V111
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 # V111
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