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

Safe HaskellNone
LanguageHaskell2010

Test.WebDriver.Exceptions

Synopsis

Documentation

newtype NoSessionId Source #

A command requiring a session ID was attempted when no session ID was available.

Constructors

NoSessionId String 

newtype BadJSON Source #

An error occured when parsing a JSON value.

Constructors

BadJSON String 
Instances
Eq BadJSON Source # 
Instance details

Defined in Test.WebDriver.JSON

Methods

(==) :: BadJSON -> BadJSON -> Bool #

(/=) :: BadJSON -> BadJSON -> Bool #

Show BadJSON Source # 
Instance details

Defined in Test.WebDriver.JSON

Exception BadJSON Source # 
Instance details

Defined in Test.WebDriver.JSON

data FailedCommand Source #

This exception encapsulates a broad variety of exceptions that can occur when a command fails.

data FailedCommandType Source #

The type of failed command exception that occured.

Instances
Bounded FailedCommandType Source # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Enum FailedCommandType Source # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Eq FailedCommandType Source # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Ord FailedCommandType Source # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

Show FailedCommandType Source # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

data FailedCommandInfo Source #

Detailed information about the failed command provided by the server.

Constructors

FailedCommandInfo 

Fields

Instances
Show FailedCommandInfo Source #

Provides a readable printout of the error information, useful for logging.

Instance details

Defined in Test.WebDriver.Exceptions.Internal

FromJSON FailedCommandInfo Source # 
Instance details

Defined in Test.WebDriver.Exceptions.Internal

data StackFrame Source #

An individual stack frame from the stack trace provided by the server during a FailedCommand.

mkFailedCommandInfo :: WDSessionState s => String -> CallStack -> s FailedCommandInfo Source #

Constructs a FailedCommandInfo from only an error message.

failedCommand :: (HasCallStack, WDSessionStateIO s) => FailedCommandType -> String -> s a Source #

Convenience function to throw a FailedCommand locally with no server-side info present.