Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In the Coded UI Test Builder, you can drag the cross-hair and drop it on a control to see its properties. While you are dragging the cross-hair, a blue highlight rectangle will be drawn around the control which has focus.
In some cases, e.g:- context menus, this model will not work. When you start a drag operation of the cross-hair, the context menu will get dismissed. To address such scenarios, we have provided the feature to use Win+I to locate controls. You just have to move your mouse cursor over the desired control (e.g:- a context menu) and press Win+I. [Windows key and I together]. This will highlight the selected control and show its properties in the Coded UI Test Builder properties window. You can now add this control to the UI Control Map or add an assertion on its properties.
Of course, once you become familiar with this feature, you will use this for all cases where you want to locate a control. [I do.]
Please sign in to use this experience.
Sign in