Skip to content

Commit

Permalink
Merge pull request #79 from dfurber/master
Browse files Browse the repository at this point in the history
make Page.frameNavigated accept additional keywords
  • Loading branch information
twalpole authored Jul 21, 2021
2 parents 11aca46 + 9587ecb commit ca86be4
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 ca86be4

Please sign in to comment.