Safe Haskell | None |
---|---|
Language | Haskell98 |
- class MonadBaseControl IO s => WDSessionState s where
- getSession :: s WDSession
- putSession :: WDSession -> s ()
- modifySession :: WDSessionState s => (WDSession -> WDSession) -> s ()
- data WDSession = WDSession {
- wdSessHost :: ByteString
- wdSessPort :: Int
- wdSessBasePath :: ByteString
- wdSessId :: Maybe SessionId
- wdSessHist :: [(Request, Response ByteString)]
- wdSessHistUpdate :: (Request, Response ByteString) -> [(Request, Response ByteString)] -> [(Request, Response ByteString)]
- wdSessHTTPManager :: Manager
- lastHTTPRequest :: WDSession -> Maybe Request
- newtype SessionId = SessionId Text
WDSessionState class
class MonadBaseControl IO s => WDSessionState s where Source
A class for monads that carry a WebDriver session with them. The MonadBaseControl superclass is used for exception handling through the lifted-base package.
getSession :: s WDSession Source
putSession :: WDSession -> s () Source
WDSessionState WD | |
WDSessionState m => WDSessionState (MaybeT m) | |
WDSessionState m => WDSessionState (IdentityT m) | |
(Error e, WDSessionState m) => WDSessionState (ErrorT e m) | |
WDSessionState m => WDSessionState (ReaderT r m) | |
WDSessionState m => WDSessionState (StateT s m) | |
WDSessionState m => WDSessionState (StateT s m) | |
(Monoid w, WDSessionState m) => WDSessionState (WriterT w m) | |
(Monoid w, WDSessionState wd) => WDSessionState (RWST r w s wd) | |
(Monoid w, WDSessionState m) => WDSessionState (RWST r w s m) |
modifySession :: WDSessionState s => (WDSession -> WDSession) -> s () Source
WebDriver sessions
The local state of a WebDriver session. This structure is passed
implicitly through all WD
computations
WDSession | |
|
lastHTTPRequest :: WDSession -> Maybe Request Source
The last HTTP request issued by this session, if any.