selenium-devtools 0.97.0 → 0.98.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/README.md +9 -2
  3. data/lib/selenium/devtools/{v95 → v98}/accessibility.rb +18 -2
  4. data/lib/selenium/devtools/{v95 → v98}/animation.rb +2 -2
  5. data/lib/selenium/devtools/{v95 → v98}/audits.rb +2 -2
  6. data/lib/selenium/devtools/{v95 → v98}/background_service.rb +2 -2
  7. data/lib/selenium/devtools/{v95 → v98}/browser.rb +2 -2
  8. data/lib/selenium/devtools/{v95 → v98}/cache_storage.rb +2 -2
  9. data/lib/selenium/devtools/{v95 → v98}/cast.rb +7 -2
  10. data/lib/selenium/devtools/{v95 → v98}/console.rb +2 -2
  11. data/lib/selenium/devtools/{v95 → v98}/css.rb +2 -2
  12. data/lib/selenium/devtools/{v95 → v98}/database.rb +2 -2
  13. data/lib/selenium/devtools/{v95 → v98}/debugger.rb +2 -2
  14. data/lib/selenium/devtools/{v95 → v98}/device_orientation.rb +2 -2
  15. data/lib/selenium/devtools/{v95 → v98}/dom.rb +2 -2
  16. data/lib/selenium/devtools/{v95 → v98}/dom_debugger.rb +2 -2
  17. data/lib/selenium/devtools/{v95 → v98}/dom_snapshot.rb +2 -2
  18. data/lib/selenium/devtools/{v95 → v98}/dom_storage.rb +2 -2
  19. data/lib/selenium/devtools/{v95 → v98}/emulation.rb +2 -2
  20. data/lib/selenium/devtools/v98/event_breakpoints.rb +48 -0
  21. data/lib/selenium/devtools/{v95 → v98}/fetch.rb +2 -2
  22. data/lib/selenium/devtools/{v95 → v98}/headless_experimental.rb +2 -2
  23. data/lib/selenium/devtools/{v95 → v98}/heap_profiler.rb +2 -2
  24. data/lib/selenium/devtools/{v95 → v98}/indexed_db.rb +2 -2
  25. data/lib/selenium/devtools/{v95 → v98}/input.rb +2 -2
  26. data/lib/selenium/devtools/{v95 → v98}/inspector.rb +2 -2
  27. data/lib/selenium/devtools/{v95 → v98}/io.rb +2 -2
  28. data/lib/selenium/devtools/{v95 → v98}/layer_tree.rb +2 -2
  29. data/lib/selenium/devtools/{v95 → v98}/log.rb +2 -2
  30. data/lib/selenium/devtools/{v95 → v98}/media.rb +2 -2
  31. data/lib/selenium/devtools/{v95 → v98}/memory.rb +2 -2
  32. data/lib/selenium/devtools/{v95 → v98}/network.rb +6 -4
  33. data/lib/selenium/devtools/{v95 → v98}/overlay.rb +7 -2
  34. data/lib/selenium/devtools/{v95 → v98}/page.rb +7 -7
  35. data/lib/selenium/devtools/{v95 → v98}/performance.rb +2 -2
  36. data/lib/selenium/devtools/{v95 → v98}/performance_timeline.rb +2 -2
  37. data/lib/selenium/devtools/{v95 → v98}/profiler.rb +2 -2
  38. data/lib/selenium/devtools/{v95 → v98}/runtime.rb +2 -2
  39. data/lib/selenium/devtools/{v95 → v98}/schema.rb +2 -2
  40. data/lib/selenium/devtools/{v95 → v98}/security.rb +2 -2
  41. data/lib/selenium/devtools/{v95 → v98}/service_worker.rb +2 -2
  42. data/lib/selenium/devtools/{v95 → v98}/storage.rb +2 -2
  43. data/lib/selenium/devtools/{v95 → v98}/system_info.rb +2 -2
  44. data/lib/selenium/devtools/{v95 → v98}/target.rb +5 -4
  45. data/lib/selenium/devtools/{v95 → v98}/tethering.rb +2 -2
  46. data/lib/selenium/devtools/{v95 → v98}/tracing.rb +2 -2
  47. data/lib/selenium/devtools/{v95 → v98}/web_audio.rb +2 -2
  48. data/lib/selenium/devtools/{v95 → v98}/web_authn.rb +2 -2
  49. data/lib/selenium/devtools/v98.rb +1 -0
  50. data/lib/selenium/devtools/version.rb +1 -1
  51. metadata +49 -49
  52. data/lib/selenium/devtools/v95/application_cache.rb +0 -60
  53. data/lib/selenium/devtools/v95.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2462bdbd80456ba690d6266f717366db8b1b3864f18488e32c1e44eb713d52d
