published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Software Development & Programming / Rails Testing
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