Forum Discussion

Blur's avatar
Blur
Contributor
10 years ago

Unable to find objects.

I am using keyword tests.  During some of my tests, I would get an error that says something along the lines of being unable to find the object.  I can clearly see the objects; boxes, buttons, textbo...
  • Marsha_R's avatar
    10 years ago

    What we have run into is that even though a button or field may appear on the screen, the underlying object may not be loaded yet.  There are a couple of things that help in this case.

     

    We avoid a lot of this by using Focus or Set_Focus on every object before we do something with it.  

     

    You can also put a Delay right before the action that needs the object.  Let it wait just a little longer for it to load.  We don't use this unless we absolutely have to, but if the focus isn't always helping, then this will usually solve the problem.