Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

Image RemovedImage Added

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.

Image Added

Obtaining Xpath from the Object Spy

Clicking on "Copy Unique Xpath" saves you the time in figuring out the XPath your self:Image Removed

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:

Image RemovedImage Added

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:Image Removed

See screenshot below Login element is isolated.

Image Added

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:

Image RemovedImage Added

Different Types of Dump

...

Toggle the button on and off to hide or show the dump:

Image RemovedImage Added

Similarly, you can choose which dump to show when testing hybrid applications or when testing mobile websites:

Image Added

Image RemovedImage RemovedImage Added