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 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.

Project details


Download files

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

Source Distribution

hitchselenium-0.6.7.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file hitchselenium-0.6.7.tar.gz.

File metadata

  • Download URL: hitchselenium-0.6.7.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hitchselenium-0.6.7.tar.gz
Algorithm Hash digest
SHA256 8a6812383af63acb8823562742ef5e89bd9d19fb9079624254738b9d4cdcc1b6
MD5 768e75722ebc2dd42b485a6d631dd859
BLAKE2b-256 88bd1a5a8ed16019d904c7511db313b2db6e2bcf37af2a97c031a0686a55844f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page