Skip to content

Commit

Permalink
selenium log suppression: forward both positional and keyword args (#…
Browse files Browse the repository at this point in the history
…2667)

* selenium log suppression: forward all parameters passed
  • Loading branch information
kyrofa authored and twalpole committed May 12, 2023
1 parent 96a8baa commit a5d7def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capybara/selenium/logger_suppressor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Capybara
module Selenium
module DeprecationSuppressor
def initialize(*)
def initialize(...)
@suppress_for_capybara = false
super
end
Expand Down Expand Up @@ -31,7 +31,7 @@ def suppress_deprecations
end

module ErrorSuppressor
def for_code(*)
def for_code(...)
::Selenium::WebDriver.logger.suppress_deprecations do
super
end
Expand Down

0 comments on commit a5d7def

Please sign in to comment.