Module: Selenium::WebDriver::DriverExtensions::HasNetworkInterception Private
Relationships & Source Files | |
Defined in: | rb/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb |
Instance Method Summary
-
#intercept {|request, continue| ... }
Internal use only
Intercepts requests coming from browser allowing to either pass them through like proxy or provide a stubbed response instead.
Instance Method Details
#intercept {|request, continue| ... }
Intercepts requests coming from browser allowing to either pass them through like proxy or provide a stubbed response instead.
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb', line 62
def intercept(&) @interceptor ||= DevTools::NetworkInterceptor.new(devtools) @interceptor.intercept(&) end