Skip to main content

browser abstraction for web acceptance testing

Project description

PyPI PyPI - Python Version GitHub Build status

splinter - python tool for testing web applications

splinter is an open source tool for testing web applications using Python. It lets you automate browser actions, such as visiting URLs and interacting with their items.

Sample code

from splinter import Browser

browser = Browser()
browser.visit('http://google.com')
browser.fill('q', '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()

Note: if you don’t provide any driver argument to the Browser function, firefox will be used (Browser function documentation).

Changelog

First steps

Splinter open source project

Documentation

Pytest Plugins

Page Objects

Support for page objects is available through the following package:

Deprecated projects:
  • PyPOM, A base page object model for use with Selenium or Splinter functional tests.

  • pypom_form, A PyPOM based package that provides declarative schema based form interaction for page object models compatible with Splinter.

Other Projects Using Splinter

Presentations & Tutorials

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.18.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

splinter-0.18.1-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: splinter-0.18.1.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for splinter-0.18.1.tar.gz
Algorithm Hash digest
SHA256 4a14a9d1f9d1372c64b666627ef4e103d759379bc1a9bde0c487e00d70976b1e
MD5 698393ca480b18fc475fcf7a3a81b0a0
BLAKE2b-256 bcdd0ee4d53a3e652cebb045ef5507dd319d929170895667f16fe0c992b49ae2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: splinter-0.18.1-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for splinter-0.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 616da85a0c99bef00b59e75eb29e2e48162027c68ccb81a12d1dfe6d26209692
MD5 12442a5df7fd2ad48a38219e61d0d105
BLAKE2b-256 ce9b71ec0174c6eb316b71e30f09ea252bffd622c3587127e7597beecdee5835

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