DescribeResult Statement
Description
Returns a text description of the specified error code.
Syntax
DescribeResult(Error)
Argument | Type | Description |
---|---|---|
Error | Integer | The error code. |
Return Value
String

In the following example, the script fails to run successfully because the Sign-in
button was not found on the Advantage Online Shopping page. The error code of the error is retrieved using the GetLastError statement, and then the DescribeResult statement displays the text description of the error code in a message box.
Browser("Advantage Shopping").Page("Advantage Shopping").WebButton("sign_in_btnundefined").Click 19, 55
x = GetLastError
msgbox(DescribeResult(x))
See also: