webdriver-0.11.0.0: a Haskell client for the Selenium WebDriver protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.WebDriver.Config

Synopsis

WebDriver configuration

data WDConfig Source #

WebDriver session configuration

Constructors

WDConfig 

Fields

Instances

Instances details
Default WDConfig Source # 
Instance details

Defined in Test.WebDriver.Config

Methods

def :: WDConfig #

GetCapabilities WDConfig Source # 
Instance details

Defined in Test.WebDriver.Config

SetCapabilities WDConfig Source # 
Instance details

Defined in Test.WebDriver.Config

WebDriverConfig WDConfig Source # 
Instance details

Defined in Test.WebDriver.Config

defaultConfig :: WDConfig Source #

A default session config connects to localhost on port 4444, and hasn't been initialized server-side. This value is the same as def but with a less polymorphic type.

Capabilities helpers

modifyCaps :: HasCapabilities t => (Capabilities -> Capabilities) -> t -> t Source #

Modifies the wdCapabilities field of a WDConfig by applying the given function. Overloaded to work with any HasCapabilities instance.

useBrowser :: HasCapabilities t => Browser -> t -> t Source #

A helper function for setting the browser capability of a HasCapabilities instance

useVersion :: HasCapabilities t => String -> t -> t Source #

A helper function for setting the version capability of a HasCapabilities instance

usePlatform :: HasCapabilities t => Platform -> t -> t Source #

A helper function for setting the platform capability of a HasCapabilities instance

useProxy :: HasCapabilities t => ProxyType -> t -> t Source #

A helper function for setting the useProxy capability of a HasCapabilities instance

SessionHistoryConfig options

type SessionHistoryConfig = SessionHistory -> [SessionHistory] -> [SessionHistory] Source #

A function used by wdHistoryConfig to append new entries to session history.

noHistory :: SessionHistoryConfig Source #

No session history is saved.

onlyMostRecentHistory :: SessionHistoryConfig Source #

Saves only the most recent history

Overloadable configuration

class WebDriverConfig c where Source #

Class of types that can configure a WebDriver session.

Methods

mkCaps :: MonadBase IO m => c -> m Capabilities Source #

Produces a Capabilities from the given configuration.

mkSession :: MonadBase IO m => c -> m WDSession Source #

Produces a WDSession from the given configuration.

Instances

Instances details
WebDriverConfig WDConfig Source # 
Instance details

Defined in Test.WebDriver.Config