webdriver-0.6.0.4: a Haskell client for the Selenium WebDriver protocol

Safe HaskellNone
LanguageHaskell98

Test.WebDriver.Class

Contents

Synopsis

WebDriver class

class WDSessionState 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 http://code.google.com/p/selenium/wiki/JsonWireProtocol

Methods

doCommand Source

Arguments

:: (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

WebDriver WD 
WebDriver wd => WebDriver (MaybeT wd) 
WebDriver wd => WebDriver (IdentityT wd) 
(Error e, WebDriver wd) => WebDriver (ErrorT e wd) 
WebDriver wd => WebDriver (ReaderT r wd) 
WebDriver wd => WebDriver (StateT s wd) 
WebDriver wd => WebDriver (StateT s wd) 
(Monoid w, WebDriver wd) => WebDriver (WriterT w wd) 
(Monoid w, WebDriver wd) => WebDriver (RWST r w s wd) 
(Monoid w, WebDriver wd) => WebDriver (RWST r w s wd) 

type Method = ByteString

HTTP method (flat string type).

methodDelete :: Method

HTTP Method constants.

methodGet :: Method

HTTP Method constants.

methodPost :: Method

HTTP Method constants.