Open topic with navigation
Returns the error code of the most recent error. You can use this statement together with the DescribeResult Statement.
In the following example, the script fails to run successfully because the Login image was not found on the Mercury Tours page. Using the GetLastError function, the error number and description are inserted into a message box.
Browser("Mercury Tours").Page("Mercury Tours").Image("Login").Click 19, 55 x = GetLastError msgbox(DescribeResult(x))