I guess I will jump in here too... 😉
Could the app just be losing focus here causing a name mapping issue? Could this be related to a TestComplete change in how the application processes focus in some edge cases?
If I use debugging to pause the test on the failing line, then right-click and "Highlight on screen" then continue, the test will work. If I just pause, then continue it will still fail.
Here the full error statement would be helpful to indicate which object it is looking for.
"Unable to find the following object when executing the Click command:"
I am curious about why you are using a DblClick on a radio button (Green Item). Is it just to move focus?
- Double Clicks radiobuttonClaimantsex (Green Item)
- If an object ...NcciClassCode exists..
- Click it
- Press 'Down' then 'Enter' (A selection takes place)
- Else
- Delay 2000.
- Scroll 'gendermale' into view. (Undefined?)
- Click 'gendermale'. (Pink Item)
This bit is very confusing to me. Here 'that' refers the pink item I think and it is being place just above or below the (Green Item). So, you are completely changing where in the sequence 'gendermale' is clicked.
I moved 'that' item above the IF Object statement and it works, but now the next one after the IF fails.
In this image, the green item fails when by the pink item, but works when I moved it above the IF. Now the pink one fails.
Another thing that makes me think this is a focus issue is that gendermale is being scrolled into view.