Element Identification - IRIS
IRIS (Image Recognition In Scraping) uses the image recognition technique. With IRIS, the user can identify elements that are visible on the screen of the AUT. The AUT screen should be in the foreground to identify objects using IRIS. The objects identified are stored in an image format.
It can automatically detect and capture UI elements using AI. IRIS comes pre-trained to identify common controls like text fields, dropdowns, buttons, radio buttons, and checkboxes.
Iris has two capture modes:
Auto Mode: IRIS will automatically find and capture whatever elements it recognizes in the application image. Note: If IRIS misses any elements, users can manually select them to capture.
Manual Mode: Users can manually select them to capture. Users should choose a unique, static element on the screen - ideally, one containing text. The captured element can then be verified using the verifyExistIris keyword.
By combining intelligent automated capturing with a manual selection option, Iris allows robust element capturing for legacy applications. The tool simplifies what was previously a complex process for users. Instructions are focused on user needs rather than technical jargon.
Prerequisites
The Application under test (AUT) must be up and running.
The Application under test (AUT) must have sufficient privileges for automation.
Note:
If the AUT is not visible in the taskbar or the foreground, then follow the procedure mentioned: Open Task Manager > Check if the AUT is in the list of tasks.
If the AUT is not visible in the task list, click on the process/services tab to check if the related AUT process or service is running.
Launch Application Overview:
![](https://docs.avoautomation.com/~gitbook/image?url=https%3A%2F%2F501225267-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FUKzJjcieEM7IqAjgmunE%252Fuploads%252FzLQOGrb9wzIzPUgptQNy%252FScreenshot%25202023-11-29%2520151055.png%3Falt%3Dmedia%26token%3D6d75b45a-0b5d-448f-9d12-06b9a9e6910a&width=768&dpr=4&quality=100&sign=b1f83a3f&sv=1)
Object Identification methods: Method A and B
Object Identification Methods determine the supporting technology of the AUT and perform element identification based on the selection.
Method A (default): VCL, MFC, VB6, simple WinForms controls and supports most legacy applications.
Method B: WinForms, WPF, Store apps, Qt5, browsers.
Window Name: The user must enter the window Name of AUT.
Process ID: The user must enter the process ID of AUT.
Launch Button: To start the Element identification process of the AUT.
Auto Mode Elements Capture
The user has to navigate to the Avo Assure home screen.
The user has to select the Desktop Application project from the project list.
The user has to click the Design Studio button, and the Design Studio screen will be displayed.
The user has to click the Capture Elements button, and the Capture Elements window will be displayed.
The user has to click the Capture Elements button, and the Desktop dialog box will be displayed.
The user has to select the Object Identification Method radio button. Note: The Method A will be selected automatically.
The user has to enter the Window Name in the Enter window name field. Or the user has to enter the Process ID in the Enter Process ID field.
The user has to click the Launch button and the Desktop Element Identification window, and the entered Desktop Application will be displayed.
The user has to select the Auto radio button from the Capture options and click the Start button.
The Avo Assure client will capture whatever elements are found through AI capability.
The user has to manually identify and capture the specific constant element with text from the screen. Use this captured element as dynamic input in the subsequent steps. Verify the captured element using the 'verifyExistIris' keyword.
If required, the user has to capture the elements manually.
Once the capture element is done, the user has to click the Stop button.
The Capture Elements window will display all the captured elements.
The user has to click the Save button to save all the captured elements. Note: Unsaved elements will be indicated with highlighted color.
The system will display a toast message as Scraped data saved successfully.
Last updated