Installer for chromedriver. (Auto sync version to GoogleChrome)
Project description
chromedriver-binary-sync
Overview
Sync chromedriver version with the installed chrome version at runtime.
- Download the version of chromedriver to match chrome at runtime.
- Internally, the function of chromedriver-binary-auto is used.
- It matches the version at install time.
Requirements
- chromedriver-binary-auto
License
OSS used
Installation
pip
pip install chromedriver-binary-sync
github
pip install git+https://github.com/bugph0bia/chromedriver-binary-sync.git
Usage
from selenium import webdriver
import chromedriver_binary_sync
# Download chromedriver to current directory.
# (chromedriver version matches installed chrome)
chromedriver_binary_sync.download()
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
Note
The path to chromedriver is not automatically added to the "PATH" environment variable, so it is necessary to pass the path to the chromedriver download destination in addition to the current directory.
Case: Download to other than the current directory
chromedriver_binary_sync.download(download_dir='...')
Case: To match a portable version of Chrome (For Windows)
chromedriver_binary_sync.download(chrome_portable=r'...\GoogleChromePortable\App\Chrome-bin\chrome.exe')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chromedriver_binary_sync-0.2.2-py3-none-any.whl.
File metadata
- Download URL: chromedriver_binary_sync-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58fd481a2a53f60142056c19cd121bca86a17787df61cae46bb74c99a6f31ee8
|
|
| MD5 |
cbb7253e83b4f05a7a41b54a09207d63
|
|
| BLAKE2b-256 |
e1683ed693b6e6fd3e99937c4cbf3c189fe9200eb04d68881c891d23ab9a7e42
|