In certain particular cases it is compulsory to carry out an operation at a very precise place in the tested software, and where the use of a standard locator based only on the attributes cannot be used.
This occurs for example when the last element whose structure is visible represents a large portion of the screen, for example a large image, and when the clickable area is precise: this may be a web imagemap, an internal component of a desktop application, etc.
The solution provided by Agilitest is to allow precise definition of the point on which the actions will be performed, by specifying its Cartesian coordinates relative to the window of a component.
In the example below, we want to click on California, but the last element visible in the HTML structure is the complete image of the United States.
The definition of a Cartesian coordinate locator takes place in two phases:
Select the reference component
You start by selecting a standard type locator, either by its attributes or by graphical recognition.
When selecting the locator, you will see a "target location" button at the bottom of the selection window: click on it.
You can then precisely target the point where the action should take place by clicking on it.
Agilitest informs you that it has generated a locator with Cartesian targeting by adding a target in the start drag-drop area.
If you drop this locator in the editor, Agilitest generates an action with Cartesian coordinates.
Using this feature, it is possible to generate a locator outside of the selected component.