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:
- CallServiceTest Statement
- CreateObject64 Statement
- DescribeResult Statement
- ExecuteFile Statement
- ExitAction Statement
- ExitActionIteration Statement
- ExitComponent Statement
- ExitComponentIteration Statement
- ExitTest Statement
- ExitTestIteration Statement
- GetLastError Statement
- InvokeApplication Statement
- IsPartialRun Statement
- LoadAndRunAction Statement
- LoadFunctionLibrary Statement
- ManualStep Statement
- Print Statement
- RegisterUserFunc Statement
- RunAPITest Statement
- SetLastError Statement
- UnregisterUserFunc Statement
- Wait Statement