Module: Selenium::WebDriver::DriverExtensions::HasNetworkConditions Private

Included in:
Chrome::Driver
Defined in:
build/rb/lib/selenium/webdriver/common/driver_extensions/has_network_conditions.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#network_conditionsHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns network conditions.

Returns:

  • (Hash)


29
30
31
# File 'build/rb/lib/selenium/webdriver/common/driver_extensions/has_network_conditions.rb', line 29

def network_conditions
  @bridge.network_conditions
end

#network_conditions=(conditions) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets network conditions

Parameters:

  • conditions (Hash)

Options Hash (conditions):

  • :latency (Integer)
  • :throughput (Integer)
  • :offline (Boolean)


42
43
44
# File 'build/rb/lib/selenium/webdriver/common/driver_extensions/has_network_conditions.rb', line 42

def network_conditions=(conditions)
  @bridge.network_conditions = conditions
end