Skip to content

Commit

Permalink
Fix Selenium 4.0 deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
serialworm committed Jul 7, 2023
1 parent 60e7a9c commit 1498606
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/capybara/chromedriver/logger/collector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def raise_errors_if_needed!
def flush_logs!
browser_logs.each do |log|
message = Message.new(log)

next if should_filter?(message)

errors << message if message.error?

log_destination.puts message.to_s
end
end
Expand All @@ -53,7 +53,6 @@ def logs(type)
Capybara
.current_session
.driver.browser
.manage
.logs
.get(type)
end
Expand Down

0 comments on commit 1498606

Please sign in to comment.