Project: chromedriver-autoinstaller

Automatically install chromedriver that supports the currently installed version of chrome.

Project Details

Latest version
0.6.3
Home Page
https://github.com/yeongbin-jo/python-chromedriver-autoinstaller
PyPI Page
https://pypi.org/project/chromedriver-autoinstaller/

Project Popularity

PageRank
0.0021979240905349233
Number of downloads
262759

chromedriver-autoinstaller

Automatically download and install chromedriver that supports the currently installed version of chrome. This installer supports Linux, MacOS and Windows operating systems.

Installation

pip install chromedriver-autoinstaller

Usage

Just type import chromedriver_autoinstaller in the module you want to use chromedriver.

Example

from selenium import webdriver
import chromedriver_autoinstaller


chromedriver_autoinstaller.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