Forum Discussion
rjking
13 years agoNew Contributor
Thanks for the help.
Yes we have performed the tests manually and under XP the correct entry is selected. I know there is a short timeout that you need to keep ahead of when typing manually, and it is easy to mistype or hesitate and the wrong entry is selected. Manually typing and TestComplete/Execute's "typing" are clearly different "under the hood" and this must somehow account for the difference. We are happy to use ClickItem when this issue arises in our tests.
Interestingly, I had also previously tried putting the .Keys in a loop checking that the correct item was selected, ie
while combobox.Text != "<desired_item_text>" {
combobox.Keys("<desired_item_text>");
}
but this just got stuck in an infinite loop!
Richard
Yes we have performed the tests manually and under XP the correct entry is selected. I know there is a short timeout that you need to keep ahead of when typing manually, and it is easy to mistype or hesitate and the wrong entry is selected. Manually typing and TestComplete/Execute's "typing" are clearly different "under the hood" and this must somehow account for the difference. We are happy to use ClickItem when this issue arises in our tests.
Interestingly, I had also previously tried putting the .Keys in a loop checking that the correct item was selected, ie
while combobox.Text != "<desired_item_text>" {
combobox.Keys("<desired_item_text>");
}
but this just got stuck in an infinite loop!
Richard
Related Content
- 10 months agolodecesa
- 11 months agomgormsen
- 2 years agoKB1
- 5 years agopaarmann-ara
Recent Discussions
Check PopupMenu exists
Solved3 days agomfoster711- 4 days agosimonaferrara
- 5 days agomacheshmeh