Skip to main content

A tool for managing ChromeDriver downloads and updates

Project description

webdriver_auto_update

A tool for managing ChromeDriver downloads and updates

Features

  • Automatically downloads the latest stable version of ChromeDriver.
  • Compares the local ChromeDriver version with the latest online version.
  • Updates ChromeDriver to the latest version if necessary.
  • Works on Windows, Linux, and macOS.

Getting Started

Pre-requisites:

  1. Python 3
  2. Download Google Chrome
  3. pip install selenium
  4. Additional required packages listed in requirements.txt.

Installation (Option 1)

Clone this repository from GitHub

git clone https://github.com/competencytestlvl/webdriver_auto_update.git

Installation (Option 2)

Install the required package from PyPI:

pip install webdriver-auto-update

Usage

  1. Navigate to the directory where you've cloned or downloaded the repository

  2. Run the following example:

    from webdriver_auto_update.chrome_app_utils import ChromeAppUtils
    from webdriver_auto_update.webdriver_manager import WebDriverManager
    
    # Using ChromeAppUtils to inspect Chrome application version
    chrome_app_utils = ChromeAppUtils()
    chrome_app_version = chrome_app_utils.get_chrome_version()
    print("Chrome application version: ", chrome_app_version)
    
    # Target directory to store chromedriver
    driver_directory = "/path/to/driver/directory"
    
    # Create an instance of WebDriverManager
    driver_manager = WebDriverManager(driver_directory)
    
    # Call the main method to manage chromedriver
    driver_manager.main()
    

Note

  • The objective of this program is to reduce redundancy of searching and downloading the updated version of chrome driver to the OpenSource community.
  • Intended to be used in Selenium projects, browser testing or web automation.

Contributing

Contributions are welcome! If you find any issues or want to add new features, feel free to submit a pull request or reach out to me.

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

webdriver_auto_update-1.2.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

webdriver_auto_update-1.2.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file webdriver_auto_update-1.2.0.tar.gz.

File metadata

  • Download URL: webdriver_auto_update-1.2.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for webdriver_auto_update-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c2d74dfe5bc589990e714650f4c364199220c4e5d7ab237812245b8ab7a1e5b4
MD5 23024ac7649e9940b892a52c697b8aa6
BLAKE2b-256 d8bc9a213b8f14f73df640abf94e9e93522c8944faca5effc6b8f1aa4f39d5f1

See more details on using hashes here.

File details

Details for the file webdriver_auto_update-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for webdriver_auto_update-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64fc3f3fc3e1f491b79b9d0c17c3c92007680350411119ddc00470e46cae9e76
MD5 33c45c7481dc9ab662a355b7267c666f
BLAKE2b-256 bc7a835fb0d72fc8328c77aad79991ffe974b4dc5ba75d29c173475280758ce3

See more details on using hashes here.

Supported by

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