Skip to main content

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.

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 other services, so that your integration tests run faster.
  • You can optionally run the Firefox browser visibly and invisibly using XVFB.
  • Comes pre-installed with Selenium IDE firefox plugin so you can record clicks and generate python code to copy and paste during a paused test.

Caveats

  • Currently only supports firefox.
  • Might not necessarily work with the latest version of firefox.
  • Does not correctly pick up the faked time from libfaketime; reports system time instead.
  • Selenium IDE does not work under all circumstances. Seems to fail on Mac OS.

Project details


Download files

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

Files for hitchselenium, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size hitchselenium-0.3.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page