0

I have a WPFObject("SearchBox") in my WPF application.Its an autofill searchbox.On typing a text in it,it displays a listbox with text related to the search.

What is the best way to test it ?I am using TC9 and jscript.

Thanks!

1 Answer 1

0

You need to use the Keys method. For example:

parentObj.WPFObject("SearchBox").Keys("test");

By default, TestComplete records text typing with the SetText method as it works faster than Keys, but in some cases you need to simulate working with a keyboard and the Keys method is the best way to go. You can find information on this in the Simulating Keystrokes help topic. Also, please see the Entering Text into an Edit Control topic for information on the difference between these two methods and the Recording Options Dialog topic to get information on how to make TestComplete use the Keys method when recording a new test.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.