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. |
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 | |
|---|---|---|---|
| chrome_for_testing_manager-1.0.1.tar.gz | 7.9 kB | Details |
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
|