Module: Selenium::WebDriver::DriverExtensions::HasCDP

Defined in:
lib/selenium/webdriver/common/driver_extensions/has_cdp.rb

Instance Method Summary collapse

Instance Method Details

#execute_cdp(cmd, **params) ⇒ Hash

Returns network conditions.

Returns:

  • (Hash)


30
31
32
# File 'lib/selenium/webdriver/common/driver_extensions/has_cdp.rb', line 30

def execute_cdp(cmd, **params)
  @bridge.send_command(cmd: cmd, params: params)
end