browser abstraction for web acceptance testing
Project description
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).
First steps
Splinter open source project
Documentation
External links
salad, a nice mix of great BDD ingredients (splinter + lettuce integration)
behave-django, BDD testing in Django using Behave. Works well with splinter.
pytest-splinter, Splinter plugin for the py.test runner.
PyPOM, PyPOM, or Python Page Object Model, is a Python library that provides a base page object model for use with Selenium or Splinter functional tests.
pypom_form, is a PyPOM based package that provides declarative schema based form interaction for page object models compatible with Splinter.
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 Distributions
Hashes for splinter-0.15.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f63f946fd96b750b4fd3c49ffb17abd6dc03d094b4836753e6be33f53fcfee1 |
|
MD5 | b0bdbfaeccfd721e47ab033a8ef7dc35 |
|
BLAKE2b-256 | f0986b36034b8fe5d0759d30f27feba52ed2a307eeb55831f248adaab81536cd |
Hashes for splinter-0.15.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b9d992352953cdd61ca8ece9616c9f214b47caebf8893266cb46bce60f6d60 |
|
MD5 | 1609437a6a19a6d0065d8377b5083187 |
|
BLAKE2b-256 | 258cae56061fe0194ccfd6066fc351e6d23d5e8a7cdd6b76560bd9021b946556 |