Skip to main content

browser abstraction for web acceptance testing

Project description

Splinter is a Python framework that provides a simple and consistent interface for web application automation.

PyPI PyPI - Python Version GitHub Build status

Key features:

  • Easy to learn: The API is designed to be intuitive and quick to pick up.

  • Faster to code: Automate browser interactions quickly and reliably without fighting the tool.

  • Powerful: Designed for real world use cases, it guards against common automation quirks.

  • Flexible: Access to lower level tools is never hidden. Break out into raw Selenium at any time.

  • Robust: Support is available for multiple automation drivers (Selenium, Django, Flask, ZopeTestBrowser).

Example

from splinter import Browser


browser = Browser('firefox')
browser.visit('http://google.com')
browser.find_by_name('q').fill('splinter - python acceptance testing for web applications')
browser.find_by_name('btnK').click()

if browser.is_text_present('splinter.readthedocs.io'):
    print("Yes, the official website was found!")
else:
    print("No, it wasn't found... We need to improve our SEO techniques")

browser.quit()

Getting Started

Pytest Plugins

Page Objects

Support for page objects is available through the following package:

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

splinter-0.19.0.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

splinter-0.19.0-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file splinter-0.19.0.tar.gz.

File metadata

  • Download URL: splinter-0.19.0.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for splinter-0.19.0.tar.gz
Algorithm Hash digest
SHA256 ba9603385deb91ffb92b2e0edeed3da58dce3bfa0e0db1a37143c5e64b83ceb2
MD5 63eb9cec10b4d4d7fd72323d00f5116a
BLAKE2b-256 7e516f036d5c0d39034216c4c5cc8057db873af6d4f7e67098a1b3bc7c59b024

See more details on using hashes here.

Provenance

File details

Details for the file splinter-0.19.0-py3-none-any.whl.

File metadata

  • Download URL: splinter-0.19.0-py3-none-any.whl
  • Upload date:
  • Size: 38.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for splinter-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f072570c084f5f7e0c685b6b5d93b1a7959da06cb5da4c3b548dc1b3b0757a0
MD5 4de733be9656fb9a739adfefe3dab7c1
BLAKE2b-256 e5866befb514ff5ab079e79ada0e03b4d89c4d0e96914fa4d214001113539199

See more details on using hashes here.

Provenance

Supported by

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