| Copyright | 2018 Automattic Inc. |
|---|---|
| License | GPL-3 |
| Maintainer | Nathan Bloomfield (nbloomf@gmail.com) |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Api.WebDriver.Helpers
Description
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) => Text -> WebDriverTT t eff ()
- loadCookies :: (Monad eff, Monad (t eff), MonadTrans t) => Text -> WebDriverTT t eff Bool
- press :: Key -> Action
- typeString :: Text -> Action
Data
Arguments
| :: (Monad eff, Monad (t eff), MonadTrans t) | |
| => FilePath | File path, relative to |
| -> ByteString | |
| -> WebDriverTT t eff () |
Write a ByteString to the data directory
Arguments
| :: (Monad eff, Monad (t eff), MonadTrans t) | |
| => FilePath | File path, relative to |
| -> WebDriverTT t eff ByteString |
Read a ByteString from the data directory
Arguments
| :: (Monad eff, Monad (t eff), MonadTrans t, ToJSON a) | |
| => FilePath | File path, relative to |
| -> a | |
| -> WebDriverTT t eff () |
Write JSON to the data directory
Arguments
| :: (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
Arguments
| :: (Monad eff, Monad (t eff), MonadTrans t) | |
| => Text | Passed through SHA1, and the digest is used as the filename. |
| -> WebDriverTT t eff () |
Save all cookies for the current domain to a file.
Arguments
| :: (Monad eff, Monad (t eff), MonadTrans t) | |
| => Text | 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 :: Text -> Action Source #
Simulate typing some text.