In our application we have several comboboxes and behavior of specific one is not fine for our automation tests (Teststack.White).
Description: combobox contains two values. When application starts then visible selected value is "value1" but in code, when I call
UIItem selectedItem = combobox.SelectedItem();
then selectedItem is null. When I call
neither will take effect ("value1" is in combobox.Items ). I need to call
and only now is everything ok. This will not work when I have single item in combobox and this solution is not what we want to have in our app. But the strangest part is that only this one combobox is behaving as is not expected.
Do you have any idea where could be a problem? If you need more specific information, don't hesitate to ask.
Thanks and regards, Martin