Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 1.07 KB

File metadata and controls

32 lines (22 loc) · 1.07 KB

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.