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

Test.WebDriver.Class

Synopsis

WebDriver class

class WDSessionStateControl wd => WebDriver wd where Source #

A class for monads that can handle wire protocol requests. This is the operation underlying all of the high-level commands exported in Test.WebDriver.Commands. For more information on the wire protocol see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol

Methods

doCommand Source #

Arguments

:: (HasCallStack, ToJSON a, FromJSON b) 
=> Method

HTTP request method

-> Text

URL of request

-> a

JSON parameters passed in the body of the request. Note that, as a special case, anything that converts to Data.Aeson.Null will result in an empty request body.

-> wd b

The JSON result of the HTTP request.

Instances

Instances details
WebDriver WD Source # 
Instance details

Defined in Test.WebDriver.Monad

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> WD b Source #

WebDriver wd => WebDriver (MaybeT wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> MaybeT wd b Source #

WebDriver wd => WebDriver (ExceptT e wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> ExceptT e wd b Source #

WebDriver wd => WebDriver (IdentityT wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> IdentityT wd b Source #

WebDriver wd => WebDriver (ReaderT r wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> ReaderT r wd b Source #

WebDriver wd => WebDriver (StateT s wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> StateT s wd b Source #

WebDriver wd => WebDriver (StateT s wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> StateT s wd b Source #

(Monoid w, WebDriver wd) => WebDriver (WriterT w wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> WriterT w wd b Source #

(Monoid w, WebDriver wd) => WebDriver (WriterT w wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> WriterT w wd b Source #

(Monoid w, WebDriver wd) => WebDriver (RWST r w s wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> RWST r w s wd b Source #

(Monoid w, WebDriver wd) => WebDriver (RWST r w s wd) Source # 
Instance details

Defined in Test.WebDriver.Class

Methods

doCommand :: (HasCallStack, ToJSON a, FromJSON b) => Method -> Text -> a -> RWST r w s wd b Source #

type Method = ByteString #

HTTP method (flat string type).

methodDelete :: Method #

HTTP Method constants.

methodGet :: Method #

HTTP Method constants.

methodPost :: Method #

HTTP Method constants.