Skip to main content

browser abstraction for web acceptance testing

Project description

https://secure.travis-ci.org/cobrateam/splinter.svg?branch=master

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).

Changelog

First steps

Splinter open source project

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

splinter-0.17.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

splinter-0.17.0-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file splinter-0.17.0.tar.gz.

File metadata

  • Download URL: splinter-0.17.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for splinter-0.17.0.tar.gz
Algorithm Hash digest
SHA256 0fef9b632a0e220fe9cad7df1e2d5119932b6d2baf7843b80334248d6fda62d9
MD5 bd13b304379f424582f9c0c8496256c5
BLAKE2b-256 53ba12be8f4b433e49fb9f5dfed62ae13f3871dff265625fb291f32cae3a364e

See more details on using hashes here.

Provenance

File details

Details for the file splinter-0.17.0-py3-none-any.whl.

File metadata

  • Download URL: splinter-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for splinter-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4721b22a5e0a8592cec90b07d35bf5f6c11ea06af1dc83409898f150b118ed11
MD5 f879bf9f66b549751d95e7e624d3e0a6
BLAKE2b-256 211e43086739a53c848705d1f050d73978fe92bf0e04762f90a3e8c583126e60

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page