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

Safe HaskellNone




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


doCommand Source


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