quickcheck-webdriver-0.1.0.0: Utilities for using WebDriver with QuickCheck

Safe HaskellNone

Test.QuickCheck.Monadic.WebDriver

Contents

Synopsis

Example

 import Test.QuickCheck
 import Test.QuickCheck.Monadic (run, pick, assert)
 import Test.WebDriver
 prop_Example = monadicWD allCaps $ do
     pick $ oneof ("http://www.yesodweb.com", "http://snapframework.com/")
     run $ openPage url
     assert True
     runIO $ putStrLn $ "We've just evaluated a `Gen a` using `pick` and \
                        \a `WD ()` using `run`, then asserted a that a \
                        \property holds using `assert`."