Object Spy for Web and Native Apps

Object Spy for Web

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.


  1. To open the Object Spy, select the locator file on the tree in which you want to record the steps.
  2. Click on the Object Spy button on the toolbar.



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



A. Validate and locate element with provided locator.

  1. Search the element on the screen using ctrl (win/mac) key + mouse hover .
  2. Add element in locator file using ctrl (win/mac) key + click.
  3. Change locator strategy using ctrl (win/mac) key + shift.
  4. The element value gets located in Locator field .

B. Add current elements in the opened locator repository.

  1. The locator is traced in the Locator field.
  2. Click on the + button to add the locator in the open locator file in QAS.



The locator is added to the open locator file in QAS.



QAS Object Spy records all the possible locator strategies for an element to efficiently identify an element while authoring test automation scripts. If users want to use alternate strategies for the element, they can use the alternate strategies right away without recording the elements again.


Stop Object Spy

Once you are done using Object Spy, click Stop on the toolbar.



Using Locator Key in Test Cases

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.



Object Spy for Mobile Native Applications


  1. To open the Object Spy, select the Android/iOS/Windows locator file on the tree in which you want to record the steps.
  2. Click on the Object Spy button on the toolbar.



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.

  1. Search the element on the screen using the Search button.
  2. Add element in locator file using the + button.
  3. Change locator strategy by opening the drop-down list.
  4. Hover over the application to locate the element value in the Locator field .


B. Add current elements in the opened locator repository.

  1. The locator is traced in the Locator field.
  2. Click on the + button to add the locator in the open locator file in QAS.


Once you are done using Object Spy, click Stop Session on the toolbar.



The locator is added to the open locator file in QAS.