Micro Focus QTP (UFT) Forums
Cannot identify the object error on replay - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Cannot identify the object error on replay (/Thread-Cannot-identify-the-object-error-on-replay)



Cannot identify the object error on replay - didi - 05-26-2009

Hi all

I'm evaluating QTP but i run into a severe problem stopping me form replaying scripts successfully

I can record the application (.Net Windows Forms) but on replay I get errors:

Cannot identify the object "WindowsForms10.Window8.app2"

Typically there are SwfWindow*** calls but this seems to be a custom DropDownBox and there just a WinObject is scripted...

I've tried some stuff like Object Identification or creating a new Virtual Object but as i'm the 1st day with QTP I may be missing here something

Please help me Smile

Script excerpt:
...
Code:
SwfWindow("XY Client  v1.1").Activate
SwfWindow("XY Client  v1.1").SwfWindow("Tickets").SwfObject("50").Click 112,14
WinObject("WindowsForms10.Window.8.app2").Click 12,9
...


RE: Cannot identify the object error on replay - didi - 05-26-2009

Ok, I found a workaroud by using the keyboard instead of the mouse but there has to be a better workaround to handle a WinObject and to be able to select/readout the items

workaround:
Code:
SwfWindow("XY Client  v1.1").SwfWindow("Tickets").SwfObject("50").Click 112,14
SwfWindow("XY Client  v1.1").SwfWindow("Tickets").SwfObject("50").Type  micUp
SwfWindow("XY Client  v1.1").SwfWindow("Tickets").SwfObject("50").Type  micReturn



RE: Cannot identify the object error on replay - sreekanth chilam - 05-26-2009

Hi ,

Yeah,as of now you can continue with your workaround.

As per my understanding , dropdownbox might be a Third Party Control object, since you may be facing the above issue.
But parallelly, i suggest you to raise a ticket with HP support & as per their solution proceed accordingly. Smile


RE: Cannot identify the object error on replay - didi - 05-27-2009

Thx for your replay.

Currently I'm just evaluating the Software as we are in the process to start creating functional regression tests.
So I cannot really open a support ticket I guess Wink

Yes, the DropDownBox is a Custom component and not a standard .Net Object (but it behaves like a typical DropDownBox - don't ask my why they used an own implementation).