Skip to content

oddshellnick/osn-selenium-cdp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

OSN Selenium CDP Storage

This repository serves as a version-specific storage for Chrome DevTools Protocol (CDP) packages used by the osn-selenium library.

Why this repository exists?

  1. 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.
  2. Modular Architecture: Instead of bloating the main osn-selenium library with thousands of generated files, each CDP version is stored here as a standalone package.
  3. Enhanced Functionality: Every package includes not only the standard Selenium CDP files but also custom executors optimized for Trio and sync architectures.

Branching Strategy

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.

Installation

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@v131

Usage within OSN-Selenium

Once 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.

Automatic Generation

All packages in this repository are auto-generated using the selenium-package-parser.

If you need a version that is not yet available:

  1. Use the parser tool on the original Selenium source.
  2. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors