Safe Haskell | None |
---|
- newtype InvalidURL = InvalidURL String
- newtype NoSessionId = NoSessionId String
- newtype BadJSON = BadJSON String
- data HTTPStatusUnknown = HTTPStatusUnknown (Int, Int, Int) String
- newtype HTTPConnError = HTTPConnError ConnError
- newtype UnknownCommand = UnknownCommand String
- newtype ServerError = ServerError String
- data FailedCommand = FailedCommand FailedCommandType FailedCommandInfo
- data FailedCommandType
- = NoSuchElement
- | NoSuchFrame
- | UnknownFrame
- | StaleElementReference
- | ElementNotVisible
- | InvalidElementState
- | UnknownError
- | ElementIsNotSelectable
- | JavascriptError
- | XPathLookupError
- | Timeout
- | NoSuchWindow
- | InvalidCookieDomain
- | UnableToSetCookie
- | UnexpectedAlertOpen
- | NoAlertOpen
- | ScriptTimeout
- | InvalidElementCoordinates
- | IMENotAvailable
- | IMEEngineActivationFailed
- | InvalidSelector
- | SessionNotCreated
- | MoveTargetOutOfBounds
- | InvalidXPathSelector
- | InvalidXPathSelectorReturnType
- | MethodNotAllowed
- data FailedCommandInfo = FailedCommandInfo {}
- data StackFrame = StackFrame {}
- mkFailedCommandInfo :: SessionState s => String -> s FailedCommandInfo
- failedCommand :: SessionState s => FailedCommandType -> String -> s a
Documentation
newtype InvalidURL Source
An invalid URL was given
newtype NoSessionId Source
A command requiring a session ID was attempted when no session ID was available.
An error occured when parsing a JSON value.
data HTTPStatusUnknown Source
An unexpected HTTP status was sent by the server.
HTTPStatusUnknown (Int, Int, Int) String |
newtype HTTPConnError Source
HTTP connection errors.
newtype UnknownCommand Source
A command was sent to the WebDriver server that it didn't recognize.
newtype ServerError Source
A server-side exception occured
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.
data FailedCommandInfo Source
Detailed information about the failed command provided by the server.
FailedCommandInfo | |
|
Show FailedCommandInfo | Provides a readable printout of the error information, useful for logging. |
FromJSON FailedCommandInfo |
data StackFrame Source
An individual stack frame from the stack trace provided by the server during a FailedCommand.
StackFrame | |
|
mkFailedCommandInfo :: SessionState s => String -> s FailedCommandInfoSource
Constructs a FailedCommandInfo from only an error message.
failedCommand :: SessionState s => FailedCommandType -> String -> s aSource
Convenience function to throw a FailedCommand
locally with no server-side
info present.