Using Image Recognition

Use the Image Recognition feature to compare many large images and automate application processes using visual elements.

For automated testing, Image Recognition can be used for user interface validation. You can compare a current application screen to an expected application screen, as well as ensure that all user interface elements are valid.

Using Image Recognition, you can do the following:

  • Locate an image within another image that is saved in a file or captured from a window at run time. The image is captured dynamically at run time in a window that you specify.
  • Specify the minimum percentage match for which you want the command to return true.
  • Left-click, right-click, or double-click the image if it is found within the larger image.
  • Capture images from BMP, JPG, and GIF file formats.
  • Compare images with two modes: Tolerance and Comparison Mode.
    • Tolerance Mode: Compares images having light and dark colors. It performs the color grading check.

      Specifying a 0% tolerance compares exact pixel color with the source image. Specifying a tolerance of 10% compares the 10% (plus/minus) color shade with the source image.

    • Comparison Mode: Provides the following options:
      • Normal mode: Compares the RGB components of the pixels with the source.
      • Gray-scaled mode: Converts the pixel to gray scale and then performs a comparison.
      • Monochrome mode: Converts the pixel to either black or white and performs the comparison.

        Image RecognitionScreen

When you 'Enable' Secure Recording

Note: If you enable 'Secure Recording mode', 'Image1' and 'Image2' are not captured. Enterprise 11 secure recording mode.

While 'Secure Recording mode' is enabled and you try to capture 'Image2' an error message appears "Secure Recording mode. Ensure that the 'Image2' does not show any secure data."

Error message appears on the screen when Secure Recording mode is selected

Also See...