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.browser import Browser
browser = Browser()
# Visit URL
url = "http://www.google.com"
browser.visit(url)
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
button.click()
if browser.is_text_present('splinter.cobrateam.info'):
print "Yes, the official website was found!"
else:
print "No, it wasn't found... We need to improve our SEO techniques"
features
- simple api
- multi webdrivers (chrome, firefox, zopetestbrowser)
- css and xpath selectors
- support to iframe and alert
- execute javascript
- work's with ajax and async javascript
getting started
when you're ready to test, read the installation guide and tutorial.
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.browser import Browser
browser = Browser()
# Visit URL
url = "http://www.google.com"
browser.visit(url)
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
button.click()
if browser.is_text_present('splinter.cobrateam.info'):
print "Yes, the official website was found!"
else:
print "No, it wasn't found... We need to improve our SEO techniques"
features
- simple api
- multi webdrivers (chrome, firefox, zopetestbrowser)
- css and xpath selectors
- support to iframe and alert
- execute javascript
- work's with ajax and async javascript
getting started
when you're ready to test, read the installation guide and tutorial.