Skip to main content

Automatic download and manage Chrome and Chromedriver, and ensures that their versions match

Project description

Chrome for Testing Manager

PyPI - Version Github license

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

  1. Install
pip install chrome-for-testing-manager
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrome_for_testing_manager-1.0.1.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file chrome_for_testing_manager-1.0.1.tar.gz.

File metadata

File hashes

Hashes for chrome_for_testing_manager-1.0.1.tar.gz
Algorithm Hash digest
SHA256 45d5df780cbe534a817ab6d2326f747aba3fe752bb5922effb9842b7199528f1
MD5 b991b78b5935e37c3eff10c3258ffa5c
BLAKE2b-256 d27ddefb09e6691e277a6de5f20d633517b74ac6e21a9e13c5a187f527a54b86

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page