Returns whether the specified image exists.
bImageExists = window.ImageExistsFile (sImageFile[, matchAccuracy])
| Variable | Description |
|---|---|
| bImageExists | Whether the image in the file exists in the AUT or not. BOOLEAN. |
| sImageFile | An absolute path to an image file of one of the following types:
Note: This path can be either absolute or relative to the working directory during playback.
STRING.
|
| matchAccuracy | Optional: The accuracy with which the image in the AUT must match the image in the file. The accuracy can be a number between 1 and 10. The default value is 10. Setting this parameter is helpful if you are testing multiple systems or browsers with different screen resolutions. Micro Focus recommends choosing a high level of accuracy in order to prevent false positives. INTEGER. |
bImageExists = window.ImageExistsFile ("c:\temp\myImage.png")