graph LR
seleniumwire_webdriver_WebDriver["seleniumwire.webdriver.WebDriver"]
seleniumwire_webdriver__setup_backend["seleniumwire.webdriver._setup_backend"]
seleniumwire_webdriver_WebDriver -- "initializes/configures proxy via" --> seleniumwire_webdriver__setup_backend
seleniumwire_webdriver__setup_backend -- "provides proxy configuration to" --> seleniumwire_webdriver_WebDriver
The Selenium WebDriver Integration subsystem centers around the seleniumwire.webdriver.WebDriver component, which serves as the primary interface for users to interact with a web browser while enabling network traffic interception. This component achieves its core functionality by delegating the intricate proxy setup and configuration to the seleniumwire.webdriver._setup_backend function. The _setup_backend is responsible for creating and configuring the underlying proxy server, generating the necessary proxy settings, and returning them to the WebDriver for seamless integration with the browser instance. This clear separation of concerns allows the WebDriver to maintain a familiar Selenium interface while _setup_backend handles the low-level network plumbing, ensuring robust and efficient traffic interception capabilities.
This is the core user-facing component of the Selenium WebDriver Integration subsystem. It acts as the primary entry point for users, extending standard Selenium WebDriver classes (e.g., Chrome, Firefox) to enable network traffic interception and manipulation. Its responsibility is to provide a familiar WebDriver interface while seamlessly integrating selenium-wire's proxy functionality by initiating the proxy setup process.
Related Classes/Methods: None
An internal helper function within the Selenium WebDriver Integration subsystem. Its responsibility is to manage the intricate, low-level setup and configuration of the selenium-wire proxy. This includes creating the backend proxy server, handling proxy settings, and generating the necessary configuration (e.g., httpProxy, sslProxy, acceptInsecureCerts) that the WebDriver uses to direct browser traffic through the proxy.
Related Classes/Methods: