Using X-ray Vision in Pega Robotic Automation
X-ray Vision is a new way of identifying controls in Robot Studio, starting in version 19.1.73. When interrogating an application, if new controls become available in the application (due to navigation of the application, or from a screen change that makes new controls appear), the new controls are added to the X-ray database file for the application. The system assigns the new control a numeric PegaId that is stored in the X-ray database file for the application, along with a collection of attributes that define the control. When you interrogate a control to use it in an automation, the PegaId is set as the match rule that maps the adapter's object to the control within the X-ray database file. This PegaId match rule never needs modification. When the X-ray Vision engine sees the control a second time, it compares all of its attributes to those stored in the database, to determine the best attribute to use. The database file is constantly updated while the application is in interrogation mode.
When you create the automation package during the deployment process, the system includes the database files. Robot Runtime uses these files to provide the attribute values that are used for control identification. If an attribute changes for a control in Runtime, the engine continues to track the control by finding the next best attribute to use. The system keeps this attribute change in memory until you close Robot Runtime.
Currently, X-ray Vision supports .NET, WPF, and Windows Form applications.
Enabling X-ray Vision
Use the new Windows adapter properties to enable X-ray Vision. Access these properties through the property grid in the X-ray Vision section.
- In Pega Robot Studio, switch your property grid view to Advanced.
- In the X-ray Vision section, set the EnableX-rayVision property to True. By default, X-ray Vision is disabled for a newly added Windows adapter, so it must be enabled.
There are two additional adapter properties in the X-Ray Vision section, called EnableX-rayVisionEvents and EnableX-rayVisionTab. Pega Support uses these properties to troubleshoot any issues that occur with the X-ray vision feature, and they should not be used otherwise.
When an application is interrogated with X-ray Vision, Robot Studio creates four files in the X-ray folder, located in the project folder. If an application starts other applications, Robot Studio creates a set of four files for each application.
Each file is named with a shared GUID. The files represent the application whose data they store, and have the following extensions:
- .xrayConfig – Contains configuration information for the application.
- .xrayDb – Contains the X-ray control information that has been collected for the application. This includes the assigned PegaId, the technique used to solve, and the attribute values.
- .xrayTad – Contains attributes and their weights that have been modified for the application from the default framework TAD file.
- .xray – The .xray file is the master file that contains the name of the application executable in its filename, along with the GUID. This file makes it clear which files belong to what application, tying the .xrayConfig, .xrayDb, and xrayTad files together for the application. For example:
When you deploy an automation, all of these files are included, along with the default framework TAD files. Robot Runtime uses these files as it executes the automation.
PegaId match rule
When you enable X-ray Vision on the adapter, the controls that are interrogated in the application use the PegaId match rule. This match rule ties the control to the application’s .xraydb file. Only the PegaId match rule is needed when X-ray Vision is enabled for the adapter. Do not include additional match rules when using X-ray Vision and the PegaId match rule.
|New Assemblies||Modified Assemblies|