Copyright | (c) 2014 Christian Brink |
---|---|
License | MIT |
Maintainer | Christian Brink |
Safe Haskell | None |
Language | Haskell2010 |
Example usage:
> import Test.QuickCheck
> import Test.QuickCheck.Monadic (run, pick, assert)
> import Test.WebDriver
prop_Example = monadicWD context $ do
url :: String <- pick $ elements ["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
."
where context = SessionParams allCaps (return ())
- data Context
- monadicWD :: Context -> PropertyM WD a -> Property
- runIO :: IO a -> PropertyM WD a
- chromeOpts :: [String]
- chrome' :: Browser
- caps :: Browser -> Capabilities
- capsChrome :: Capabilities
- capsFirefox :: Capabilities
- seshParams :: Browser -> Context
- seshParamsChrome :: Context
- seshParamsFirefox' :: Context
- prop_Example :: Property
Documentation
monadicWD :: Context -> PropertyM WD a -> Property Source
Patterned after monadicIO
(and ioProperty
).
chromeOpts :: [String] Source
caps :: Browser -> Capabilities Source
seshParams :: Browser -> Context Source