Forum Discussion
This issue, where you've expanded the dropdown but are unable to select the value using the specified WPF object path, often occurs because the final TextBlock object representing the value ("OSB 7/16") is a static display element and not the interactive element (like a ComboBoxItem or MenuItem) that handles the click event to perform the selection. To successfully select the value, you should target the e-zpassin com parent interactive object, which in your case appears to be the WPFObject("ComboBoxItem", "", 2) that contains the text. Try modifying your selection command to target this ComboBoxItem instead of drilling down to the TextBlock, as this parent object is typically configured to handle the click action for item selection in WPF controls.
- Know2 days agoNew Contributor
I've also tried target to ComboBoxItem object but it still not work
Aliases.FramingStylesEditor.Popup.PopupRoot.Decorator.NonLogicalAdornerDecorator.GroupItem.ComboBoxItem
Here is the object that I target.
Aliases.FramingStylesEditor.WPFObject("HwndSource: PopupRoot", "").WPFObject("PopupRoot", "", 1).WPFObject("Decorator", "", 1).WPFObject("NonLogicalAdornerDecorator", "", 1).WPFObject("GroupItem", "", 2).WPFObject("ComboBoxItem", "", 2)
Even though the dropdown list is expanded, the value still cannot be selected and it doesn't throw any error either.
- Hassan_Ballan17 hours ago
Champion Level 3
My question may be silly but I thought to ask it. Have you tried recording?
In a new project, to test, I would record such action and see if it plays back and what code TestComplete did.