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(&block) {|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(&block) {|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(&block) @interceptor ||= DevTools::NetworkInterceptor.new(devtools) @interceptor.intercept(&block) end