Forum Discussion

sraj4u's avatar
sraj4u
Occasional Contributor
14 years ago

Cannot highlight this object on screen

Hi All!



I am facing one strange problem in one of our application, I am using 'find' method to get the test object from the application, but when trying to find one button using 'wndcaption' property, It is not returning the same button but another.

When I tried to check the same in object browser I found that one more button with the same caption is present under the same window, but it is not getting highlighted on the screen (See Screen shot attached)



Any one have any idea for this strange behavior of Test Complete 8.2 ???

Please share ...



Thanks in adavnce.


1 Reply

  • Hi,


    It looks like two similar buttons are created in your application, and one of them is not drawn on the screen. This can happen if a button was created and then hidden, but not released (i.e. it looks like a memory leak). I recommend that you check this behavior of your application with your developers.


    To obtain the correct button, you can try searching for them all by using the FindAllChildren method and picking the one with the greatest Index value from the list of found objects.