Unable to find user control

Nov 16, 2010 at 4:07 AM


In ui Spy the hierarchy of my user control is .... Window-Panel-ioControl

this the way which i tried to get my user control

White.Core.UIItems.Finders.SearchCriteria searchCriteria = White.Core.UIItems.Finders.SearchCriteria.ByAutomationId("ioControl");

searchCriteria is null :(


pls advice

Nov 16, 2010 at 3:06 PM

What type of Control is "ioControl"? Is it a Panel?

Can you try this? 


Panel p = window.Get<Panel>("ioControl"); 


UIItemContainer uic = window.Get<Panel>("ioControl");


If "ioControl" is not the automation ID of the control then try SearchCriteria.ByText("ioControl")    optionally also add an AND Clause SearchCriteria.ByText("ioControl").AndControlType(ControlType.Panel) or whatever the control type is


Hope this helps