O'Reilly logo

TestComplete Cookbook by Gennadiy Alpaev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Entering text into text fields

The major TestComplete workload consists of interacting with the tested application via text-input, button-click, selecting elements from the drop-down list, and so on. Of course, automated checks execution is the basic purpose of our tests; however, in order to carry out any checks whatsoever, one should begin with a number of actions, all of which can take much time to complete.

In this recipe, we will consider two methods to work with the controls elements, using text field as an example and decide when it's better to apply either method.

Getting ready...

Launch the standard Notepad application (C:\Windows\notepad.exe).

How to do it...

In order to review two methods of text inputting, we will create two functions

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required