HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulewebdriver-0.12.0.1Haskell2010

Test.WebDriver.Session

  • 6 types
  • 1 class
  • 9 values

WDSessionState class

5 declarations
classclass (Monad m, Applicative m) => WDSessionState (m :: Type -> Type) where
#

A class for monads that carry a WebDriver session with them. The MonadBaseControl superclass is used for exception handling through the lifted-base package.

Methods

Instances11WDSessionState, …
valuewithSession :: WDSessionStateControl m => WDSession -> m a -> m a
#

Locally sets a session state for use within the given action. The state of any outside action is unaffected by this function. This function is useful if you need to work with multiple sessions simultaneously.

WebDriver sessions

datadata WDSession
#

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

Constructors

newtypenewtype SessionId
#

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

Instances6Eq, Ord, Read, Show, FromJSON, ToJSON
  • Eq SessionIdDefined in webdriver-0.12.0.1 · Test.WebDriver.Session
  • Ord SessionIdDefined in webdriver-0.12.0.1 · Test.WebDriver.Session
  • Read SessionIdDefined in webdriver-0.12.0.1 · Test.WebDriver.Session
  • Show SessionIdDefined in webdriver-0.12.0.1 · Test.WebDriver.Session
  • FromJSON SessionIdDefined in webdriver-0.12.0.1 · Test.WebDriver.Session
  • ToJSON SessionIdDefined in webdriver-0.12.0.1 · Test.WebDriver.Session

SessionHistoryConfig options

4 declarations

Using custom HTTP request headers

2 declarations
valuewithAuthHeaders :: WDSessionStateControl m => m a -> m a
#

Makes all webdriver HTTP requests in the given action use the session's auth headers, typically configured by setting the wdAuthHeaders config. This is useful if you want to temporarily use the same auth headers you used for session creation with other HTTP requests.