To learn more about the XPath language and how to use its syntax, please visit w3schools.
Opening the Object Spy
To open Object Spy in SeeTest Automation Web Interface, click on the Automation tab and then on the Object Spy button.
The Object Spy will then open on the right-hand side of the screen and will immediately highlight and list all the elements that are present on the screen:
Selecting Elements in the Object Spy
You can then click on any element to select it. Clicking on an element will highlight it and show you its properties located in the XML tree:
The screenshot below shows the Username field is clicked, and hence the corresponding property is automatically selected in the properties pane.
Obtaining Xpath from the Object Spy
Clicking on "Copy Unique Xpath" saves you the time in figuring out the XPath your self:
Once you click on "Copy Unique Xpath", the XPath is copied to the clipboard, and added to the XPath field at the bottom of the object spy so as to select the element:
You can also select and isolate elements by using a simple text query instead of XPath, Simply change from XPath to text, by clicking on the drop-down at the bottom left-hand side, and enter the text according to which an element will look for:
See screenshot below Login element is isolated.
If you wish to retrieve several XPath queries of the different properties of an element, instead of obtaining the unique XPath you can go with the option of "Add to Filter". Select the property for which you wish to obtain the XPath and click on "Add to Filter". Repeat the process for other properties if necessary:
Different Types of Dump
Toggle the button on and off to hide or show the dump:
Similarly, you can choose which dump to show when testing hybrid applications or when testing mobile websites: