Use the Locator Spy to identify the caption or the XPath locator string for GUI objects. You can copy the relevant XPath locator strings and attributes into methods in your scripts. Additionally, you can manually edit the attributes of the XPath locator strings in your test scripts and validate the changes in the Locator Spy. Using the Locator Spy ensures that the XPath query string is valid.
The object tree in the locator spy lists all the objects that are available in the current application or Web page. You can use the object tree to inspect the available objects and the object structure of the application or Web page.