foundImageNumber
The foundImageNumber
function returns one number, representing the image’s or text's (OCR) ordinal position in the parameter list of a command or function. For example: 3. For more information, see the foundImageNumber
function.
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