Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Steps for web testing using selenium and planterbox

Project Description

A suite of steps for planterbox for web testing with Selenium


  1. Install planterbox and planterbox-webdriver: pip install planterbox planterbox-webdriver

  2. Add a unittest.cfg to your project that enables planterbox:

    plugins = planterbox
    always-on = True

3. Create a package containing your tests; its defines the steps you will have available in your .feature files. This package must be detected by nose2 as containing tests; see nose2’s docs for details.

  1. Add a “before” hook that sets up a webdriver for your tests:

    @hook('before', 'feature')
    def create_webdriver(test):
        from selenium import webdriver
        test.browser = webdriver.Firefox()
  2. from planterbox_webdriver.webdriver import * if you want steps that let you find elements in your tests with XPath

  3. from planterbox_webdriver.css_selector_steps import * for steps that let you find elements in your tests with jQuery-style CSS selectors

  4. Add a .feature file in this package containing tests specified using Gherkin. planterbox will turn these into appropriate test case objects and give them to nose to run.

  5. Run your tests: nose2

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(45.7 kB) Copy SHA256 Hash SHA256
any Wheel May 22, 2017
(42.5 kB) Copy SHA256 Hash SHA256
Source May 22, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting