Download or update your Selenium driver binaries and their browsers automatically with this package
Project description
selenium_driver_updater
It is a fast and convenience package that can automatically download or update Selenium webdriver binaries and their browsers for different OS.
Installation
Use the package manager pip to install selenium_driver_updater.
pip install selenium-driver-updater
Usage in code
This example shows how you can use this library to download chromedriver binary.
from selenium_driver_updater import DriverUpdater
import os
base_dir = os.path.dirname(os.path.abspath(__file__))
filename = DriverUpdater.install(path=base_dir, driver_name=DriverUpdater.chromedriver, upgrade=True, check_driver_is_up_to_date=True)
print(filename)
Or you can use library to download and update chromedriver and geckodriver binaries at the same time.
from selenium_driver_updater import DriverUpdater
import os
base_dir = os.path.dirname(os.path.abspath(__file__))
list_drivers = [DriverUpdater.chromedriver, DriverUpdater.geckodriver]
filename = DriverUpdater.install(path=base_dir, driver_name=list_drivers, upgrade=True, check_driver_is_up_to_date=True)
print(filename)
Usage with help of command line
Use
selenium-driver-updater --help
To see all available arguments and commands
Supported Selenium Binaries
Chromedriver
DriverUpdater.chromedriver
For installing or updating chromedriver binary
All supported OS for this driver are:
- Windows
- Linux
- MacOS
- MacOS with M1
Chromium ChromeDriver
DriverUpdater.chromium_chromedriver
For installing or updating chromium_chromedriver binary
All supported OS's for this driver are:
- Linux
Geckodriver
DriverUpdater.geckodriver
For installing or updating geckodriver binary
All supported OS's for this driver are:
- Windows
- Linux
- MacOS
- MacOS with M1
Operadriver
DriverUpdater.operadriver
For installing or updating operadriver binary
All supported OS's for this driver are:
- Windows
- Linux
- MacOS
Edgedriver
DriverUpdater.edgedriver
For installing or updating edgedriver binary
All supported OS's for this driver are:
- Windows
- MacOS
- Linux
- ARM
PhantomJS
DriverUpdater.phantomjs
For installing or updating phantomjs binary
All supported OS's for this driver are:
- Windows
- MacOS
- Linux
Supported browsers for updates
Chrome Browser
For updating chrome browser
All supported OS's for this browser are:
- Windows
- MacOS
- Linux (Tested on Ubuntu 20.04)
Chromium Browser
For updating chromium browser
All supported OS's for this browser are:
- Linux (Tested on Ubuntu 20.04)
Firefox Browser
For updating firefox browser
All supported OS's for this browser are:
- Windows
- MacOS
- Linux (Tested on Ubuntu 20.04)
Opera Browser
For updating opera browser
All supported OS's for this browser are:
- Windows
- MacOS
- Linux (Tested on Ubuntu 20.04)
Edge Browser
For updating edge browser
All supported OS's for this browser are:
- Windows
- MacOS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file selenium_driver_updater-5.0.2.tar.gz
.
File metadata
- Download URL: selenium_driver_updater-5.0.2.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4a88d9a7a4bcbb8f698c2b07c2fd79968bc0ddf34d6e7e82884f42e1b82353 |
|
MD5 | 8a727d532307f3497ab77cc83c8d0845 |
|
BLAKE2b-256 | 595f62e01e6949e1597795a30f0b948915237b1bb461bbd970b53554adc8be97 |