selenium-devtools 0.142.0 → 0.143.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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/selenium/devtools/{v140 → v143}/accessibility.rb +2 -2
  3. data/lib/selenium/devtools/{v140 → v143}/animation.rb +2 -2
  4. data/lib/selenium/devtools/{v140 → v143}/audits.rb +2 -2
  5. data/lib/selenium/devtools/{v140 → v143}/autofill.rb +5 -4
  6. data/lib/selenium/devtools/{v140 → v143}/background_service.rb +2 -2
  7. data/lib/selenium/devtools/{v140 → v143}/bluetooth_emulation.rb +2 -2
  8. data/lib/selenium/devtools/{v140 → v143}/browser.rb +4 -3
  9. data/lib/selenium/devtools/{v140 → v143}/cache_storage.rb +2 -2
  10. data/lib/selenium/devtools/{v140 → v143}/cast.rb +2 -2
  11. data/lib/selenium/devtools/{v140 → v143}/console.rb +2 -2
  12. data/lib/selenium/devtools/{v140 → v143}/css.rb +2 -2
  13. data/lib/selenium/devtools/{v140 → v143}/debugger.rb +2 -2
  14. data/lib/selenium/devtools/{v140 → v143}/device_access.rb +2 -2
  15. data/lib/selenium/devtools/{v140 → v143}/device_orientation.rb +2 -2
  16. data/lib/selenium/devtools/{v140 → v143}/dom.rb +3 -2
  17. data/lib/selenium/devtools/{v140 → v143}/dom_debugger.rb +2 -2
  18. data/lib/selenium/devtools/{v140 → v143}/dom_snapshot.rb +2 -2
  19. data/lib/selenium/devtools/{v140 → v143}/dom_storage.rb +2 -2
  20. data/lib/selenium/devtools/{v140 → v143}/emulation.rb +25 -2
  21. data/lib/selenium/devtools/{v140 → v143}/event_breakpoints.rb +2 -2
  22. data/lib/selenium/devtools/{v140 → v143}/extensions.rb +2 -2
  23. data/lib/selenium/devtools/{v140 → v143}/fed_cm.rb +2 -2
  24. data/lib/selenium/devtools/{v140 → v143}/fetch.rb +2 -2
  25. data/lib/selenium/devtools/{v140 → v143}/file_system.rb +2 -2
  26. data/lib/selenium/devtools/{v140 → v143}/headless_experimental.rb +2 -2
  27. data/lib/selenium/devtools/{v140 → v143}/heap_profiler.rb +4 -3
  28. data/lib/selenium/devtools/{v140 → v143}/indexed_db.rb +3 -3
  29. data/lib/selenium/devtools/{v140 → v143}/input.rb +2 -2
  30. data/lib/selenium/devtools/{v140 → v143}/inspector.rb +3 -2
  31. data/lib/selenium/devtools/{v140 → v143}/io.rb +2 -2
  32. data/lib/selenium/devtools/{v140 → v143}/layer_tree.rb +2 -2
  33. data/lib/selenium/devtools/{v140 → v143}/log.rb +2 -2
  34. data/lib/selenium/devtools/{v140 → v143}/media.rb +3 -3
  35. data/lib/selenium/devtools/{v140 → v143}/memory.rb +2 -2
  36. data/lib/selenium/devtools/{v140 → v143}/network.rb +31 -9
  37. data/lib/selenium/devtools/{v140 → v143}/overlay.rb +2 -2
  38. data/lib/selenium/devtools/{v140 → v143}/page.rb +2 -2
  39. data/lib/selenium/devtools/{v140 → v143}/performance.rb +2 -2
  40. data/lib/selenium/devtools/{v140 → v143}/performance_timeline.rb +2 -2
  41. data/lib/selenium/devtools/{v140 → v143}/preload.rb +2 -2
  42. data/lib/selenium/devtools/{v140 → v143}/profiler.rb +2 -2
  43. data/lib/selenium/devtools/{v140 → v143}/pwa.rb +2 -2
  44. data/lib/selenium/devtools/{v140 → v143}/runtime.rb +2 -2
  45. data/lib/selenium/devtools/{v140 → v143}/schema.rb +2 -2
  46. data/lib/selenium/devtools/{v140 → v143}/security.rb +2 -2
  47. data/lib/selenium/devtools/{v140 → v143}/service_worker.rb +2 -2
  48. data/lib/selenium/devtools/{v140 → v143}/storage.rb +7 -2
  49. data/lib/selenium/devtools/{v140 → v143}/system_info.rb +2 -2
  50. data/lib/selenium/devtools/{v140 → v143}/target.rb +2 -2
  51. data/lib/selenium/devtools/{v140 → v143}/tethering.rb +2 -2
  52. data/lib/selenium/devtools/{v140 → v143}/tracing.rb +2 -2
  53. data/lib/selenium/devtools/{v140 → v143}/web_audio.rb +2 -2
  54. data/lib/selenium/devtools/{v140 → v143}/web_authn.rb +2 -2
  55. data/lib/selenium/devtools/{v140.rb → v143.rb} +13 -13
  56. data/lib/selenium/devtools/version.rb +1 -1
  57. metadata +56 -56
