Forum Discussion

rmnrdi's avatar
rmnrdi
Contributor
7 years ago

if object behaving in two different ways.

I have a desktop app that I need to make a UI test for.

 

I'm making a keyword test and using the if...object for various edit boxes that could or could not be there.

 

For some reason if...object times out and the application stops testing if the edit box doesn't exist.

 

I'm also using if...object in another test that checks for open windows, but if they don't exist, the test moves onto the next test item.

 

Lastly, I've used if...object before in a UI test and it worked as expected. That is, if it didn't find a edit box, it just moved on and checked for the next one.

 

Why am I getting two different behaviors for the same if...object operation? 

 

Any help would be appreciated.

 

 

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    if-object attempts to find and identify the object based upon the NameMapping provided for object identification.  What COULD be happening is that what's causing the failure is not the object that you're targetting in the if-object but some ancestor object within the identification tree that is failing.