Image Recognition Methods

Silk Test Workbench provides the following methods for image recognition:
Method Description
ImageClick Clicks in the middle of the image that is specified in an asset. Waits until the image is found or the Object resolve timeout, which you can define in the synchronization options, is over.
ImageExists Returns whether the image that is specified in an asset exists.
ImageRectangle Returns the object-relative rectangle of the image that is specified in an asset.
ImageClickFile Clicks on the image that is specified in a file.
ImageExistsFile Returns whether the image that is specified in a file exists.
ImageRectangleFile Returns the object-relative rectangle of the image that is specified in a file.
VerifyAsset Executes a verification asset. Throws a VerificationFailedException if the verification does not pass.
Note: Image recognition methods do not work with controls that are not visible on the screen. For example, you cannot use image recognition for an image that is scrolled out of view.