selenium-webdriver 4.29.0 → 4.29.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7bd6340cd61180fd4c0c8753b7dd74972781b016492a8ef9f8c57ade61d26ea
4
- data.tar.gz: 0f44ea455592315221ba1e994f353b7d6d359fe88a093e25bf558bb7f286258f
3
+ metadata.gz: d2e9ab42edc398ea02267b66e1c34129b5ee81aa2f0a2e863da9e8feb9b8367b
4
+ data.tar.gz: 874e78c7bcde3a2f3891a2b3a2b6004fca27c30c9015ae4150899c77a6286886
5
5
  SHA512:
6
- metadata.gz: 8bc2ad2827460f67b298abc21740300382957d1dddc97f5708f89571d68ba9f479d21d8131c838b8430a291dc0bb0eaef02f961f83186603540967f01bf8749d
7
- data.tar.gz: 1b532269414d71bad4c262bb2fb4a34b084bac4fa39b341f16305265fffb1c2f9e47fc399bf8e97f06212d37d15fec9f6361df4d5d4a480896a61ecc126e7a3b
6
+ metadata.gz: 5c4d45d08ca2b2ea9be62fa5727de7a3426b5578247ae4e783bb1b60fdf011b0edd135e8a09fa2c4ce29246bb106aba9715ce552c12efe994424d71a0c0cb54b
7
+ data.tar.gz: be32929108c84c2d3e18cac60618042a6904b387dcee37b9e2adbd2298222e1077d772440a5fb98cc4810ce9270ecd2141111c5c46849b5ac2cafd0a95538601
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 4.29.1 (2025-02-22)
2
+ =========================
3
+ * [rb] Fix "no anonymous block parameter" in ruby 3.1 (#15315)
4
+
1
5
  4.29.0 (2025-02-17)
2
6
  =========================
3
7
  * Add CDP for Chrome 133 and remove 130
data/Gemfile CHANGED
@@ -5,6 +5,8 @@ Dir["#{__dir__}/*.gemspec"].each do |spec|
5
5
  gemspec name: File.basename(spec, '.gemspec')
6
6
  end
7
7
 
8
+ # ActiveSupport 8.x requires Ruby 3.2+ (dependency of Steep)
9
+ gem 'activesupport', '~> 7.0', require: false, platforms: %i[mri mingw x64_mingw]
8
10
  gem 'curb', '~> 1.0.5', require: false, platforms: %i[mri mingw x64_mingw]
9
11
  gem 'debug', '~> 1.7', require: false, platforms: %i[mri mingw x64_mingw]
10
12
  gem 'steep', '~> 1.5.0', require: false, platforms: %i[mri mingw x64_mingw]
@@ -122,15 +122,15 @@ module Selenium
122
122
  end
123
123
  end
124
124
 
125
- def net_http_start(address, &)
125
+ def net_http_start(address, &block)
126
126
  http_proxy = ENV.fetch('http_proxy', nil) || ENV.fetch('HTTP_PROXY', nil)
127
127
  if http_proxy
128
128
  http_proxy = "http://#{http_proxy}" unless http_proxy.start_with?('http://')
129
129
  uri = URI.parse(http_proxy)
130
130
 
131
- Net::HTTP.start(address, nil, uri.host, uri.port, &)
131
+ Net::HTTP.start(address, nil, uri.host, uri.port, &block)
132
132
  else
133
- Net::HTTP.start(address, use_ssl: true, &)
133
+ Net::HTTP.start(address, use_ssl: true, &block)
134
134
  end
135
135
  end
136
136
 
@@ -79,7 +79,7 @@ module Selenium
79
79
  end
80
80
  end
81
81
 
82
- def on_log(filter_by = nil, &)
82
+ def on_log(filter_by = nil, &block)
83
83
  unless filter_by.nil?
84
84
  check_valid_filter(filter_by)
85
85
 
@@ -89,14 +89,14 @@ module Selenium
89
89
  return
90
90
  end
91
91
 
92
- on(:entry_added, &)
92
+ on(:entry_added, &block)
93
93
  end
94
94
 
95
95
  private
96
96
 
97
- def on(event, &)
97
+ def on(event, &block)
98
98
  event = EVENTS[event] if event.is_a?(Symbol)
99
- @bidi.add_callback("log.#{event}", &)
99
+ @bidi.add_callback("log.#{event}", &block)
100
100
  end
101
101
 
102
102
  def check_valid_filter(filter_by)
@@ -128,9 +128,9 @@ module Selenium
128
128
  @bidi.send_cmd('network.setCacheBehavior', cacheBehavior: behavior, contexts: contexts)
129
129
  end
130
130
 
131
- def on(event, &)
131
+ def on(event, &block)
132
132
  event = EVENTS[event] if event.is_a?(Symbol)
133
- @bidi.add_callback(event, &)
133
+ @bidi.add_callback(event, &block)
134
134
  @bidi.session.subscribe(event)
135
135
  end
136
136
  end # Network
@@ -43,8 +43,8 @@ module Selenium
43
43
  @ws.callbacks
44
44
  end
45
45
 
46
- def add_callback(event, &)
47
- @ws.add_callback(event, &)
46
+ def add_callback(event, &block)
47
+ @ws.add_callback(event, &block)
48
48
  end
49
49
 
50
50
  def remove_callback(event, id)
@@ -59,7 +59,7 @@ module Selenium
59
59
  # @yieldparam [Proc] continue block which proceeds with the request and optionally yields response
60
60
  #
61
61
 
62
- def intercept(&)
62
+ def intercept(&block)
63
63
  if browser == :firefox
64
64
  WebDriver.logger.deprecate(
65
65
  'Driver#intercept on Firefox',
@@ -68,7 +68,7 @@ module Selenium
68
68
  )
69
69
  end
70
70
  @interceptor ||= DevTools::NetworkInterceptor.new(devtools)
71
- @interceptor.intercept(&)
71
+ @interceptor.intercept(&block)
72
72
  end
73
73
  end # HasNetworkInterception
74
74
  end # DriverExtensions
@@ -62,25 +62,25 @@ module Selenium
62
62
  )
