Package: get-chrome-driver
Get ChromeDriverA tool to download and install ChromeDriver. Automatically download a ChromeDriver version for the current installed
Chrome version. Or you can choose to download the beta version (if one is currently available), the stable version or
another specific version. You can use this tool as a package import or as a command-line application.This Python package runs through a Jenkins test pipeline every hour to ensure proper functionality.InstallTo install:pip install get-chrome-driverTo upgrade:pip install get-chrome-driver --upgradeUsageInstall and use ChromeDriver with Seleniumimporttimefromget_chrome_driverimportGetChromeDriverfromseleniumimportwebdriver# Install the driver:# Downloads ChromeDriver for the installed Chrome version on the machine# Adds the downloaded ChromeDriver to pathget_driver=GetChromeDriver()get_driver.install()# Use the installed ChromeDriver with Seleniumdriver=webdriver.Chrome()driver.get("https://google.com")time.sleep(3)driver.quit()For downloading onlyfromget_chrome_driverimportGetChromeDriverget_driver=GetChromeDriver()# Print the stable versionprint(get_driver.stable_version())# Print the stable version download linkprint(get_driver.stable_version_url())# Print the download link of a specific versionprint(get_driver.version_url('84.0.4147.30'))# Auto download ChromeDriver for the installed Chrome version# Optional: use output_path= to specify where to download the driver# Optional: use extract=True to extract the fileget_driver.auto_download(extract=True)# Download the stable driver version# Optional: use output_path= to specify where to download the driver# Optional: use extract=True to extract the zip fileget_driver.download_stable_version(extract=True)# Download a specific driver version# Optional: use output_path= to specify where to download the driver# Optional: use extract=True to extract the fileget_driver.download_version('84.0.4147.30',extract=True)Command-linePrint the stable version url of all platforms:get-chrome-driver --latest-urlsPrint the stable version:get-chrome-driver --stable-versionPrint the stable version url:get-chrome-driver --stable-urlAuto download ChromeDriver for the current installed Chrome version and extract the file:get-chrome-driver --auto-download --extractDownload the stable version and extract the file:get-chrome-driver --download-stable --extractDownload a specific version and extract the file:get-chrome-driver --download-version 84.0.4147.30 --extractThe downloaded driver can be found at:<current directory>/<chromedriver>/<version>/<bin>/<chromedriver>Note: Beta version related options and functions will only work if one is currently available.Options--help                      Show help.

--beta-version              Print the beta version.

--stable-version            Print the stable version.

--latest-urls               Print the beta and stable version urls for all platforms.

--version-url               Print the url of a version.

--beta-url                  Print the beta version url.

--stable-url                Print the stable version url.

--auto-download             Download a ChromeDriver version for the installed Chrome Version.

--download-beta             Download the beta version.

--download-stable           Download the stable version.

--download-version          Download a specific version.

--extract                   Extract the compressed driver file.

--version                   App version.