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

Safe HaskellNone
LanguageHaskell98

Test.WebDriver.Class

Contents

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 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.

type Method = ByteString

HTTP method (flat string type).

methodDelete :: Method

HTTP Method constants.

methodGet :: Method

HTTP Method constants.

methodPost :: Method

HTTP Method constants.