DCSIMG
Coded UI Test – Tip 3 – Locate Controls Using Win + I - Shai Raiten

Shai Raiten

 Subscribe

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:

  1. Easy
  2. 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

image image

Enjoy.

Comments

Twitter Trackbacks for Coded UI Test ??? Tip 3 ??? Locate Controls Using Win + I - Shai Raiten [microsoft.co.il] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Coded UI Test ??? Tip 3 ??? Locate Controls Using Win + I - Shai Raiten         [microsoft.co.il]        on Topsy.com

# July 23, 2010 10:10 AM

Udi said:

Hi Shay,

i'm having troubles locating any control of my app.

it is a Winform application using DevExpress (docking mannager) controls.

it seems that my application is blocking the coded UI test builder. i am getting the message "You do not have the sufficient privileges to access the information about this control... the control details were not specified"  

do you know what might be the problem ?

thanks,

Udi

# August 10, 2010 12:04 PM

Manuel said:

Hello Shay,

I'm novice at Coded UI Tests but so far everything seemed to be all right till I tried to locate a control from a combo box inside a Silverlight application through the Coded UI Tests Builder, however when trying to apply "WIN + I" I got the next message:

"An exception occurred when trying to discover information about silverlight control"            

Can you help me find an answer on this please?

Thanks in advance

# January 14, 2011 6:32 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: