This repository serves as a version-specific storage for Chrome DevTools Protocol (CDP) packages used by the osn-selenium library.
- Version Preservation: Selenium typically keeps only a few recent versions of CDP. This repository stores any version (legacy or new) to ensure your automation remains compatible even with older browser versions.
- Modular Architecture: Instead of bloating the main
osn-seleniumlibrary with thousands of generated files, each CDP version is stored here as a standalone package. - Enhanced Functionality: Every package includes not only the standard Selenium CDP files but also custom
executorsoptimized forTrioandsyncarchitectures.
Each branch in this repository corresponds to a specific major browser version.
v131: Packages for CDP 131.v132: Packages for CDP 132.- ...and so on.
The main branch contains only this documentation and global configuration.
You don't need to clone this repository manually. The main osn-selenium library will guide you if a version is missing. However, you can install a specific version using pip:
# Example: Install CDP support for version 131
pip install git+https://github.com/oddshellnick/osn-selenium-cdp.git@v131Once a version package is installed, you can access it directly via the cdp property of your driver:
# OSN-Selenium will automatically detect and link the installed package
await driver.cdp.v131.page.navigate(url="https://example.com")The library uses a custom MetaPathFinder to intercept imports and redirect selenium.webdriver.common.devtools calls to the packages provided here.
All packages in this repository are auto-generated using the selenium-package-parser.
If you need a version that is not yet available:
- Use the parser tool on the original Selenium source.
- Upload the result as a new branch to this repository (or your own fork).
Main Library: osn-selenium
Package Parser (currently hidden): selenium-package-parser