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
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__))
result, message, 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]
result, message, filename = DriverUpdater.install(path=base_dir, driver_name=list_drivers, upgrade=True, check_driver_is_up_to_date=True)
print(filename)
Supported Selenium Binaries
Chromedriver (DriverUpdater.chromedriver)
- Windows
- Linux
- MacOS
- MacOS with M1
Chromium ChromeDriver (DriverUpdater.chromium_chromedriver)
- Linux
Geckodriver (DriverUpdater.geckodriver)
- Windows
- Linux
- MacOS
- MacOS with M1
Operadriver (DriverUpdater.operadriver)
- Windows
- Linux
- MacOS
Edgedriver (DriverUpdater.edgedriver)
- Windows
- MacOS
- ARM
Supported browsers for updates
Chrome Browser
- Windows
- MacOS
- Linux (Tested on Ubuntu 20.04)
Chromium Browser
- Linux (Tested on Ubuntu 20.04)
Firefox Browser
- Windows
- MacOS
- Linux (Tested on Ubuntu 20.04)
Opera Browser
- Windows
- MacOS
- Linux (Tested on Ubuntu 20.04)
Edge Browser
- 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
Close
Hashes for selenium_driver_updater-3.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b98f470afdf6fe6e767b7b0cc2ae44ce183b517e703c850e7fe7eccbcfcd98f |
|
MD5 | 36a444e4c27668a4acf4b0df3ed1aad6 |
|
BLAKE2b-256 | 90d07116fb4c421e1b31dce58654b15b92346e773e6ed88d826d812b737cbcb2 |