Copyright | 2018 Automattic Inc. |
---|---|
License | GPL-3 |
Maintainer | Nathan Bloomfield (nbloomf@gmail.com) |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- writeDataFile :: (Monad eff, Monad (t eff), MonadTrans t) => FilePath -> ByteString -> WebDriverTT t eff ()
- readDataFile :: (Monad eff, Monad (t eff), MonadTrans t) => FilePath -> WebDriverTT t eff ByteString
- writeJsonFile :: (Monad eff, Monad (t eff), MonadTrans t, ToJSON a) => FilePath -> a -> WebDriverTT t eff ()
- readJsonFile :: (Monad eff, Monad (t eff), MonadTrans t) => FilePath -> WebDriverTT t eff Value
- stashCookies :: (Monad eff, Monad (t eff), MonadTrans t) => String -> WebDriverTT t eff ()
- loadCookies :: (Monad eff, Monad (t eff), MonadTrans t) => String -> WebDriverTT t eff Bool
- press :: Key -> Action
- typeString :: String -> Action
Data
:: (Monad eff, Monad (t eff), MonadTrans t) | |
=> FilePath | File path, relative to |
-> ByteString | |
-> WebDriverTT t eff () |
Write a ByteString
to the data directory
:: (Monad eff, Monad (t eff), MonadTrans t) | |
=> FilePath | File path, relative to |
-> WebDriverTT t eff ByteString |
Read a ByteString
from the data directory
:: (Monad eff, Monad (t eff), MonadTrans t, ToJSON a) | |
=> FilePath | File path, relative to |
-> a | |
-> WebDriverTT t eff () |
Write JSON to the data directory
:: (Monad eff, Monad (t eff), MonadTrans t) | |
=> FilePath | File path, relative to |
-> WebDriverTT t eff Value |
Read a JSON Value
from the data directory
Secrets
:: (Monad eff, Monad (t eff), MonadTrans t) | |
=> String | Passed through SHA1, and the digest is used as the filename. |
-> WebDriverTT t eff () |
Save all cookies for the current domain to a file.
:: (Monad eff, Monad (t eff), MonadTrans t) | |
=> String | Passed through SHA1, and the digest is used as the filename. |
-> WebDriverTT t eff Bool |
Load cookies from a file saved with stashCookies
. Returns False
if the cookie file is missing or cannot be read.
Actions
typeString :: String -> Action Source #
Simulate typing some text.