4
- data.tar.gz: 974b71a57390c71708b8d5c8e2fc4c3225c03fbd1707d2fc6b93e06b31c0dcdc
3
+ metadata.gz: 848a85d29602f7654d1383fa0d6b0714762c369a73152220b149ce1095d85eea
4
+ data.tar.gz: 56f4ae41850460db1199540170ccd3921557a402847687121f2adaca7648a6f5
5
5
  SHA512:
6
- metadata.gz: e9525d30794d49cf6accd57088bb2f8ce71e2d2fe70770dbb20c7edb0eab0156838a57695ff66a5f06af71a96b34989ad9e6228e645acc7368920c7aeb6ae326
7
- data.tar.gz: ff178325610d8f096f991ed006fc26527bbe664f30e77ba1381fe059458220f35147aeade898ffa19441b50c4484988d1155526422bb22b95c94066eafbc1238
6
+ metadata.gz: b63733159c5472c4ffc343eb5879a805315b8af80355d40df13a4280683292c1c847b59d721de2334106f3e2cabc109cb5e2c134d150e415c3dd447e8a6efaf2
7
+ data.tar.gz: 8a42a8a2cd31b0052e4daaab8f72d19a0c01fcb4b95cd97de4cec864549221b0967170841681306800d580176f63a8ab51d789152ce9c35d4a0862e5dd878a70
@@ -1,7 +1,14 @@
1
1
  ### Adding support for new Chromium DevTools Protocol to the Ruby bindings
2
2
 
3
- * Add latest version number to //rb/BUILD.bazel
4
- * Update //rb/lib/selenium/devtools/version.rb with latest version number
3
+ * Add the latest version number to `/rb/BUILD.bazel`
4
+ * Update `/rb/lib/selenium/devtools/version.rb` with the latest version number
5
5
 
6
6
  ### Releasing selenium-devtools gem
7
7
 
8
+ ```shell
9
+ bazel build //rb:selenium-devtools
10
+ ```
11
+
12
+ ```shell
13
+ gem push bazel-bin/rb/selenium-devtools.gem
14
+ ```
@@ -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 V95
23
+ module V98
24
24
  class Accessibility
25
+ EVENTS = {
26
+ load_complete: 'loadComplete',
27
+ nodes_updated: 'nodesUpdated',
28
+ }.freeze
25
29
 
26
30
  def initialize(devtools)
27
31
  @devtools = devtools
@@ -55,6 +59,18 @@ module Selenium
55
59
  frameId: frame_id)
56
60
  end
57
61
 
62
+ def get_root_ax_node(frame_id: nil)
63
+ @devtools.send_cmd('Accessibility.getRootAXNode',
64
+ frameId: frame_id)
65
+ end
66
+
67
+ def get_ax_node_and_ancestors(node_id: nil, backend_node_id: nil, object_id: nil)
68
+ @devtools.send_cmd('Accessibility.getAXNodeAndAncestors',
69
+ nodeId: node_id,
70
+ backendNodeId: backend_node_id,
71
+ objectId: object_id)
72
+ end
73
+
58
74
  def get_child_ax_nodes(id:, frame_id: nil)
