selenium-devtools 0.112.0 → 0.113.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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/v111.rb +77 -1
  3. data/lib/selenium/devtools/v112.rb +79 -1
  4. data/lib/selenium/devtools/{v110 → v113}/accessibility.rb +2 -2
  5. data/lib/selenium/devtools/{v110 → v113}/animation.rb +2 -2
  6. data/lib/selenium/devtools/{v110 → 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/{v110 → v113}/cache_storage.rb +2 -2
  10. data/lib/selenium/devtools/{v110 → v113}/cast.rb +2 -2
  11. data/lib/selenium/devtools/{v110 → v113}/console.rb +2 -2
  12. data/lib/selenium/devtools/{v110 → v113}/css.rb +2 -2
  13. data/lib/selenium/devtools/{v110 → v113}/database.rb +2 -2
  14. data/lib/selenium/devtools/{v110 → 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/{v110 → v113}/dom.rb +2 -2
  18. data/lib/selenium/devtools/{v110 → v113}/dom_debugger.rb +2 -2
  19. data/lib/selenium/devtools/{v110 → v113}/dom_snapshot.rb +2 -2
  20. data/lib/selenium/devtools/{v110 → v113}/dom_storage.rb +2 -2
  21. data/lib/selenium/devtools/{v110 → v113}/emulation.rb +2 -2
  22. data/lib/selenium/devtools/{v110 → 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/{v110 → v113}/heap_profiler.rb +2 -2
  27. data/lib/selenium/devtools/{v110 → v113}/indexed_db.rb +2 -2
  28. data/lib/selenium/devtools/{v110 → v113}/input.rb +2 -2
  29. data/lib/selenium/devtools/{v110 → v113}/inspector.rb +2 -2
  30. data/lib/selenium/devtools/{v110 → v113}/io.rb +2 -2
  31. data/lib/selenium/devtools/{v110 → v113}/layer_tree.rb +2 -2
  32. data/lib/selenium/devtools/{v110 → v113}/log.rb +2 -2
  33. data/lib/selenium/devtools/{v110 → v113}/media.rb +2 -2
  34. data/lib/selenium/devtools/{v110 → v113}/memory.rb +2 -2
  35. data/lib/selenium/devtools/{v110 → 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/{v110 → v113}/performance_timeline.rb +2 -2
  40. data/lib/selenium/devtools/v113/preload.rb +54 -0
  41. data/lib/selenium/devtools/{v110 → v113}/profiler.rb +2 -2
  42. data/lib/selenium/devtools/{v110 → v113}/runtime.rb +4 -3
  43. data/lib/selenium/devtools/{v110 → 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/{v110 → v113}/storage.rb +21 -2
  47. data/lib/selenium/devtools/{v110 → v113}/system_info.rb +2 -2
  48. data/lib/selenium/devtools/{v110 → v113}/target.rb +5 -4
  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/v85.rb +76 -1
  55. data/lib/selenium/devtools/version.rb +1 -1
  56. data/selenium-devtools.gemspec +1 -1
  57. metadata +57 -54
  58. data/lib/selenium/devtools/v110.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: 5b67222f8351ce9a4651b398157adb699ebe2b3b11ee4c842b5340c3c7394bbf
4
+ data.tar.gz: 6026be44439f142bf2a6472be965daf9057ac47c0fb03b27729003b8618499a0
5
5
  SHA512:
6
- metadata.gz: b3d1e2b3dde732ecfa8b353341240423e685d5a52f4f5510f725585b02cb935756bff208b6e579eb2b7115483835e6af5d4def69a48f4797ae9e4f762ad90469
7
- data.tar.gz: 89650bbb03de67a95b291d2bd313a244e04b8c81435383fb3a23c9b4ff5d75db913f775f48d887cf41e8a256eb2206bdf615885c1db600362cfdb7d4a423c095
6
+ metadata.gz: d7e4ca1e610888167c38fca8942aee203d0e95a0e3e5dfe3e84ef9fb26a842ada7d568a6470d20a41ebd0dc0afdfce50e273576dc612439a0ba606e5d414a921
7
+ data.tar.gz: 7356f19f564b9821511b4685d7733b08c130554c38c33349376a829c562b58b22bb9a3c24ea73154911f4973c793f88f846e1e4e7dfd9267ab040ebfa327d4e5
@@ -1 +1,77 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v111/*", &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__))}/v111/*", &method(:require))
23
+
24
+ module Selenium
25
+ module DevTools
26
+ module V111
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
+ console: 'Console',
69
+ debugger: 'Debugger',
70
+ heap_profiler: 'HeapProfiler',
71
+ profiler: 'Profiler',
72
+ runtime: 'Runtime',
73
+ schema: 'Schema',
74
+ }.freeze
75
+ end # V111
76
+ end # DevTools
77
+ end # Selenium
@@ -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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # 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 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 V110
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 # V110
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 V110
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 # V110
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 V110
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 # V110
107
+ end # V113
108
108
  end # DevTools
109
109
  end # Selenium