Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted at 24. Aug '21

Howto Inspect Network Traffic In Capybara Driver

I think this was Apparition, Chrome Headless. Useful command because sometimes weird shit happens.

puts page.driver.network_traffic.map{|traffic| [traffic.url, traffic.method, traffic.response&.status, traffic.error&.code, traffic.error&.description]}.inspect

Add Comment