Forum Discussion
pyatakov wrote:
3. During test, try set focus on the parent object or on the web page.
Can you explain in details what did you mean?
baxatob wrote:
pyatakov wrote:
3. During test, try set focus on the parent object or on the web page.
Can you explain in details what did you mean?
This mean that when you see some object on form even with a flashing carriage it does not mean you can do some action with this object at once, you MUST set focus on this object
F.e. when you see some edit on form, before, you can write some text in edit, you MUST CLICK left mouse button on edit and THAN you can write some text in edit
- AlexKaras7 years agoChampion Level 3
Hi,
Good to hear that the sequence you've mentioned have helped in your case.
However I think that this is something specific to either your namemapping or your tested web application as personally I never met with the requirement to set focus to the control before it is possible to interact with it after it was found either as an aliased control or as a result of some of the FindXXX() functions.
Yes, sometimes setting focus to control is a good practice to move it into view when TestComplete cannot do this itself. But in all cases this was due to web application's design and not in any way a requirement to be able to interact with the control.