Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/rb/sig/lib/selenium/webdriver/common/network.rbs
1865 views
module Selenium
  module WebDriver
    class Network
      @network: BiDi::Network

      @callbacks: Hash[String, String]

      attr_reader callbacks: Hash[String, String]

      attr_reader network: BiDi::Network

      alias bidi network

      def initialize: (Remote::Bridge bridge) -> void

      def remove_handler: (Numeric id) -> untyped

      def clear_handlers: () -> untyped

      def add_authentication_handler: (?String? username, ?String? password, *String filter, ?pattern_type: Symbol?) { (?) -> untyped } -> untyped

      def add_request_handler: (*String filter, ?pattern_type: Symbol?) -> Hash[String, String]

      def add_response_handler: (*String filter, ?pattern_type: Symbol?) -> Hash[String, String]

      private

      def add_handler: (Symbol event_type, String phase, BiDi::InterceptedRequest | BiDi::InterceptedAuth | BiDi::InterceptedResponse intercept_type, Array[String] filter, ?pattern_type: Symbol?) { (untyped) -> untyped } -> untyped
    end
  end
end