Skip to main content

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.

Metadata

Release files for hitchselenium 0.6.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hitchselenium 0.6.7
File Size Uploaded Provenance Actions
hitchselenium-0.6.7.tar.gz 10.6 kB Without provenance Details for hitchselenium-0.6.7.tar.gz

Release files / hitchselenium-0.6.7.tar.gz

Download URL hitchselenium-0.6.7.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8a6812383af63acb8823562742ef5e89bd9d19fb9079624254738b9d4cdcc1b6
BLAKE2b-256 checksum
How to use checksums
88bd1a5a8ed16019d904c7511db313b2db6e2bcf37af2a97c031a0686a55844f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hitchselenium 0.6.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.7 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page