Method GetLastError
Returns Last Error MessageUsage
Function GetLastError(
Boolean Report [Optional]
)
Parameters
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Error Message
Example
VBScript
Server("API Server").Method("Method").Execute
' Check last error
msgbox Server("API Server").Method("Method").GetLastError(True)
JavaScript
Server("API Server").Method("Method").Execute();
// Check last error
alert(Server("API Server").Method("Method").GetLastError(true));
Comment
Check last error