Skip to content

Commit

Permalink
make Page.frameNavigated accept additional keywords to silence unknow…
Browse files Browse the repository at this point in the history
…n keyword type: exception
  • Loading branch information
David Furber committed Jul 21, 2021
1 parent 11aca46 commit 9587ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capybara/apparition/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ def register_event_handlers
puts "**** frameDetached called with #{frame_id} : #{params}" if ENV['DEBUG']
end

@session.on 'Page.frameNavigated' do |frame:|
puts "**** frameNavigated called with #{frame}" if ENV['DEBUG']
@session.on 'Page.frameNavigated' do |frame:, **params|
puts "**** frameNavigated called with #{frame} : #{params}" if ENV['DEBUG']
unless @frames.exists?(frame['id'])
puts "**** creating frame for #{frame['id']}" if ENV['DEBUG']
@frames.add(frame['id'], frame)
Expand Down

0 comments on commit 9587ecb

Please sign in to comment.