@@ -20,14 +20,14 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V140
23
+ module V143
24
24
  class Media
25
25
  EVENTS = {
26
26
  player_properties_changed: 'playerPropertiesChanged',
27
27
  player_events_added: 'playerEventsAdded',
28
28
  player_messages_logged: 'playerMessagesLogged',
29
29
  player_errors_raised: 'playerErrorsRaised',
30
- players_created: 'playersCreated',
30
+ player_created: 'playerCreated',
31
31
  }.freeze
32
32
 
33
33
  def initialize(devtools)
@@ -48,6 +48,6 @@ module Selenium
48
48
  end
49
49
 
50
50
  end # Media
51
- end # V140
51
+ end # V143
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 V140
23
+ module V143
24
24
  class Memory
25
25
 
26
26
  def initialize(devtools)
@@ -81,6 +81,6 @@ module Selenium
81
81
  end
82
82
 
83
83
  end # Memory
84
- end # V140
84
+ end # V143
85
85
  end # DevTools
86
86
  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 V140
23
+ module V143
24
24
  class Network
25
25
  EVENTS = {
26
26
  data_received: 'dataReceived',
@@ -60,10 +60,6 @@ module Selenium
60
60
  response_received_early_hints: 'responseReceivedEarlyHints',
61
61
  trust_token_operation_done: 'trustTokenOperationDone',
62
62
  policy_updated: 'policyUpdated',
63
- subresource_web_bundle_metadata_received: 'subresourceWebBundleMetadataReceived',
64
- subresource_web_bundle_metadata_error: 'subresourceWebBundleMetadataError',
65
- subresource_web_bundle_inner_response_parsed: 'subresourceWebBundleInnerResponseParsed',
66
- subresource_web_bundle_inner_response_error: 'subresourceWebBundleInnerResponseError',
67
63
  reporting_api_report_added: 'reportingApiReportAdded',
68
64
  reporting_api_report_updated: 'reportingApiReportUpdated',
69
65
  reporting_api_endpoints_changed_for_origin: 'reportingApiEndpointsChangedForOrigin',
@@ -78,6 +74,15 @@ module Selenium
78
74
  @devtools.callbacks["Network.#{event}"] << block
79
75
  end
80
76
 
77
+ def get_ip_protection_proxy_status
78
+ @devtools.send_cmd('Network.getIPProtectionProxyStatus')
79
+ end
80
+
81
+ def set_ip_protection_proxy_bypass_enabled(enabled:)
82
+ @devtools.send_cmd('Network.setIPProtectionProxyBypassEnabled',
83
+ enabled: enabled)
84
+ end
85
+
81
86
  def set_accepted_encodings(encodings:)
82
87
  @devtools.send_cmd('Network.setAcceptedEncodings',
83
88
  encodings: encodings)
@@ -144,12 +149,28 @@ module Selenium
144
149
  packetReordering: packet_reordering)
145
150
  end
146
151
 
147
- def enable(max_total_buffer_size: nil, max_resource_buffer_size: nil, max_post_data_size: nil, report_direct_socket_traffic: nil)
152
+ def emulate_network_conditions_by_rule(offline:, matched_network_conditions:)
153
+ @devtools.send_cmd('Network.emulateNetworkConditionsByRule',
154
+ offline: offline,
155
+ matchedNetworkConditions: matched_network_conditions)
156
+ end
157
+
158
+ def override_network_state(offline:, latency:, download_throughput:, upload_throughput:, connection_type: nil)
159
+ @devtools.send_cmd('Network.overrideNetworkState',
160
+ offline: offline,
161
+ latency: latency,
162
+ downloadThroughput: download_throughput,
163
+ uploadThroughput: upload_throughput,
164
+ connectionType: connection_type)
165
+ end
166
+
167
+ def enable(max_total_buffer_size: nil, max_resource_buffer_size: nil, max_post_data_size: nil, report_direct_socket_traffic: nil, enable_durable_messages: nil)
148
168
  @devtools.send_cmd('Network.enable',
149
169
  maxTotalBufferSize: max_total_buffer_size,
150
170
  maxResourceBufferSize: max_resource_buffer_size,
151
171
  maxPostDataSize: max_post_data_size,
152
- reportDirectSocketTraffic: report_direct_socket_traffic)
172
+ reportDirectSocketTraffic: report_direct_socket_traffic,
173
+ enableDurableMessages: enable_durable_messages)
153
174
  end
