Automatically install geckodriver that supports the currently installed version of chrome.
Project description
geckodriver-autoinstaller
Automatically download and install geckodriver that supports the currently installed version of firefox. This installer supports Linux, MacOS and Windows operating systems.
Installation
pip install geckodriver-autoinstaller
Usage
Just type import geckodriver_autoinstaller
in the module you want to use geckodriver.
Example
from selenium import webdriver
import geckodriver_autoinstaller
geckodriver_autoinstaller.install() # Check if the current version of geckodriver exists
# and if it doesn't exist, download it automatically,
# then add geckodriver to path
driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
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
Built Distribution
File details
Details for the file geckodriver-autoinstaller-0.1.0.tar.gz
.
File metadata
- Download URL: geckodriver-autoinstaller-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08953404903750a7e0905913d86eab13849c75ed61eb281c45697d9f5b5e2eb2 |
|
MD5 | 640b105ac4e7443110907ded7e8bbcad |
|
BLAKE2b-256 | c7bff7fa0998e7afeeed402f6706866eca36d6c2ebbf9447f4d425a6447552ea |
File details
Details for the file geckodriver_autoinstaller-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: geckodriver_autoinstaller-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 609236aab9c111af10685cab1ab5551ce86b471101b6add34642545bc7e84bdc |
|
MD5 | e00046c30874c3f5aad1279cc468846c |
|
BLAKE2b-256 | 99a0527dd9b38cbb198e12ac1878a51cd86136222ffc1d131039e6286a6b57dc |