Skip to content

cobrateam/splinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb0b64e · Jun 9, 2024
May 28, 2024
May 30, 2024
Jun 6, 2024
May 2, 2024
May 30, 2024
Jun 9, 2024
Jun 4, 2012
Aug 3, 2017
May 2, 2024
Nov 11, 2023
Dec 9, 2021
May 29, 2024
Jun 4, 2012
May 30, 2024
May 17, 2024
Jan 9, 2024
Feb 20, 2024
Jun 4, 2012
May 28, 2024

Repository files navigation

splinter

Splinter is a Python framework that provides a simple and consistent interface for web application automation.

PyPI PyPI - Python Version License Build status

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

Page Objects

Support for page objects is available through the following package: