Acceptance test framework for web applications https://github.com/cstrahan/happybara

Latest on Hackage:0.0.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Charles Strahan


Happybara is an acceptance test framework inspired by the popular Ruby library "Capybara". A short example of Happybara's expressive DSL:

visit "http://happybara-is-awesome.com"
within $ xpath "//form[@id='vote-for-happybara']" $ do
   fillIn (fillableField "First Name" [ ]) "Bob"
   fillIn (fillableField "Last Name"  [ ]) "Smith"

   click $ button "Vote!" [ disabled False ]

Learning Happybara

I would suggest start with these resources (in order):

Happy web testing!

comments powered byDisqus