easy-integration icon indicating copy to clipboard operation
easy-integration copied to clipboard

A simple API for easy, intuitive integration testing of python web apps.

#INSTALLATION

From the command-line(may need root privileges):

$ pip install git+git://github.com/mleone/easy-integration.git

#USAGE

From your application's test suite:

from easy_integration import browser

#API EXAMPLES

# Returns True if the page contains the exact text, False otherwise:
browser.displays("Hello world!")

#The "click" function is meant to handle the vast majority of browser interaction.

# Click a text element with matching text:
browser.click("View user profile")

# Click a button with matching value:
browser.click("Submit")

# Click the first element that matches the given css selector:
browser.click("form .submit-button")

#Fill in a text or password field:
browser.fill_in("email", "[email protected]")
browser.fill_in("password", "abcd1234")

#Select an item from a drop-down list, matching the option's id attribute:
browser.select("country", "USA")
browser.select("state", "Rhode Island")