Automatically install chromedriver that supports the currently installed version of chrome.
Project description
chromedriver-autoinstaller-fix
chromedriver-autoinstaller-fix was created to address the "WARNING:root:Cannot find chromedriver for the currently installed Chrome version." error, which remains unresolved in the original python-chromedriver-autoinstaller repository.
By using chromedriver-autoinstaller-fix, you shouldn't encounter installation errors if you're using Chrome versions greater than 115.
Installation
pip install chromedriver-autoinstaller-fix
Usage
Just type import chromedriver_autoinstaller_fix
in the module you want to use chromedriver.
Example
from selenium import webdriver
import chromedriver_autoinstaller_fix
chromedriver_autoinstaller_fix.install() # Check if the current version of chromedriver exists
# and if it doesn't exist, download it automatically,
# then add chromedriver to path
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
Would appreciate a Star :)
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
Close
Hashes for chromedriver-autoinstaller-fix-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a42a3fa3423287a4792f96ed95d280902fab133d5dc6275e003fc25351f878f |
|
MD5 | 441eda34662d5dad9869c3c9e7f93452 |
|
BLAKE2b-256 | 61b1a2948a1fc4dae1ebef4da8dac567e066e03b0c980384e7b88accb13eb1da |