Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot identify the object error on replay
#1
Solved: 11 Years, 3 Months, 1 Week ago
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
...
Reply
#2
Solved: 11 Years, 3 Months, 1 Week ago
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
Reply
#3
Solved: 11 Years, 3 Months, 1 Week ago
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
Reply
#4
Solved: 11 Years, 3 Months, 1 Week ago
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).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Replay Start Error Bhuvana 0 893 01-07-2020, 08:05 PM
Last Post: Bhuvana
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,769 05-04-2017, 03:52 PM
Last Post: Ankur
  Cannot identify the object "Webtable" korunu 1 2,526 06-29-2016, 05:28 PM
Last Post: Ankesh
  Cannot identify the object "Webtable" korunu 0 1,792 05-11-2016, 12:02 AM
Last Post: korunu
  Intermitent "Object not visible" error erodpr 5 3,470 01-14-2016, 10:55 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)