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

Plugin to run Selenium with firefox using the Hitch testing framework.

Project Description

HitchSelenium

HitchSelenium is a plugin for the Hitch testing framework that wraps selenium and starts firefox, optionally with XVFB so the browser window does not appear.

Use with Hitch

Install like so:

$ hitch install hitchselenium
# Service definition in engine's setUp:
self.services['Firefox'] = hitchselenium.SeleniumService(
    xvfb=False           # Optional (default: False)
)

# N.B. if xvfb is installed and xvfb is set to True, firefox will run hidden.

# Open page and type something into text box with id id_description:
self.driver = self.services['Firefox'].driver
self.driver.get(self.url)
self.driver.find_element_by_id("id_description").send_keys("type something...")

See this service in action at the DjangoRemindMe project.

Features

  • Starts up the browser on a separate thread when running with HitchServe, in parallel with starting other services, so that your integration tests run faster.
  • You can optionally run the Firefox browser visibly and invisibly using XVFB.

Caveats

  • Currently only supports firefox.
  • Might not necessarily work with the latest version of firefox.
  • Faketime is not enabled since firefox does not respond well to it. Javascript will always return system time.

TODO

Download and install specified versions of firefox/chromium in .hitchpkg directory for all versions.

Release History

Release History

This version
History Node

0.6.7

History Node

0.6.6

History Node

0.6.5

History Node

0.6.4

History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.9

History Node

0.5.8

History Node

0.5.7

History Node

0.5.6

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.9

History Node

0.4.8

History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4

History Node

0.3.1

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hitchselenium-0.6.7.tar.gz (10.6 kB) Copy SHA256 Checksum SHA256 Source Jul 20, 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