This project is read-only.

How to write code for Control.Type.Custom

Jun 20, 2012 at 5:51 AM

Hi ,

 I have my own application window  containing  Control type: controltype.Custom, automation ID: m_vsExtnsExplorerCtl and no name.

How to attach this.(recognize this)

Pleas suggest me on this..


Jun 21, 2012 at 8:27 AM


read the Informations about Custom Controls.

Is your custom control visible for UIAutomation (use UISpy or UIAVerify), if not implement the needed Pattern using AutomationPeer



Feb 28, 2013 at 1:32 PM

In my application, when i click on lookup button, the popup opens having many text fields and buttons inside it.
I am trying to Automate this using White....
The Automation Id of the popup is "ctlPopup", Control Type is "ControlType.Custom" having Name as blank. The Header of the pop up is given as "Thumb" when i am trying to Spy.
I used different method to Click on Button. But it is not identifying the whole window. It returns as null.
I tried using Modal window, Automation Elemnt, Desktop windows...
Can anyone help me to Automate this window.

Mar 2, 2013 at 6:50 AM
White has moved to and has a discussion group at!forum/teststack_white for future questions.

For now, You should be able to get the ctlPopup, then use .AsContainer() to then resolve controls under it.
Mar 2, 2013 at 12:56 PM
hi Jake,

but the discussion is through gmail account right?
Cant we use the same account which i am using now.........?
and how to use that AsContainer() method... ?

White.Core.UIItems.UIItemContainer container = _ParentWindow.Get(SearchCriteria.ByAutomationId("ctlPopup"));

is this correct?
then now, how to continue? this tool is new to me.... and have time constratint too .... so please help me on this...