lib/capybara/poltergeist/browser.rb in poltergeist-1.13.0 vs lib/capybara/poltergeist/browser.rb in poltergeist-1.14.0

- old
+ new

@@ -258,12 +258,12 @@ def path(page_id, id) command 'path', page_id, id end - def network_traffic - command('network_traffic').values.map do |event| + def network_traffic(type = nil) + command('network_traffic', type).map do |event| NetworkTraffic::Request.new( event['request'], event['responseParts'].map { |response| NetworkTraffic::Response.new(response) }, event['error'] ? NetworkTraffic::Error.new(event['error']) : nil ) @@ -295,11 +295,11 @@ def add_headers(headers) command 'add_headers', headers end - def add_header(header, permanent) - command 'add_header', header, permanent + def add_header(header, options={}) + command 'add_header', header, options end def response_headers command 'response_headers' end