webdriver-snoy-0.6.0.4: a Haskell client for the Selenium WebDriver protocol

Safe HaskellNone
LanguageHaskell98

Test.WebDriver.Session

Contents

Synopsis

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.

WebDriver sessions

data WDSession Source

The local state of a WebDriver session. This structure is passed implicitly through all WD computations

Constructors

WDSession 

Fields

wdSessHost :: ByteString
 
wdSessPort :: Int
 
wdSessBasePath :: ByteString
 
wdSessId :: Maybe SessionId

An opaque reference identifying the session to use with WD commands. A value of Nothing indicates that a session hasn't been created yet. Sessions can be created within WD via createSession, or created automatically with runSession

wdSessHist :: [(Request, Response ByteString)]

The complete history of HTTP requests and responses, most recent first.

wdSessHistUpdate :: (Request, Response ByteString) -> [(Request, Response ByteString)] -> [(Request, Response ByteString)]

Update function used to append new entries to session history

wdSessHTTPManager :: Manager

HTTP Manager used for connection pooling by the http-client library.

lastHTTPRequest :: WDSession -> Maybe Request Source

The last HTTP request issued by this session, if any.

newtype SessionId Source

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.

Constructors

SessionId Text