Tools for using Selenium WebDriver with Python unit testing
Project description
Utilities for writing front-end test suites using Selenium WebDriver and python unit tests.
Overview
This project aims to reduce the amount of time and additional code required to automate front-end functional testing by providing utilities and conventions for building test suites.
This project uses Selenium WebDriver for automated browser actions and the python unittest library for the test framework.
Prerequisites
Python
python 3+
pip
Drivers
Required
The following web drivers are required:
geckodriver (FireFox)
chromedriver (Google Chrome)
On MacOS, both drivers can be installed using Homebrew:
brew install geckodriver chromedriver
Platform-Specific (Optional)
The project currently supports the following platform-specific drivers as well. These are not required, but can be useful for adding tests for platform-specific drivers:
These need to be enabled in <test_package>/config/browser.py by uncommenting the corresponding line in BrowserConfig.BROWSER_TEST_CLASSES.
For information on usage and considerations, see the additional browsers documentation.
Libraries
The framework uses Selenium WebDriver and python unittest libraries, documentation for which can be found below:
Installation
After installing the above prerequisites, run:
pip install webdriver-test-tools
Note: Command may be pip3 instead of pip depending on the system
Command Line Usage
For info on command line arguments:
webdriver_test_tools --help
To initialize a new test project in the current directory:
webdriver_test_tools --init
This will generate a new test package with template files and project directories. For information and examples, see the test project documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for webdriver_test_tools-0.14.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24252fab4d96792fdca6935b164b6387cb13b0da2d4122d0be7e3d19d90d92a |
|
MD5 | baa164e2af8a0c929f1b81503b81aa3b |
|
BLAKE2b-256 | e389aebbab7fd4c1083e5d8897205fb7a230c1beb7ce629bc0476b0004e3e422 |