cobrateam / splinter

splinter - python test framework for web applications
http://splinter.readthedocs.org/en/stable/index.html
BSD 3-Clause "New" or "Revised" License
2.71k stars 508 forks source link
automation hacktoberfest python selenium webdriver

++++++++ splinter ++++++++

Splinter is a simple and consistent API for web application automation.

.. |pypi| image:: https://img.shields.io/pypi/v/splinter.svg :target: https://pypi.org/project/splinter :alt: PyPI

.. |pypi_version| image:: https://img.shields.io/pypi/pyversions/splinter.svg :alt: PyPI - Python Version :target: https://github.com/cobrateam/splinter

.. |license| image:: https://img.shields.io/github/license/cobrateam/splinter.svg :alt: License :target: https://github.com/cobrateam/splinter/blob/master/LICENSE

.. |build| image:: https://github.com/cobrateam/splinter/actions/workflows/main.yml/badge.svg :target: https://github.com/cobrateam/splinter/actions/workflows/main.yml :alt: Build status

|pypi| |pypi_version| |license| |build|

Key features:

Example

.. code:: python

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

Page Objects

Support for page objects is available through the following package: