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.
Features:
Utilities and extended functionality for the Selenium WebDriver package
Pre-defined test methods for commonly used test procedures
Unit testing framework for automated tests on multiple browsers
Implementation of the Page Object Model and pre-defined page objects for common elements (navbars, forms, etc)
Command line tool for quickly generating files and directories for new test projects
Support for automating tests on BrowserStack
This project uses Selenium WebDriver for automated browser actions and the python unittest library for the test framework, documentation for which can be found below:
Prerequisites
Python
python 3+
pip
Drivers
In order to use Selenium, drivers will need to be installed for any browser tests will be run on.
Cross-Platform
The following cross-platform browser drivers are supported and enabled by default:
geckodriver (FireFox)
chromedriver (Google Chrome)
These can be disabled in <test_package>/config/browser.py by commenting out the corresponding line in BrowserConfig.BROWSER_TEST_CLASSES.
Platform-Specific
The following platform-specific drivers are supported:
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.
Installation
The package can be installed using pip:
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.21.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 355a850c3c3982f5b11ee88d2d56245862555c77470ca162ba97134f48896cd2 |
|
MD5 | 4731d97f0bb388a0221728af48725e18 |
|
BLAKE2b-256 | ad69326e8237cc318ab07a8f6d3131adc5c50c89c714ccb50dbadfaffa840c8a |