Method: Ferrum::Network#traffic

Defined in:
lib/ferrum/network.rb

#trafficArray<Exchange> (readonly)

Network traffic.

Examples:

browser.go_to("https://github.com/")
browser.network.traffic # => [#<Ferrum::Network::Exchange, ...]

Returns:

  • (Array<Exchange>)

    Returns all information about network traffic as Exchange instance which in general is a wrapper around ‘request`, `response` and `error`.



33
34
35
# File 'lib/ferrum/network.rb', line 33

def traffic
  @traffic
end