Skip to content

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

License

Notifications You must be signed in to change notification settings

mleone/easy-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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")

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages