Automatic download and manage Chrome and Chromedriver, and ensures that their versions match
Project description
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. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file chrome_for_testing_manager-1.0.1.tar.gz
.
File metadata
- Download URL: chrome_for_testing_manager-1.0.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45d5df780cbe534a817ab6d2326f747aba3fe752bb5922effb9842b7199528f1 |
|
MD5 | b991b78b5935e37c3eff10c3258ffa5c |
|
BLAKE2b-256 | d27ddefb09e6691e277a6de5f20d633517b74ac6e21a9e13c5a187f527a54b86 |