154
175
 
155
176
  def get_all_cookies
@@ -199,8 +220,9 @@ module Selenium
199
220
  isRegex: is_regex)
200
221
  end
201
222
 
202
- def set_blocked_urls(urls:)
223
+ def set_blocked_urls(url_patterns: nil, urls: nil)
203
224
  @devtools.send_cmd('Network.setBlockedURLs',
225
+ urlPatterns: url_patterns,
204
226
  urls: urls)
205
227
  end
206
228
 
@@ -290,6 +312,6 @@ module Selenium
290
312
  end
291
313
 
292
314
  end # Network
293
- end # V140
315
+ end # V143
294
316
  end # DevTools
295
317
  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 V140
23
+ module V143
24
24
  class Overlay
25
25
  EVENTS = {
26
26
  inspect_node_requested: 'inspectNodeRequested',
@@ -202,6 +202,6 @@ module Selenium
202
202
  end
203
203
 
204
204
  end # Overlay
205
- end # V140
205
+ end # V143
206
206
  end # DevTools
207
207
  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 V140
23
+ module V143
24
24
  class Page
25
25
  EVENTS = {
26
26
  dom_content_event_fired: 'domContentEventFired',
@@ -409,6 +409,6 @@ module Selenium
409
409
  end
410
410
 
411
411
  end # Page
412
- end # V140
412
+ end # V143
413
413
  end # DevTools
414
414
  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 V140
23
+ module V143
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 # V140
57
+ end # V143
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 V140
23
+ module V143
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 # V140
44
+ end # V143
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 V140
23
+ module V143
24
24
  class Preload
25
25
  EVENTS = {
26
26
  rule_set_updated: 'ruleSetUpdated',
@@ -49,6 +49,6 @@ module Selenium
49
49
  end
50
50
 
51
51
  end # Preload
52
- end # V140
52
+ end # V143
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 V140
23
+ module V143
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 # V140
81
+ end # V143
82
82
  end # DevTools
83
83
  end # Selenium
@@ -20,7 +20,7 @@
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
  module Selenium
22
22
  module DevTools
23
- module V140
23
+ module V143
24
24
  class PWA
25
25
 
26
26
  def initialize(devtools)
@@ -73,6 +73,6 @@ module Selenium
73
73
  end
74
74
 
75
75
  end # PWA
76
- end # V140
76
+ end # V143
77
77
  end # DevTools
78
78
  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 V140
23
+ module V143
24
24
  class Runtime
25
25
  EVENTS = {
26
26
  binding_called: 'bindingCalled',
@@ -197,6 +197,6 @@ module Selenium
197
197
  end
198
198
 
199
199
  end # Runtime
200
- end # V140
200
+ end # V143
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 V140
23
+ module V143
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 # V140
40
+ end # V143
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 V140
23
+ module V143
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 # V140
65
+ end # V143
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 V140
23
+ module V143
24
24
  class ServiceWorker
25
25
  EVENTS = {
26
26
  worker_error_reported: 'workerErrorReported',
@@ -102,6 +102,6 @@ module Selenium
102
102
  end
103
103
 
104
104
  end # ServiceWorker
105
- end # V140
105
+ end # V143
106
106
  end # DevTools
107
107
  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 V140
23
+ module V143
24
24
  class Storage
25
25
  EVENTS = {
26
26
  cache_storage_content_updated: 'cacheStorageContentUpdated',
@@ -54,6 +54,11 @@ module Selenium
54
54
  frameId: frame_id)
55
55
  end
56
56
 
57
+ def get_storage_key(frame_id: nil)
58
+ @devtools.send_cmd('Storage.getStorageKey',
59
+ frameId: frame_id)
60
+ end
61
+
57
62
  def clear_data_for_origin(origin:, storage_types:)
58
63
  @devtools.send_cmd('Storage.clearDataForOrigin',
59
64
  origin: origin,
@@ -244,6 +249,6 @@ module Selenium
244
249
  end
245
250
 
246
251
  end # Storage
247
- end # V140
252
+ end # V143
248
253
  end # DevTools
249
254
  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 V140
23
+ module V143
24
24
  class SystemInfo
25
25
 
26
26
  def initialize(devtools)
@@ -46,6 +46,6 @@ module Selenium
46
46
  end
47
47
 
48
48
  end # SystemInfo
49
- end # V140
49
+ end # V143
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 V140
23
+ module V143
24
24
  class Target
25
25
  EVENTS = {
26
26
  attached_to_target: 'attachedToTarget',
@@ -156,6 +156,6 @@ module Selenium
156
156
  end
157
157
 
158
158
  end # Target
159
- end # V140
159
+ end # V143
160
160
  end # DevTools
161
161
  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 V140
23
+ module V143
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 # V140
49
+ end # V143
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 V140
23
+ module V143
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 # V140
73
+ end # V143
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 V140
23
+ module V143
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 # V140
64
+ end # V143
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 V140
23
+ module V143
24
24
  class WebAuthn
25
25
  EVENTS = {
26
26
  credential_added: 'credentialAdded',
@@ -114,6 +114,6 @@ module Selenium
114
114
  end
115
115
 
116
116
  end # WebAuthn
117
- end # V140
117
+ end # V143
118
118
  end # DevTools
119
119
  end # Selenium
@@ -19,43 +19,50 @@
19
19
 
20
20
  # This file is automatically generated. Any changes will be lost!
21
21
 
22
- Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v140/*", &method(:require))
22
+ Dir.glob("#{File.dirname(File.absolute_path(__FILE__))}/v143/*", &method(:require))
23
23
 
24
24
  module Selenium
25
25
  module DevTools
26
- module V140
26
+ module V143
27
27
  METHODS_TO_CLASSES = {
28
28
  accessibility: 'Accessibility',
29
29
  animation: 'Animation',
30
30
  audits: 'Audits',
31
- extensions: 'Extensions',
32
31
  autofill: 'Autofill',
33
32
  background_service: 'BackgroundService',
33
+ bluetooth_emulation: 'BluetoothEmulation',
34
34
  browser: 'Browser',
35
35
  css: 'CSS',
36
36
  cache_storage: 'CacheStorage',
37
37
  cast: 'Cast',
38
38
  dom: 'DOM',
39
39
  dom_debugger: 'DOMDebugger',
40
- event_breakpoints: 'EventBreakpoints',
41
40
  dom_snapshot: 'DOMSnapshot',
42
41
  dom_storage: 'DOMStorage',
42
+ device_access: 'DeviceAccess',
43
43
  device_orientation: 'DeviceOrientation',
44
44
  emulation: 'Emulation',
45
+ event_breakpoints: 'EventBreakpoints',
46
+ extensions: 'Extensions',
47
+ fed_cm: 'FedCm',
48
+ fetch: 'Fetch',
49
+ file_system: 'FileSystem',
45
50
  headless_experimental: 'HeadlessExperimental',
46
51
  io: 'IO',
47
- file_system: 'FileSystem',
48
52
  indexed_db: 'IndexedDB',
49
53
  input: 'Input',
50
54
  inspector: 'Inspector',
51
55
  layer_tree: 'LayerTree',
52
56
  log: 'Log',
57
+ media: 'Media',
53
58
  memory: 'Memory',
54
59
  network: 'Network',
55
60
  overlay: 'Overlay',
61
+ pwa: 'PWA',
56
62
  page: 'Page',
57
63
  performance: 'Performance',
58
64
  performance_timeline: 'PerformanceTimeline',
65
+ preload: 'Preload',
59
66
  security: 'Security',
60
67
  service_worker: 'ServiceWorker',
61
68
  storage: 'Storage',
@@ -63,15 +70,8 @@ module Selenium
63
70
  target: 'Target',
64
71
  tethering: 'Tethering',
65
72
  tracing: 'Tracing',
66
- fetch: 'Fetch',
67
73
  web_audio: 'WebAudio',
68
74
  web_authn: 'WebAuthn',
69
- media: 'Media',
70
- device_access: 'DeviceAccess',
71
- preload: 'Preload',
72
- fed_cm: 'FedCm',
73
- pwa: 'PWA',
74
- bluetooth_emulation: 'BluetoothEmulation',
75
75
  console: 'Console',
76
76
  debugger: 'Debugger',
77
77
  heap_profiler: 'HeapProfiler',
@@ -79,6 +79,6 @@ module Selenium
79
79
  runtime: 'Runtime',
80
80
  schema: 'Schema',
81
81
  }.freeze
82
- end # V140
82
+ end # V143
83
83
  end # DevTools
84
84
  end # Selenium
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module DevTools
22
- VERSION = '0.142.0'
22
+ VERSION = '0.143.0'
23
23
  end # DevTools
24
24
  end # Selenium