Skip to main content

Automatically install edgedriver that supports the currently installed version of edge.

Project description

edgedriver-autoinstaller

Automatically download and install edgedriver that supports the currently installed version of edge. This installer supports Linux, MacOS and Windows operating systems.

Installation

pip install edgedriver-autoinstaller

Usage

Just type import edgedriver_autoinstaller in the module you want to use edgedriver.

Example

from selenium import webdriver
import edgedriver_autoinstaller


edgedriver_autoinstaller.install()  # Check if the current version of edgedriver exists
                                      # and if it doesn't exist, download it automatically,
                                      # then add edgedriver to path

driver = webdriver.Edge(executable_path="msedgedriver.exe")
driver.get("http://www.python.org")
assert "Python" in driver.title

Note

Forked from: python-chromedriver-autoinstaller

Most of the work has been done by yeongbin-jo, i only adapted it for Edge.

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

edgedriver-autoinstaller-0.2.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

edgedriver_autoinstaller-0.2.1-py3-none-any.whl (5.9 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