test your web applications using Splinter
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.
from splinter import Browser
with Browser() as browser:
# Visit URL
url = "http://www.google.com"
browser.fill('q', 'splinter - python acceptance testing for web applications')
# Find and click the 'search' button
button = browser.find_by_name('btnK')
# Interact with elements
print "Yes, the official website was found!"
print "No, it wasn't found... We need to improve our SEO techniques"
- simple api
- multi webdrivers (chrome webdriver, firefox webdriver, phantomjs webdriver, zopetestbrowser, remote webdriver)
- css and xpath selectors
- support to iframe and alert