Class Error

Error extension that includes error status codes from the WebDriver wire protocol: http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes

extends

{Error}

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(code: number, opt_message?: string): Error

constructor

Parameters

  • code: number

    The error's status code.

  • opt_message?: string optional

    Optional error message.

Returns

Error

Properties

public static State: { ELEMENT_NOT_SELECTABLE: string; ELEMENT_NOT_VISIBLE: string; IME_ENGINE_ACTIVATION_FAILED: string; IME_NOT_AVAILABLE: string; INVALID_COOKIE_DOMAIN: string; INVALID_ELEMENT_COORDINATES: string; INVALID_ELEMENT_STATE: string; INVALID_SELECTOR: string; JAVASCRIPT_ERROR: string; MOVE_TARGET_OUT_OF_BOUNDS: string; NO_SUCH_ALERT: string; NO_SUCH_DOM: string; NO_SUCH_ELEMENT: string; NO_SUCH_FRAME: string; NO_SUCH_WINDOW: string; SCRIPT_TIMEOUT: string; SESSION_NOT_CREATED: string; STALE_ELEMENT_REFERENCE: string; SUCCESS: string; TIMEOUT: string; UNABLE_TO_SET_COOKIE: string; UNEXPECTED_ALERT_OPEN: string; UNKNOWN_COMMAND: string; UNKNOWN_ERROR: string; UNSUPPORTED_OPERATION: string; }

Status strings enumerated in the W3C WebDriver working draft.

enum

{string}

see

http://www.w3.org/TR/webdriver/#status-codes

public State.ELEMENT_NOT_SELECTABLE: string

public State.ELEMENT_NOT_VISIBLE: string

public State.IME_ENGINE_ACTIVATION_FAILED: string

public State.IME_NOT_AVAILABLE: string

public State.INVALID_COOKIE_DOMAIN: string

public State.INVALID_ELEMENT_COORDINATES: string

public State.INVALID_ELEMENT_STATE: string

public State.INVALID_SELECTOR: string

public State.JAVASCRIPT_ERROR: string

public State.MOVE_TARGET_OUT_OF_BOUNDS: string

public State.NO_SUCH_ALERT: string

public State.NO_SUCH_DOM: string

public State.NO_SUCH_ELEMENT: string

public State.NO_SUCH_FRAME: string

public State.NO_SUCH_WINDOW: string

public State.SCRIPT_TIMEOUT: string

public State.SESSION_NOT_CREATED: string

public State.STALE_ELEMENT_REFERENCE: string

public State.SUCCESS: string

public State.TIMEOUT: string

public State.UNABLE_TO_SET_COOKIE: string

public State.UNEXPECTED_ALERT_OPEN: string

public State.UNKNOWN_COMMAND: string

public State.UNKNOWN_ERROR: string

public State.UNSUPPORTED_OPERATION: string

public code: number

This error's status code.

type

{!bot.ErrorCode}

public isAutomationError: boolean

Flag used for duck-typing when this code is embedded in a Firefox extension. This is required since an Error thrown in one component and then reported to another will fail instanceof checks in the second component.

type

{boolean}

public message: string

override

public name: string

override

public stack: string

override

public state: string

type

{string}

Methods

public toString(): string

Returns

string

The string representation of this error.