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
Hashes for splinter-0.20.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2fa33988aa00d2bf6ccda53ae820f20eb50178b775af1da51ad9fc907c8653a |
|
MD5 | 1e90e6a9b91fdda4a8330ea637db70c3 |
|
BLAKE2b-256 | 2dfb583aa81d0fc8c773cd2116838497bed14046b29588c58b42f42c4371d2ef |