foundImageNumber
Function
The foundImageNumber function returns one number, representing the captured image’s, text's (OCR), or element's (Find by Description) ordinal position in the parameter list of a command or function. For example: 3.
WaitFor 10, "WelcomeMessage", "SignOutButton", "CompanyLogo"
If the FoundImageNumber is not 1 then LogWarning "The page loaded but not in the expected order." -- If SignOutButton or CompanyLogo are found first, then FoundImageNumber returns 2 or 3, respectively, and triggers the statement to log the warning message
Further Reading
Resources in our other reference manuals: