/selenium-select-any-driver

Automatically selects any driver for selenium that is on the system and can be installed

Primary LanguagePythonMIT LicenseMIT

Select any Driver for Selenium

Automatically selects any driver for selenium that is on the system and can be installed. Compatible devices are: Firefox, Chrome, Edge, IE, Opera

Installation

Clone the repo, move inside the directory and install through pip:

pip install .

Update

Move to the download folder and do:

git pull
pip install .

Usage

In your selenium project, use:

from any_driver_selenium import obtain_selenium_driver

driver = obtain_selenium_driver()

Then you can start using the automatically selected driver.

Example

from any_driver_selenium import obtain_selenium_driver
url = input('Enter the url : ')
driver = obtain_selenium_driver()
driver.get(url)