class UnhandledAlertError

Errorbot.Error
      └ webdriver.UnhandledAlertError

An error returned to indicate that there is an unhandled modal dialog on the current page.

new UnhandledAlertError(message, text, alert)

Parameters
messagestring

The error message.

textstring

The text displayed with the unhandled alert.

alertwebdriver.Alert

The alert handle.

Instance Methods

getAlertText()code »

Returns
string

The text displayed with the unhandled alert.


toString()code »

Defined by: bot.Error

Returns
string

The string representation of this error.

Instance Properties

codenumber

This error's status code.

descriptionstring

IE-only.

fileNamestring

Mozilla-only

isAutomationErrorboolean

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.

lineNumbernumber

Mozilla-only.

messagestring
No description.
namestring
No description.
sourceURL?

Doesn't seem to exist, but closure/debug.js references it.

stackstring
No description.
statestring
No description.