module Selenium::WebDriver::DriverExtensions::HasNetworkConditions

def delete_network_conditions

def delete_network_conditions
  @bridge.delete_network_conditions
end

def network_conditions

def network_conditions
  @bridge.network_conditions
end

def network_conditions=(conditions)

def network_conditions=(conditions)
  conditions[:latency] ||= 0
  unless conditions.key?(:throughput)
    conditions[:download_throughput] ||= -1
    conditions[:upload_throughput] ||= -1
  end
  conditions[:offline] = false unless conditions.key?(:offline)
  @bridge.network_conditions = conditions
end