Safe Haskell | None |
---|---|
Language | Haskell98 |
Test.WebDriver.Session
- 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.
Instances
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
Constructors
WDSession | |
Fields
|
lastHTTPRequest :: WDSession -> Maybe Request Source
The last HTTP request issued by this session, if any.
An opaque identifier for a WebDriver session. These handles are produced by the server on session creation, and act to identify a session in progress.