Open your browser or application to the page containing the object on which
you want to spy.
Choose Tools > Object Spy to open the Object Spy dialog box.
Alternatively, click the Object Spy button from the Object Repository dialog
box.
Click the Methods tab.
Click the pointing hand. Both Quick Test and the Object Spy are minimized
so that you can point to any object on the open application.
Note: If the object you want is partially hidden by another window, hold
the pointing hand over the partially hidden window for a few seconds. The
window comes into the foreground. You can now point and click on the object you
want. You can configure this option in the Options dialog box.
If the object on which you want to spy can only be displayed by performing
an event (such as a right-click or a mouse-over to display a context menu),
hold the Ctrl key. The pointing hand temporarily turns into a standard arrow
and you can perform the event. When the object on which you want to spy is
displayed, release the Ctrl key. The arrow becomes a pointing hand again.
Click the object for which you want to view the associated methods. The
Object Spy returns to focus and displays the object hierarchy tree and the run-time object or test object methods
associated with the object that is selected within the tree.
To view the methods of the test object, click the Test Object Methods radio
button. To view the methods of the run-time object, click the Run-Time Object
Methods radio button.
Tip: You can use the Object property to activate the run-time object
methods displayed in the Object Spy.
If you want to view methods for another object within the displayed tree,
click the object on the tree.
If you want to copy the syntax of a method to the clipboard, click the
method in the list. The syntax is displayed in the selected method syntax box.
Highlight the text in the selected method syntax box and use Ctrl + C to copy
the text to the clipboard, or right-click the highlighted text and choose Copy
from the menu.
No comments:
Post a Comment