The Object Spy feature is provided to let you select an object for web or mobile native application, and view its properties.
Using the Object Spy, you can record their steps directly in locator file. These Locators are then be utilized in test cases/test steps as per requirement.
The next screen opens as per the project platform.
Enter the capabilities for the selected platform and click Start.
The web browser opens with Locator field on it.
A. Validate and locate element with provided locator.
B. Add current elements in the opened locator repository.
C. Keyboard Shortcuts
D. Move Object Spy to top/bottom
The locator is added to the open locator file in QAS.
Once you are done using Object Spy, click Stop on the toolbar.
1. Open .loc file in which locators are added through Object Spy and select the Key you want to copy in test case.
2. Open the test case and click Add to add a new element.
3. Select command and paste the locator Key in Element.
The capabilities screen opens.
Enter the capabilities for the selected platform and click Start.
The app simulator opens with the Locator field on it. You can see two additional buttons here - one for Searching the locator and one for Adding the locator to the file.
You can -
A. Validate and locate element with provided locator.
B. Add current elements in the opened locator repository.
Once you are done using Object Spy, click Stop Session on the toolbar.
The locator is added to the open locator file in QAS.