Skip to main content

Fast Chromedriver Manager is a Python library that automates the download and installation of the correct version of Chromedriver for your browser, ensuring seamless compatibility. This makes it easier to set up environments for Robotic Process Automation (RPA) applications. Ideal for developers using Selenium or other tools that require Chromedriver, this package guarantees that you always have the right version, eliminating compatibility issues between the browser and the driver.

Project description

Fast ChromeDriver Manager

Fast Chromedriver Manager is a Python library that automates the download and installation of the correct version of Chromedriver for your browser, ensuring seamless compatibility. This makes it easier to set up environments for Robotic Process Automation (RPA) applications. Ideal for developers using Selenium or other tools that require Chromedriver, this package guarantees that you always have the right version, eliminating compatibility issues between the browser and the driver.

Current version: 1.0.6

Features

  • Automatic Download: Automatically downloads and installs the appropriate version of ChromeDriver based on the installed version of Chrome.
  • Compatibility Assurance: Ensures that the ChromeDriver version matches the installed Chrome version, avoiding version mismatches.
  • Easy Integration: Seamlessly integrates into existing automation scripts, reducing setup and configuration time.
  • Customization: Offers flexibility to customize the download directory and other aspects of the ChromeDriver installation process.

Note

  • Current Support: The current version of fast-chromedriver-manager supports only Windows 64-bit systems. Support for other platforms will be added in future releases.

Usage Example

from fast_chromedriver_manager import FastChromeDriverManager

chromedriver_path = FastChromeDriverManager().install()

print(f"ChromeDriver is installed at: {chromedriver_path}")

Usage example with specified Chromedriver path

from fast_chromedriver_manager import FastChromeDriverManager

path = 'my_path'
chromedriver_path = FastChromeDriverManager(path).install()

print(f"ChromeDriver is installed at: {chromedriver_path}")

Usage Example with Selenium

from selenium import webdriver
from fast_chromedriver_manager import FastChromeDriverManager

# Set up the WebDriver with the path to the ChromeDriver
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(executable_path=FastChromeDriverManager().install(), options=options)

# Open a website and perform actions
driver.get('https://www.example.com')

# Print the title of the webpage
print(f"Page title is: {driver.title}")

# Close the browser
driver.quit()

Usage Example with Selenium and Service

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from fast_chromedriver_manager import FastChromeDriverManager

# Set up the WebDriver with the path to the ChromeDriver using Service
service = Service(executable_path=FastChromeDriverManager().install())
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=service, options=options)

# Open a website and perform actions
driver.get('https://www.example.com')

# Print the title of the webpage
print(f"Page title is: {driver.title}")

# Close the browser
driver.quit()

Exceptions

The library raises custom exceptions to handle specific errors:

  • ChromeVersionError: Raised when the Chrome version cannot be determined.
  • ChromeDriverDownloadError: Raised when the ChromeDriver download fails.

Support

For support, please contact:

Fernando Manfré: fn.manfre@gmail.com

Contribution

Contributions are welcome! Feel free to open issues or submit pull requests.

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

fast_chromedriver_manager-1.0.6.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_chromedriver_manager-1.0.6-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file fast_chromedriver_manager-1.0.6.tar.gz.

File metadata

File hashes

Hashes for fast_chromedriver_manager-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9e37a799f5d72fc19d39f28b736dfc1712b4dc445d7fc7f254988cfb56ac8371
MD5 31d342b6ef656a7cce7c8ffbc795c7d3
BLAKE2b-256 f114ffaaa2144a9cf15570cd72171fa89cb041669f8ae1ff73f166e5dc817798

See more details on using hashes here.

File details

Details for the file fast_chromedriver_manager-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for fast_chromedriver_manager-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ac7b65b178c26496b7fc5754b80f44378e13fa12e4248d3f71328b22ea176a66
MD5 0004ca8b21b736d87a21512d2a7585a4
BLAKE2b-256 2a2928ce564ce6f3eb05fb54ed7d7a0da974fc9f7ba70d5e973e51bd92438c5d

See more details on using hashes here.

Supported by

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