How to write code for Control.Type.Custom

Jun 20, 2012 at 4: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 7:27 AM

Hi

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

 

Throndorin

Feb 28, 2013 at 12:32 PM
Hi,

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.

-Namitha
Coordinator
Mar 2, 2013 at 5:50 AM
White has moved to https://github.com/TestStack/White and has a discussion group at https://groups.google.com/forum/#!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 11:56 AM
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...

Namitha