Error extension that includes error status codes from the WebDriver wire
protocol:
http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Constructor methods
constructor( code: number , opt_message?: string ) : Error
Defined in selenium-webdriver.d.ts:712
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; }
Defined in selenium-webdriver.d.ts:723
Status strings enumerated in the W3C WebDriver working draft.
public State.ELEMENT_NOT_SELECTABLE: string
Defined in selenium-webdriver.d.ts:724
public State.ELEMENT_NOT_VISIBLE: string
Defined in selenium-webdriver.d.ts:725
public State.IME_ENGINE_ACTIVATION_FAILED: string
Defined in selenium-webdriver.d.ts:726
public State.IME_NOT_AVAILABLE: string
Defined in selenium-webdriver.d.ts:727
public State.INVALID_COOKIE_DOMAIN: string
Defined in selenium-webdriver.d.ts:728
public State.INVALID_ELEMENT_COORDINATES: string
Defined in selenium-webdriver.d.ts:729
public State.INVALID_ELEMENT_STATE: string
Defined in selenium-webdriver.d.ts:730
public State.INVALID_SELECTOR: string
Defined in selenium-webdriver.d.ts:731
public State.JAVASCRIPT_ERROR: string
Defined in selenium-webdriver.d.ts:732
public State.MOVE_TARGET_OUT_OF_BOUNDS: string
Defined in selenium-webdriver.d.ts:733
public State.NO_SUCH_ALERT: string
Defined in selenium-webdriver.d.ts:734
public State.NO_SUCH_DOM: string
Defined in selenium-webdriver.d.ts:735
public State.NO_SUCH_ELEMENT: string
Defined in selenium-webdriver.d.ts:736
public State.NO_SUCH_FRAME: string
Defined in selenium-webdriver.d.ts:737
public State.NO_SUCH_WINDOW: string
Defined in selenium-webdriver.d.ts:738
public State.SCRIPT_TIMEOUT: string
Defined in selenium-webdriver.d.ts:739
public State.SESSION_NOT_CREATED: string
Defined in selenium-webdriver.d.ts:740
public State.STALE_ELEMENT_REFERENCE: string
Defined in selenium-webdriver.d.ts:741
public State.SUCCESS: string
Defined in selenium-webdriver.d.ts:742
public State.TIMEOUT: string
Defined in selenium-webdriver.d.ts:743
public State.UNABLE_TO_SET_COOKIE: string
Defined in selenium-webdriver.d.ts:744
public State.UNEXPECTED_ALERT_OPEN: string
Defined in selenium-webdriver.d.ts:745
public State.UNKNOWN_COMMAND: string
Defined in selenium-webdriver.d.ts:746
public State.UNKNOWN_ERROR: string
Defined in selenium-webdriver.d.ts:747
public State.UNSUPPORTED_OPERATION: string
Defined in selenium-webdriver.d.ts:748
public code: number
Defined in selenium-webdriver.d.ts:759
This error's status code.
public isAutomationError: boolean
Defined in selenium-webdriver.d.ts:779
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.
public message: string
Defined in selenium-webdriver.d.ts:765
public name: string
Defined in selenium-webdriver.d.ts:768
public stack: string
Defined in selenium-webdriver.d.ts:771
public state: string
Defined in selenium-webdriver.d.ts:762
Methods
public toString( ) : string
Defined in selenium-webdriver.d.ts:786
Returns
string
The string representation of this error.