59
75
  @devtools.send_cmd('Accessibility.getChildAXNodes',
60
76
  id: id,
@@ -71,6 +87,6 @@ module Selenium
71
87
  end
72
88
 
73
89
  end # Accessibility
74
- end # V95
90
+ end # V98
75
91
  end # DevTools
76
92
  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 V95
23
+ module V98
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 # V95
92
+ end # V98
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 V95
23
+ module V98
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 # V95
60
+ end # V98
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 V95
23
+ module V98
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 # V95
61
+ end # V98
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 V95
23
+ module V98
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 # V95
133
+ end # V98
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 V95
23
+ module V98
24
24
  class CacheStorage
25
25
 
26
26
  def initialize(devtools)
@@ -64,6 +64,6 @@ module Selenium
64
64
  end
65
65
 
66
66
  end # CacheStorage
67
- end # V95
67
+ end # V98
68
68
  end # DevTools
69
69
  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 V95
23
+ module V98
24
24
  class Cast
25
25
  EVENTS = {
26
26
  sinks_updated: 'sinksUpdated',
@@ -50,6 +50,11 @@ module Selenium
50
50
  sinkName: sink_name)
51
51
  end
52
52
 
53
+ def start_desktop_mirroring(sink_name:)
54
+ @devtools.send_cmd('Cast.startDesktopMirroring',
55
+ sinkName: sink_name)
56
+ end
57
+
53
58
  def start_tab_mirroring(sink_name:)
54
59
  @devtools.send_cmd('Cast.startTabMirroring',
55
60
  sinkName: sink_name)
@@ -61,6 +66,6 @@ module Selenium
61
66
  end
62
67
 
63
68
  end # Cast
64
- end # V95
69
+ end # V98
65
70
  end # DevTools
66
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 V95
23
+ module V98
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 # V95
51
+ end # V98
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 V95
23
+ module V98
24
24
  class CSS
25
25
  EVENTS = {
26
26
  fonts_updated: 'fontsUpdated',
@@ -177,6 +177,6 @@ module Selenium
177
177
  end
178
178
 
179
179
  end # CSS
180
- end # V95
180
+ end # V98
181
181
  end # DevTools
182
182
  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 V95
23
+ module V98
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 # V95
58
+ end # V98
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 V95
23
+ module V98
24
24
  class Debugger
25
25
  EVENTS = {
26
26
  breakpoint_resolved: 'breakpointResolved',
@@ -215,6 +215,6 @@ module Selenium
215
215
  end
216
216
 
217
217
  end # Debugger
218
- end # V95
218
+ end # V98
219
219
  end # DevTools
220
220
  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 V95
23
+ module V98
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 # V95
47
+ end # V98
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 V95
23
+ module V98
24
24
  class DOM
25
25
  EVENTS = {
26
26
  attribute_modified: 'attributeModified',
@@ -329,6 +329,6 @@ module Selenium
329
329
  end
330
330
 
331
331
  end # DOM
332
- end # V95
332
+ end # V98
333
333
  end # DevTools
334
334
  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 V95
23
+ module V98
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 # V95
92
+ end # V98
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 V95
23
+ module V98
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 # V95
61
+ end # V98
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 V95
23
+ module V98
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 # V95
73
+ end # V98
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 V95
23
+ module V98
24
24
  class Emulation
25
25
  EVENTS = {
26
26
  virtual_time_budget_expired: 'virtualTimeBudgetExpired',
@@ -192,6 +192,6 @@ module Selenium
192
192
  end
193
193
 
194
194
  end # Emulation
195
- end # V95
195
+ end # V98
196
196
  end # DevTools
197
197
  end # Selenium
@@ -0,0 +1,48 @@
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 V98
24
+ class EventBreakpoints
25
+
26
+ def initialize(devtools)
27
+ @devtools = devtools
28
+ end
29
+
30
+ def on(event, &block)
31
+ event = EVENTS[event] if event.is_a?(Symbol)
32
+ @devtools.callbacks["EventBreakpoints.#{event}"] << block
33
+ end
34
+
35
+ def set_instrumentation_breakpoint(event_name:)
36
+ @devtools.send_cmd('EventBreakpoints.setInstrumentationBreakpoint',
37
+ eventName: event_name)
38
+ end
39
+
40
+ def remove_instrumentation_breakpoint(event_name:)
41
+ @devtools.send_cmd('EventBreakpoints.removeInstrumentationBreakpoint',
42
+ eventName: event_name)
43
+ end
44
+
45
+ end # EventBreakpoints
46
+ end # V98
47
+ end # DevTools
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 V95
23
+ module V98
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 # V95
101
+ end # V98
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 V95
23
+ module V98
24
24
  class HeadlessExperimental
25
25
  EVENTS = {
26
26
  needs_begin_frames_changed: 'needsBeginFramesChanged',
@@ -52,6 +52,6 @@ module Selenium
52
52
  end
53
53
 
54
54
  end # HeadlessExperimental
55
- end # V95
55
+ end # V98
56
56
  end # DevTools
57
57
  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 V95
23
+ module V98
24
24
  class HeapProfiler
25
25
  EVENTS = {
26
26
  add_heap_snapshot_chunk: 'addHeapSnapshotChunk',
@@ -100,6 +100,6 @@ module Selenium
100
100
  end
101
101
 
102
102
  end # HeapProfiler
103
- end # V95
103
+ end # V98
104
104
  end # DevTools
105
105
  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 V95
23
+ module V98
24
24
  class IndexedDB
25
25
 
26
26
  def initialize(devtools)
@@ -91,6 +91,6 @@ module Selenium
91
91
  end
92
92
 
93
93
  end # IndexedDB
94
- end # V95
94
+ end # V98
95
95
  end # DevTools
96
96
  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 V95
23
+ module V98
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 # V95
166
+ end # V98
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 V95
23
+ module V98
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 # V95
49
+ end # V98
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 V95
23
+ module V98
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 # V95
53
+ end # V98
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 V95
23
+ module V98
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 # V95
89
+ end # V98
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 V95
23
+ module V98
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 # V95
60
+ end # V98
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 V95
23
+ module V98
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 # V95
51
+ end # V98
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 V95
23
+ module V98
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 # V95
80
+ end # V98
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 V95
23
+ module V98
24
24
  class Network
25
25
  EVENTS = {
26
26
  data_received: 'dataReceived',
@@ -52,6 +52,7 @@ module Selenium
52
52
  subresource_web_bundle_inner_response_error: 'subresourceWebBundleInnerResponseError',
53
53
  reporting_api_report_added: 'reportingApiReportAdded',
54
54
  reporting_api_report_updated: 'reportingApiReportUpdated',
55
+ reporting_api_endpoints_changed_for_origin: 'reportingApiEndpointsChangedForOrigin',
55
56
  }.freeze
56
57
 
57
58
  def initialize(devtools)
@@ -194,7 +195,7 @@ module Selenium
194
195
  cacheDisabled: cache_disabled)
195
196
  end
196
197
 
197
- def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil, same_party: nil, source_scheme: nil, source_port: nil)
198
+ def set_cookie(name:, value:, url: nil, domain: nil, path: nil, secure: nil, http_only: nil, same_site: nil, expires: nil, priority: nil, same_party: nil, source_scheme: nil, source_port: nil, partition_key: nil)
198
199
  @devtools.send_cmd('Network.setCookie',
199
200
  name: name,
200
201
  value: value,
@@ -208,7 +209,8 @@ module Selenium
208
209
  priority: priority,
209
210
  sameParty: same_party,
210
211
  sourceScheme: source_scheme,
211
- sourcePort: source_port)
212
+ sourcePort: source_port,
213
+ partitionKey: partition_key)
212
214
  end
213
215
 
214
216
  def set_cookies(cookies:)
@@ -257,6 +259,6 @@ module Selenium
257
259
  end
258
260
 
259
261
  end # Network
260
- end # V95
262
+ end # V98
261
263
  end # DevTools
262
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 V95
23
+ module V98
24
24
  class Overlay
25
25
  EVENTS = {
26
26
  inspect_node_requested: 'inspectNodeRequested',
@@ -191,7 +191,12 @@ module Selenium
191
191
  hingeConfig: hinge_config)
192
192
  end
193
193
 
194
+ def set_show_isolated_elements(isolated_element_highlight_configs:)
195
+ @devtools.send_cmd('Overlay.setShowIsolatedElements',
196
+ isolatedElementHighlightConfigs: isolated_element_highlight_configs)
197
+ end
198
+
194
199
  end # Overlay
195
- end # V95
200
+ end # V98
196
201
  end # DevTools
197
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 V95
23
+ module V98
24
24
  class Page
25
25
  EVENTS = {
26
26
  dom_content_event_fired: 'domContentEventFired',
@@ -352,11 +352,6 @@ module Selenium
352
352
  @devtools.send_cmd('Page.stopScreencast')
353
353
  end
354
354
 
355
- def set_produce_compilation_cache(enabled:)
356
- @devtools.send_cmd('Page.setProduceCompilationCache',
357
- enabled: enabled)
358
- end
359
-
360
355
  def produce_compilation_cache(scripts:)
361
356
  @devtools.send_cmd('Page.produceCompilationCache',
362
357
  scripts: scripts)
@@ -372,6 +367,11 @@ module Selenium
372
367
  @devtools.send_cmd('Page.clearCompilationCache')
373
368
  end
374
369
 
370
+ def set_spc_transaction_mode(mode:)
371
+ @devtools.send_cmd('Page.setSPCTransactionMode',
372
+ mode: mode)
373
+ end
374
+
375
375
  def generate_test_report(message:, group: nil)
376
376
  @devtools.send_cmd('Page.generateTestReport',
377
377
  message: message,
@@ -388,6 +388,6 @@ module Selenium
388
388
  end
389
389
 
390
390
  end # Page
391
- end # V95
391
+ end # V98
392
392
  end # DevTools
393
393
  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 V95
23
+ module V98
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 # V95
57
+ end # V98
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 V95
23
+ module V98
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 # V95
44
+ end # V98
45
45
  end # DevTools
46
46
  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 V95
23
+ module V98
24
24
  class Profiler
25
25
  EVENTS = {
26
26
  console_profile_finished: 'consoleProfileFinished',
@@ -90,6 +90,6 @@ module Selenium
90
90
  end
91
91
 
92
92
  end # Profiler
93
- end # V95
93
+ end # V98
94
94
  end # DevTools
95
95
  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 V95
23
+ module V98
24
24
  class Runtime
25
25
  EVENTS = {
26
26
  binding_called: 'bindingCalled',
@@ -189,6 +189,6 @@ module Selenium
189
189
  end
190
190
 
191
191
  end # Runtime
192
- end # V95
192
+ end # V98
193
193
  end # DevTools
194
194
  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 V95
23
+ module V98
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 # V95
40
+ end # V98
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 V95
23
+ module V98
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 # V95
65
+ end # V98
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 V95
23
+ module V98
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 # V95
110
+ end # V98
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 V95
23
+ module V98
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -101,6 +101,6 @@ module Selenium
101
101
  end
102
102
 
103
103
  end # Storage
104
- end # V95
104
+ end # V98
105
105
  end # DevTools
106
106
  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 V95
23
+ module V98
24
24
  class SystemInfo
25
25
 
26
26
  def initialize(devtools)
@@ -41,6 +41,6 @@ module Selenium
41
41
  end
42
42
 
43
43
  end # SystemInfo
44
- end # V95
44
+ end # V98
45
45
  end # DevTools
46
46
  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 V95
23
+ module V98
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -67,11 +67,12 @@ module Selenium
67
67
  bindingName: binding_name)
68
68
  end
69
69
 
70
- def create_browser_context(dispose_on_detach: nil, proxy_server: nil, proxy_bypass_list: nil)
70
+ def create_browser_context(dispose_on_detach: nil, proxy_server: nil, proxy_bypass_list: nil, origins_with_universal_network_access: nil)
71
71
  @devtools.send_cmd('Target.createBrowserContext',
72
72
  disposeOnDetach: dispose_on_detach,
73
73
  proxyServer: proxy_server,
74
- proxyBypassList: proxy_bypass_list)
74
+ proxyBypassList: proxy_bypass_list,
75
+ originsWithUniversalNetworkAccess: origins_with_universal_network_access)
75
76
  end
76
77
 
77
78
  def get_browser_contexts
@@ -140,6 +141,6 @@ module Selenium
140
141
  end
141
142
 
142
143
  end # Target
143
- end # V95
144
+ end # V98
144
145
  end # DevTools
145
146
  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 V95
23
+ module V98
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 # V95
49
+ end # V98
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 V95
23
+ module V98
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 # V95
73
+ end # V98
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 V95
23
+ module V98
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 # V95
64
+ end # V98
65
65
  end # DevTools
66
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 V95
23
+ module V98
24
24
  class WebAuthn
25
25
 
26
26
  def initialize(devtools)
@@ -91,6 +91,6 @@ module Selenium
91
91
  end
92
92
 
93
93
  end # WebAuthn
94
- end # V95
94
+ end # V98
95
95
  end # DevTools
96
96
  end # Selenium
@@ -0,0 +1 @@
1
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v98/*", &method(:require))
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.97.0'
22
+ VERSION = '0.98.0'
23
23
  end # DevTools
24
24
  end # Selenium
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.97.0
4
+ version: 0.98.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: 2022-01-04 00:00:00.000000000 Z
13
+ date: 2022-02-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: websocket
@@ -88,53 +88,6 @@ files:
88
88
  - lib/selenium/devtools/v85/tracing.rb
89
89
  - lib/selenium/devtools/v85/web_audio.rb
90
90
  - lib/selenium/devtools/v85/web_authn.rb
91
- - lib/selenium/devtools/v95.rb
92
- - lib/selenium/devtools/v95/accessibility.rb
93
- - lib/selenium/devtools/v95/animation.rb
94
- - lib/selenium/devtools/v95/application_cache.rb
95
- - lib/selenium/devtools/v95/audits.rb
96
- - lib/selenium/devtools/v95/background_service.rb
97
- - lib/selenium/devtools/v95/browser.rb
98
- - lib/selenium/devtools/v95/cache_storage.rb
99
- - lib/selenium/devtools/v95/cast.rb
100
- - lib/selenium/devtools/v95/console.rb
101
- - lib/selenium/devtools/v95/css.rb
102
- - lib/selenium/devtools/v95/database.rb
103
- - lib/selenium/devtools/v95/debugger.rb
104
- - lib/selenium/devtools/v95/device_orientation.rb
105
- - lib/selenium/devtools/v95/dom.rb
106
- - lib/selenium/devtools/v95/dom_debugger.rb
107
- - lib/selenium/devtools/v95/dom_snapshot.rb
108
- - lib/selenium/devtools/v95/dom_storage.rb
109
- - lib/selenium/devtools/v95/emulation.rb
110
- - lib/selenium/devtools/v95/fetch.rb
111
- - lib/selenium/devtools/v95/headless_experimental.rb
112
- - lib/selenium/devtools/v95/heap_profiler.rb
113
- - lib/selenium/devtools/v95/indexed_db.rb
114
- - lib/selenium/devtools/v95/input.rb
115
- - lib/selenium/devtools/v95/inspector.rb
116
- - lib/selenium/devtools/v95/io.rb
117
- - lib/selenium/devtools/v95/layer_tree.rb
118
- - lib/selenium/devtools/v95/log.rb
119
- - lib/selenium/devtools/v95/media.rb
120
- - lib/selenium/devtools/v95/memory.rb
121
- - lib/selenium/devtools/v95/network.rb
122
- - lib/selenium/devtools/v95/overlay.rb
123
- - lib/selenium/devtools/v95/page.rb
124
- - lib/selenium/devtools/v95/performance.rb
125
- - lib/selenium/devtools/v95/performance_timeline.rb
126
- - lib/selenium/devtools/v95/profiler.rb
127
- - lib/selenium/devtools/v95/runtime.rb
128
- - lib/selenium/devtools/v95/schema.rb
129
- - lib/selenium/devtools/v95/security.rb
130
- - lib/selenium/devtools/v95/service_worker.rb
131
- - lib/selenium/devtools/v95/storage.rb
132
- - lib/selenium/devtools/v95/system_info.rb
133
- - lib/selenium/devtools/v95/target.rb
134
- - lib/selenium/devtools/v95/tethering.rb
135
- - lib/selenium/devtools/v95/tracing.rb
136
- - lib/selenium/devtools/v95/web_audio.rb
137
- - lib/selenium/devtools/v95/web_authn.rb
138
91
  - lib/selenium/devtools/v96.rb
139
92
  - lib/selenium/devtools/v96/accessibility.rb
140
93
  - lib/selenium/devtools/v96/animation.rb
@@ -228,6 +181,53 @@ files:
228
181
  - lib/selenium/devtools/v97/tracing.rb
229
182
  - lib/selenium/devtools/v97/web_audio.rb
230
183
  - lib/selenium/devtools/v97/web_authn.rb
184
+ - lib/selenium/devtools/v98.rb
185
+ - lib/selenium/devtools/v98/accessibility.rb
186
+ - lib/selenium/devtools/v98/animation.rb
187
+ - lib/selenium/devtools/v98/audits.rb
188
+ - lib/selenium/devtools/v98/background_service.rb
189
+ - lib/selenium/devtools/v98/browser.rb
190
+ - lib/selenium/devtools/v98/cache_storage.rb
191
+ - lib/selenium/devtools/v98/cast.rb
192
+ - lib/selenium/devtools/v98/console.rb
193
+ - lib/selenium/devtools/v98/css.rb
194
+ - lib/selenium/devtools/v98/database.rb
195
+ - lib/selenium/devtools/v98/debugger.rb
196
+ - lib/selenium/devtools/v98/device_orientation.rb
197
+ - lib/selenium/devtools/v98/dom.rb
198
+ - lib/selenium/devtools/v98/dom_debugger.rb
199
+ - lib/selenium/devtools/v98/dom_snapshot.rb
200
+ - lib/selenium/devtools/v98/dom_storage.rb
201
+ - lib/selenium/devtools/v98/emulation.rb
202
+ - lib/selenium/devtools/v98/event_breakpoints.rb
203
+ - lib/selenium/devtools/v98/fetch.rb
204
+ - lib/selenium/devtools/v98/headless_experimental.rb
205
+ - lib/selenium/devtools/v98/heap_profiler.rb
206
+ - lib/selenium/devtools/v98/indexed_db.rb
207
+ - lib/selenium/devtools/v98/input.rb
208
+ - lib/selenium/devtools/v98/inspector.rb
209
+ - lib/selenium/devtools/v98/io.rb
210
+ - lib/selenium/devtools/v98/layer_tree.rb
211
+ - lib/selenium/devtools/v98/log.rb
212
+ - lib/selenium/devtools/v98/media.rb
213
+ - lib/selenium/devtools/v98/memory.rb
214
+ - lib/selenium/devtools/v98/network.rb
215
+ - lib/selenium/devtools/v98/overlay.rb
216
+ - lib/selenium/devtools/v98/page.rb
217
+ - lib/selenium/devtools/v98/performance.rb
218
+ - lib/selenium/devtools/v98/performance_timeline.rb
219
+ - lib/selenium/devtools/v98/profiler.rb
220
+ - lib/selenium/devtools/v98/runtime.rb
221
+ - lib/selenium/devtools/v98/schema.rb
222
+ - lib/selenium/devtools/v98/security.rb
223
+ - lib/selenium/devtools/v98/service_worker.rb
224
+ - lib/selenium/devtools/v98/storage.rb
225
+ - lib/selenium/devtools/v98/system_info.rb
226
+ - lib/selenium/devtools/v98/target.rb
227
+ - lib/selenium/devtools/v98/tethering.rb
228
+ - lib/selenium/devtools/v98/tracing.rb
229
+ - lib/selenium/devtools/v98/web_audio.rb
230
+ - lib/selenium/devtools/v98/web_authn.rb
231
231
  - lib/selenium/devtools/version.rb
232
232
  - selenium-devtools.gemspec
233
233
  homepage: https://selenium.dev
@@ -1,60 +0,0 @@
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 V95
24
- class ApplicationCache
25
- EVENTS = {
26
- application_cache_status_updated: 'applicationCacheStatusUpdated',
27
- network_state_updated: 'networkStateUpdated',
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["ApplicationCache.#{event}"] << block
37
- end
38
-
39
- def enable
40
- @devtools.send_cmd('ApplicationCache.enable')
41
- end
42
-
43
- def get_application_cache_for_frame(frame_id:)
44
- @devtools.send_cmd('ApplicationCache.getApplicationCacheForFrame',
45
- frameId: frame_id)
46
- end
47
-
48
- def get_frames_with_manifests
49
- @devtools.send_cmd('ApplicationCache.getFramesWithManifests')
50
- end
51
-
52
- def get_manifest_for_frame(frame_id:)
53
- @devtools.send_cmd('ApplicationCache.getManifestForFrame',
54
- frameId: frame_id)
55
- end
56
-
57
- end # ApplicationCache
58
- end # V95
59
- end # DevTools
60
- end # Selenium
@@ -1 +0,0 @@
1
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v95/*", &method(:require))