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('btnG').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
- Django Full Stack Testing and BDD with Lettuce and Splinter
- Testes de aceitação com Lettuce e Splinter (pt-br)
- 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.
Commit History @94dff070-3c10-426e-ad9b-19c94abfae92/upstream
- Import upstream version 0.14.0 Kali Janitor 3 years ago
- setup: bump to 0.14.0 Andrews Medina 4 years ago
- add 0.14.0 release notes Andrews Medina 4 years ago
- Add FindLinks api to non-webdrivers (#762) Frank Tackitt (commit: GitHub) 4 years ago
- Allow zope on python3 (#771) Joshua Fehler (commit: GitHub) 4 years ago
- Fix WebDriverElement.screenshot when parent is a WebDriverElement (#769) Joshua Fehler (commit: GitHub) 4 years ago
- Headless Firefox is possible (#768) Michał Pasternak (commit: GitHub) 4 years ago
- Fix mouse out on elements in the left corner of the viewport (#766) Joshua Fehler (commit: GitHub) 4 years ago
- Fix fullscreen argument for firefox (#765) Joshua Fehler (commit: GitHub) 4 years ago
- Fix unexpected keyword argument 'original_find' (#758) ShellCode (commit: GitHub) 4 years ago