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:
- Python 3
- Download Google Chrome
- pip install selenium
- 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
-
Navigate to the directory where you've cloned or downloaded the repository
-
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.
Metadata
Release files for webdriver-auto-update 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| webdriver_auto_update-1.2.1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| webdriver_auto_update-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / webdriver_auto_update-1.2.1.tar.gz
| Download URL | webdriver_auto_update-1.2.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95c2d34a04d11f23480252a014b49838d6247369c785f57514e24131c6afe132
|
|
BLAKE2b-256 checksum How to use checksums |
b5e1fc5c5e8faa3ce53a23d50da88c92fb8cc5d4c5bae5476f9fef8f5e09ed8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / webdriver_auto_update-1.2.1-py3-none-any.whl
| Download URL | webdriver_auto_update-1.2.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
249f70599f2d2540effbb7ff083d82a2bbea3e06e532bf28c9ebdee38a63dc8a
|
|
BLAKE2b-256 checksum How to use checksums |
c8258f6b066a753ec9aab4981bc8d2132716a2f74b71c2dc521b30fe00b1f9f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|