Getting all UIItems from a Window

Oct 16, 2008 at 4:06 PM
Edited Oct 16, 2008 at 4:37 PM
Hi all!
I want to get all the UIItems in a window but if I use window.Items or window.GetMultiple(SearchCriteria.All) some items (like ComboBoxes) in the application are being clicked.
Is this normal? How can I get all the UIItems without white generating events?
edit: I've done further testing and it seems the only event being thrown is when Comboboxes are being searched. If I do window.GetMultiple(SearchCriteria.ByControlType(ControlType.ComboBox)) all the ComboBoxes open their list when white is passing by them.
I just get the ComboBoxes, I'm not doing anything with them, so this must be a behavior from white (I think)..

Thanks,
José Tavares
Coordinator
Oct 18, 2008 at 6:50 PM
This is a fix for UIAutomation bug but this needs to be implemented in a side-affect free way.
If this is an issue for you please comment out             MakeActionReady(); call in ComboBox class.
Oct 20, 2008 at 10:05 AM
Thanks I'll do it for now.
What bugs can emerge from commenting this though?

José Tavares
Coordinator
Oct 22, 2008 at 3:02 AM
I should have mentioned..
In certain cases in WPF applications, ComboBox items are not intialized unless the combobox drop down is opened.
Coordinator
Nov 9, 2008 at 12:43 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.