Forum Discussion

das8150x's avatar
das8150x
Senior Member
9 years ago

WPF ComboBox truncates after whitespace

I have a WPF ComboBox with the current selection as, "800x600p (2)".  When I use TestComplete's Object Spy (or the jscript wText or Text property), the current text results in "800x600p".   It returns the string only up to the space character.  How can I query the combobox selection and get the full string?

1 Reply

  • colinstrydom's avatar
    colinstrydom
    Occasional Contributor

    My main testing project is a WPF based application and I've never had that problem.

     

    Can you use the datacontext property? You will have a lot more options of the state, text etc when expanding this. The option may be under the advanced properties section.