Eliminating \'clicks\' and \'drags\' in a keyword test
I am creating an automation test that enters data in various fields on a form.
I have run through the sample ‘Orders’ application and tutorial (provided)
The tutorial suggests that after recording data entry into the Orders form the ‘clicks’ can be deleted as they are not needed
However, when I am recording against our application, again the clicks into the fields are recorded. (expected). However, if I delete these clicks and just leave the action where it enters the data, then TestComplete throws an error on the log file “The window is invisible and thus cannot be activated.” ?
The attached screenshot shows the ‘clicks’ that I am referring to
Could you please shed any light on this?
The main reason I want to get rid of the clicks is to keep the scripts neater, shorter, hence tidier!!
Re: Eliminating \'clicks\' and \'drags\' in a keyword test
The Click operation is not necessary only if the control you want to click is active. It seems that, in your tested application, the control isn't active - the field in which TestComplete needs to write the specified value is invisible (it looks like this is a feature of the control implementation). That is why, TestComplete cannot write the specified text in the control, and you get the error message. In this case, you need to click the control to activate it.