browser abstraction for web acceptance testing
Project description
Splinter is a Python framework that provides a simple and consistent interface for web application automation.
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
pytest-splinter, Splinter plugin for the py.test runner.
Page Objects
Support for page objects is available through the following package:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file splinter-0.21.0.tar.gz
.
File metadata
- Download URL: splinter-0.21.0.tar.gz
- Upload date:
- Size: 30.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60cbbec9209acefccf39608d677eecdb248bbd700023663ce406595322c38fe5 |
|
MD5 | 60e98de0e5eb2ff87b44a38be9daf60c |
|
BLAKE2b-256 | fd7fafb1788635b3532dfb9e2f21698ce8825e99714750ae4bf30bbc3ecaa9d5 |
File details
Details for the file splinter-0.21.0-py3-none-any.whl
.
File metadata
- Download URL: splinter-0.21.0-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c9e5962ce25f468b2dd52effbd1445afd7466740f238e564c6b70f7fda9368f |
|
MD5 | c9c5d32f30bbb1e8b30933f0e1a8203c |
|
BLAKE2b-256 | 1067ecd32a6a634e10a222aabe2b0a15b19857013ec8b1150cc664df79c025fa |