07-19-2011, 10:35 PM
Code:
result=Browser("Automation Site | Home").Page("Automation Site | Send").Image("banner").Check(CheckPoint("banner"))
If not result Then
'image was not matched
End If
To get the above code, I just added a checkpoint the usual way then added parenthesis after ".Check:" and after ("banner"), then assigned the result from the checkpoint to a local variable named "result".
By default, the checkpoint timeout is 0 seconds, meaning don't wait before the image appears. Just check to see if the image is there right now. Actually, it doesn't just check to see if the image exists; it also checks to see if the image is identical to the one originally captured.
In the properties for the checkpoint in your object repository, you can set the timeout - the amount of time to wait before giving up on finding the image.