Select an element using Object Spy

The Object Spy feature in Scriptless Web supports the creation process of your test automation during test execution. Using Object Spy, you can accurately select objects or elements in your web application.

Object Spy provides a quick snapshot of your web application and lets you view the detected elements in the OBJECT TREE pane. 

The object tree presents a hierarchical view of all objects retrieved from the web page. You can either select an object on the device screen or in the tree hierarchy to view related information in the adjacent PROPERTIES pane, which displays a wide range of object attributes. The attributes differ from object to object. Some of the attributes displayed include:

  • class

  • name

  • jsname

  • type

  • style

  • value, etc.

In addition, the PROPERTIES pane displays bindings. Bindings help with identifying and selecting an object on which you want to perform further actions.

You can also use the Search field in the OBJECT TREE pane to search the tree by any object property. If the search brings up results, the number of objects found is displayed below the search field, and you can use the < Prev and Next > buttons to browse through the results and see them highlighted. 

Tip: To refresh the Object tree, close the Object Spy and open it again. To spy for objects on another screen of your web page, close Object Spy, navigate to the new screen, and then open Object Spy again.

Watch this short video to see how you can work with Object Spy. Detailed steps follow.

Step-by-step instructions

Expand a section to view the steps.