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

Test.WebDriver.Internal

Description

The HTTP/JSON plumbing used to implement the WD monad.

These functions can be used to create your own WebDriver instances, providing extra functionality for your application if desired. All exports of this module are subject to change at any point.

Synopsis

Documentation

mkRequest :: (WDSessionState s, ToJSON a) => Method -> Text -> a -> s Request Source #

Constructs an HTTP Request value when given a list of headers, HTTP request method, and URL fragment

sendHTTPRequest :: WDSessionStateIO s => Request -> s (Either SomeException (Response ByteString)) Source #

Sends an HTTP request to the remote WebDriver server

getJSONResult :: (HasCallStack, WDSessionStateControl s, FromJSON a) => Response ByteString -> s (Either SomeException a) Source #

Parses a WDResponse object from a given HTTP response.

data WDResponse Source #

Internal type representing the JSON response object

Constructors

WDResponse 

Instances

Instances details
FromJSON WDResponse Source # 
Instance details

Defined in Test.WebDriver.Internal

Show WDResponse Source # 
Instance details

Defined in Test.WebDriver.Internal

Eq WDResponse Source # 
Instance details

Defined in Test.WebDriver.Internal