Chrome for Testing Manager
Thanks to the Chrome for Testing project for resolving the issue of mismatch between Chrome and Chromedriver versions in browser automation, witch is caused by Chrome automatic updates.
But we still need to manually download and manage Chrome and Chromedriver.
So Chrome for Testing Manager: A Python project that automatic download and manage Chrome and Chromedriver, and
ensures
that their versions match.
Usage
- Install
pip install chrome-for-testing-manager
- Just call
chrome_for_testing_manager.init, which will download and return the local path of chrome & chromedriver.
from chrome_for_testing_manager import init
chrome_path, chromedriver_path = init()
# and then init selenium or any other ... ⬇️
# options = Options()
# options.binary_location = chrome_path
# service = Service(executable_path=chromedriver_path)
# driver = webdriver.Chrome(options, service)
Optional Configuration
from chrome_for_testing_manager import init
chrome_path, chromedriver_path = init(
version="125.0.6422.78",
path="path/to/download",
force_download=False
)
| configuration | description |
|---|---|
| version | Witch version of chrome & chromedriver to download, latest version of the stable channel by default. Available versions |
| path | The local path to download chrome & chromedriver, ~/.chrome-manager by default. |
| forceDownload | Download chrome & chromedriver even if the local file exists. false by default. |
Metadata
Release files for chrome-for-testing-manager 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chrome_for_testing_manager-1.0.1.tar.gz | 7.9 kB | Without provenance | Details for chrome_for_testing_manager-1.0.1.tar.gz |
Release files / chrome_for_testing_manager-1.0.1.tar.gz
| Download URL | chrome_for_testing_manager-1.0.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45d5df780cbe534a817ab6d2326f747aba3fe752bb5922effb9842b7199528f1
|
|
BLAKE2b-256 checksum How to use checksums |
d27ddefb09e6691e277a6de5f20d633517b74ac6e21a9e13c5a187f527a54b86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.6
|
Security for chrome-for-testing-manager 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.