Skip to main content

Automatically install geckodriver that supports the currently installed version of Firefox.

Project description

pyautogecko

Fork of geckodriver-autoinstaller which is no longer mantained. 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 pyautogecko

Usage

Just type import pyautogecko in the module you want to use geckodriver.

Example

from selenium import webdriver
import pyautogecko


pyautogecko.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

pyautogecko-0.1.3.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

pyautogecko-0.1.3-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

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