Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data WDConfig = WDConfig {}
- defaultConfig :: WDConfig
- modifyCaps :: HasCapabilities t => (Capabilities -> Capabilities) -> t -> t
- useBrowser :: HasCapabilities t => Browser -> t -> t
- useVersion :: HasCapabilities t => String -> t -> t
- usePlatform :: HasCapabilities t => Platform -> t -> t
- useProxy :: HasCapabilities t => ProxyType -> t -> t
- type SessionHistoryConfig = SessionHistory -> [SessionHistory] -> [SessionHistory]
- noHistory :: SessionHistoryConfig
- unlimitedHistory :: SessionHistoryConfig
- onlyMostRecentHistory :: SessionHistoryConfig
- class WebDriverConfig c where
WebDriver configuration
WebDriver session configuration
WDConfig | |
|
Instances
Default WDConfig Source # | |
Defined in Test.WebDriver.Config | |
GetCapabilities WDConfig Source # | |
Defined in Test.WebDriver.Config getCaps :: WDConfig -> Capabilities Source # | |
SetCapabilities WDConfig Source # | |
Defined in Test.WebDriver.Config | |
WebDriverConfig WDConfig Source # | |
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.
unlimitedHistory :: SessionHistoryConfig Source #
Keep unlimited history
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.