63
63
  end
64
64
 
65
- def add_request_handler(*filter, pattern_type: nil, &)
65
+ def add_request_handler(*filter, pattern_type: nil, &block)
66
66
  add_handler(
67
67
  :before_request,
68
68
  BiDi::Network::PHASES[:before_request],
69
69
  BiDi::InterceptedRequest,
70
70
  filter,
71
71
  pattern_type: pattern_type,
72
- &
72
+ &block
73
73
  )
74
74
  end
75
75
 
76
- def add_response_handler(*filter, pattern_type: nil, &)
76
+ def add_response_handler(*filter, pattern_type: nil, &block)
77
77
  add_handler(
78
78
  :response_started,
79
79
  BiDi::Network::PHASES[:response_started],
80
80
  BiDi::InterceptedResponse,
81
81
  filter,
82
82
  pattern_type: pattern_type,
83
- &
83
+ &block
84
84
  )
85
85
  end
86
86
 
@@ -25,13 +25,13 @@ module Selenium
25
25
  end
26
26
 
27
27
  # @return [int] id of the handler
28
- def add_console_message_handler(&)
29
- @log_handler.add_message_handler('console', &)
28
+ def add_console_message_handler(&block)
29
+ @log_handler.add_message_handler('console', &block)
30
30
  end
31
31
 
32
32
  # @return [int] id of the handler
33
- def add_javascript_error_handler(&)
34
- @log_handler.add_message_handler('javascript', &)
33
+ def add_javascript_error_handler(&block)
34
+ @log_handler.add_message_handler('javascript', &block)
35
35
  end
36
36
 
37
37
  # @param [int] id of the handler previously added
@@ -35,10 +35,10 @@ module Selenium
35
35
  attr_reader :extra_commands
36
36
  attr_writer :element_class, :locator_converter
37
37
 
38
- def add_command(name, verb, url, &)
38
+ def add_command(name, verb, url, &block)
39
39
  @extra_commands ||= {}
40
40
  @extra_commands[name] = [verb, url]
41
- define_method(name, &)
41
+ define_method(name, &block)
42
42
  end
43
43
 
44
44
  def locator_converter
@@ -37,8 +37,8 @@ module Selenium
37
37
  @messages = {}
38
38
  end
39
39
 
40
- def add_condition(name, condition = nil, &)
41
- @guard_conditions << GuardCondition.new(name, condition, &)
40
+ def add_condition(name, condition = nil, &block)
41
+ @guard_conditions << GuardCondition.new(name, condition, &block)
42
42
  end
43
43
 
44
44
  def add_message(name, message)
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module WebDriver
22
- VERSION = '4.29.0'
22
+ VERSION = '4.29.1'
23
23
  end # WebDriver
24
24
  end # Selenium
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.29.0
4
+ version: 4.29.1
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: 2025-02-20 00:00:00.000000000 Z
13
+ date: 2025-02-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: base64