Skip to main content

Tools for using Selenium WebDriver with Python unit testing

Project description

PyPI GitHub

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:

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

webdriver_test_tools-0.15.0.tar.gz (22.7 kB view hashes)

Uploaded Source

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