Forum Discussion
Are there triggers or scripts that execute on the browser when the edit field is cleared or changed? The error you're getting basically says that the handle to the object has changed between one step and the other and, therefore, it cannot be found. That will usually happen if there's a page refresh, a component change, or something during the course of the script
There are events which are triggered but the code hasn't changed since upgrading from 11.20. The error only happens in TC 11.31.
- tristaanogre9 years agoEsteemed Contributor
It could very well be that TC 11.31 is running more efficiently and so is actually executing the tests a bit faster, perhaps catching the objects before they are recreated.
Since there are events that fire upon certain changes, I would suggest a best practice would be to use WaitNNN methods for different interactive steps in order to ensure that the object is ready for input before you attempt to use it.
- william_roe9 years agoSuper Contributor
tristaanogre wrote:It could very well be that TC 11.31 is running more efficiently and so is actually executing the tests a bit faster, perhaps catching the objects before they are recreated.
Since there are events that fire upon certain changes, I would suggest a best practice would be to use WaitNNN methods for different interactive steps in order to ensure that the object is ready for input before you attempt to use it.
It does seem 11.31 executes quicker and catching the textbox while re-loaded. I have tried WaitAliasChild without success and not willing to put any sort of random delay between the SetText and Keys.
- tristaanogre9 years agoEsteemed Contributor
Where are you putting WaitAliasChild? It may be that you will need more than one call, depending upon where your application events are firing.