Interpreting the UI Mapify
The UI Mapify is a powerful feature that instantly generates robust web element locators (XPath, CSS selector, ID, Name, etc.) for web test automation.
It allows you to inspect a web element to generate a locator, and then save it to TestArchitect interface entities.
The UI Mapify toolbar:
TA Name textbox: Required to save a locator to TestArchitect interface. Specifies a logical TA Name for the associated element.
Select locator type combobox: This combobox shows the available locator type(s) of the capturing element.
Allowed values:
- XPath: locator type is XPath.
- CSS Selector: locator type is CSS Selector.
- Id: locator type is Id.
- Name: locator type is Name.
- Class: locator type is Class.
- Tag Name: locator type is Tag Name.
Notes:
The available values depend on the inspecting element.Locator value textbox: Show the suggested locator value of the inspecting element. You can input or modify a locator value directly in this textbox.
Inspect button: A toggle button. Click it once to turn Inspecting mode on, and again to turn this mode off. When Inspecting mode is on, move your mouse to highlight a target element then left-click to generate a locator. The Inspecting mode is turned off automatically after your interaction.
Find button: Find all elements in the web page matching with the current locator defined in the Locator value textbox.
Clear button: Clear all existing values in the panel.
Copy button: Copy the current locator value to clipboard.
Save button: Save the current locator with the specified TA name to TestArchitect interface.
Close button: Close both the UI Mapify panel and AUT.