In Qualitia you can use multiple modes to add objects from the application under test into Qualitia's object repository.
Right-Click Mode
You can right-click the object which you want to add from the application under test and select Add Objects from the context-menu options.
To add object using the right-click mode:
- From the Objects screen, click Spy.
The Object Spy window appears. - Navigate to the page from where you want to add objects.
- Ensure that Select Object option is disabled.
- Point to an object that needs to be added.
The object is highlighted with a blue border. - Right-click the object and select Add Object from the context-menu.
A confirmation message appears after the object is added.
An object is added to the repository using the precedence set in Locator Priority Settings.
- While pointing to an object ensure you have pointed to an object with its appropriate Object Class.
- Objects that are added manually with CSS/DOM Locator Type values cannot be highlighted.
- When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Left-Click Mode
Many a times, due to some security measurements, Web applications do not allow right-clicking UI elements. You can use the left-click mode to add objects from such applications.
To add object using the left-click mode:
- From the Objects screen, click Spy.
The Object Spy window appears. - From the Settings > Inspection.
- Select Capture Mode as Left-Click and click OK.
- Navigate to the page from where you want to add objects.
- Ensure that Select Object option is enabled.
- Left-click the object which you want to add into the repository.
A confirmation message appears after the object is added.
When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Mouse Hover
In this mode, you can add objects into the repository just by hovering mouse over the required object.
To add object using the mouse hover mode:
- From the Objects screen, click Spy.
The Object Spy window appears. - From the Settings > Inspection.
- Select Capture Mode as Mouse Hover and click OK.
- Navigate to the page from where you want to add objects.
- Ensure that the Select Object option is enabled.
- Hover the mouse pointer over the object which you want to add into the repository.
A confirmation message appears after the object is added.
When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Selecting Object Attribute On-The-Fly
Qualitia gives you ability to select object attribute on-the-fly when adding objects in the Right-Click Mode.
To select object attribute on-the-fly:
- From the Objects screen, click Spy.
The Object Spy window appears. - Navigate to the page from where you want to add objects.
- Right-click the object and select Add Object By from the context-menu.
Select the object attribute using which you want to add object into the repository.
A confirmation message appears after the object is added.
When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Adding an Object Manually
You can also add an object manually.
To add an object manually:
- From the Objects screen, click Spy.
The Object Spy window appears. - Navigate to the page from where you want to add objects.
- In the left pane, right-click to select Add Object.
- In the main pane, enter Object Name and Description.
- Select Class from the drop-down list.
- Select Locator Type.
- Enter Locator Value.
Add Comment