hi
in QTP every object is recognized by its properties.if the objects are in the windows environment they will be winobject,winedit,etc i.e. the logical name will start with "win" and in web applications it will be "web".
as in the question qtp is identifying the same object at some times as winobject and at some other times as webelement.this may be due to the following reason:
-->if the qtp is opened first and then the (AUT) test application - the qtp recognises or identifies any webelement as webelement if vice-versa has happened then the webelement is identified as winobject.
--> so always we have to open the qtp first then the application.
please correct if i am wrong