Unable to select value from dropdown list with popop render out of Object Tree
Hi, I'm encountering the issue: unable to select the value from dropdown list
the value from dropdown list has object: Aliases.FramingStylesEditor.WPFObject("HwndSource: PopupRoot", "").WPFObject("PopupRoot", "", 1).WPFObject("Decorator", "", 1).WPFObject("NonLogicalAdornerDecorator", "", 1).WPFObject("GroupItem", "", 2).WPFObject("ComboBoxItem", "", 2).WPFObject("TextBlock", "OSB 7/16", 1)
Although the dropdown list has expanded, but it still not clicked
First - get the name mapping of this control,
Use either full name or alias name mapping for this control.Second - then perform object.ClickItem("2 X 4") to select the desired item shown in the list,
ClickItem("2 X 4")Where object is the name mapping of the control, and assuming "2 X 4" is the item to be selected. Note the list of items shown, might be a custom control, as combo control usually just has list of items. But in this instance, it's showing labels as well i.e. "Lumber Inventory" and "Sheet Inventory".
I suggest you try the example code, that I had originally provided (not using cboSelectWPF), to check the functionality of ClickItem() actually works for you. Also, since this is a WPF object, there may be a method that you can use, shown in the Methods tab.
FYI. Your alias name is way to long - refer to Name Mapping