Coded UI Test – Tip 3 – Locate Controls Using Win + I
Coded UI Test – Tip 3 – Locate Controls Using Win + I
In my last post we talked about Coded UI Test – Tip 2 – Assertions, but there are much more things you can do using CodedUI Test Builder –today I’ll show one more cool tip that will help you recording CodedUI Test much more easily.
So today is how to locate control using Hot-Key, Why?
Two reasons:
- Easy
- It will allow you to locate inner control that are not available while dragging mouse.
For example: ComboBox Items – Let’s say I want to get the Bing object inside the Internet Explorer Context Menu.
If I’ll use the Assertion (Drag over the control) I’ll fail! because when drag the the Assertion sight the ComboBox (ContextMenu) will loss the focus and closed.
So, in order to complete this mission all you need to do is – Open the ComboBox place the mouse over the object you when to collect and press – WinKey + I

Enjoy.