Note: This task is part of a higher-level task. For details, see How to Design Test Object Class Identification Properties.
Enable script debugging in Microsoft Internet Explorer.
For example: In Internet Explorer 7.0, select Tools > Internet Options. In the Advanced tab, clear the Disable Script Debugging options in the Browsing group.
Open the application from which you want to retrieve property values, and make sure that the page is fully loaded and the relevant control is visible. (You must run Extensibility Accelerator and open a project before you open the Web browser.)
Make sure that the rules displayed in the rule editor for your test object class correctly identify the control whose property you want to retrieve.
You can click Test All Rules in the Map to Controls Tab (Test Object Class Designer) and verify that the control is highlighted in the application.
- Set a breakpoint in your implementation function - Optional
If you want the run session to pause when it reaches the function that you designed to retrieve property values, you can add a breakpoint to the function.
- In the Debug Property Retrieval dialog box, select a property to retrieve
Do one of the following:
In the Properties Tab (Test Object Class Designer), select an identification property from the property list and click the Debug Property Retrieval button in the property list toolbar.
The Debug Property Retrieval Dialog Box opens with the test object class and the property selected.
Select Project > Debug Property Retrieval.
- Select the application control whose property value you want to retrieve
In the Debug Property Retrieval Dialog Box, click Select Control. Extensibility Accelerator is hidden, all of the controls that match the mapping rules in all open Web applications, are highlighted, and a Cancel button is displayed at the top of the screen.
In many cases you can open or navigate to additional applications or Web pages at this point. Once the application or page loads successfully, the matching controls are highlighted in it as well. (To navigate at this point, you need to hold down the Ctrl key.)
If a specific page does not load properly when navigating to it at this point, load that page in an additional browser before clicking Select Control.
Note: Controls are highlighted only in browsers that are opened after you open a project in Extensibility Accelerator.
Click the control whose property value you want to retrieve. You must select one of the highlighted controls.
The highlighting is removed from the application, Extensibility Accelerator opens and the Debug Property Retrieval Dialog Box is displayed.
- Retrieve the property value
You can now debug your functions using the Microsoft Visual Studio Shell debugging tools that are available in Extensibility Accelerator.