I have a combo box in a window and the combo box has got couple of child elements. I have used window.Get
to get the WPFComboBox as below
WPFComboBox combo = window.Get<WPFComboBox>(SearchCriteria.ByAutomationId("mycombo"));
Now on calling combo.Get<Image>(SearchCriteria.ByAutomationId("myimage")); it throws null reference
exception in the constructor of UIItem.
At the same time if I directly retrive the element from window it is working fine. On debuuging the code it looks like the filed automationElement is null in the object retured fromDynamicProxyGenerator.Instance.CreateProxy.
Is it OK to call combo.Get(… ) if not please suggest the best option to retrive child elements