Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Cannot identify object" on an object that used to be recognized
#1
Not Solved
Hi,

I am working with a test that someone wrote a month or two ago using QTP 10. The test used to run just fine on her pc until recently. It now consistently fails (still running on her pc) on the following line:

Code:
Window("AppName").Window("Tool").WinObject("WindowsForms10.SysListView32.a").Click 44,28
The Run Error is:

Cannot identify the object "WindowsForms10.SysListView32.a" (of class WinObject).

I re-recorded the "Click" action to check the properties of the newly recorded object against the object that had been working until recently and found the only difference to be the regexpwndclass property. The alphanumeric at the end of the property's value is different now.

Can someone please explain why this is the case? Also, other than re-recording a test when this situation arises, what can I do differently so that the test consistently functions from here forward?

One last related question. I have seen this issue happen in other tests when a test developed on one pc is run on a different pc. Why is this happening and how can I prevent it from doing so?

Thank you very much for your help.
amm
Reply
#2
Not Solved
With out seeing your Object I can't give you the full reason as to why it is not working, but one thing I will say is you should not use the Click "44,28" as this is just clicking on a location on a screen and as you have seen that once a your PC environment changes or you use a new PC the script has will cause you issues. You really need to look at the Object and try to code on what you are Clicking... thus you need to get out re-recording and start using the expert view and miniplulating the Object repositories.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Telnet command not recognized Sanjana1987 1 1,851 09-20-2017, 03:16 PM
Last Post: Ankur
  object spy not recognizing object.. pleaseeeee help Sonia Sadeque 3 3,171 12-22-2016, 02:42 PM
Last Post: ishan.mahajan@adp.com
  Cannot identify the object "Webtable" korunu 1 2,392 06-29-2016, 05:28 PM
Last Post: Ankesh
  Cannot identify the object "Webtable" korunu 0 1,638 05-11-2016, 12:02 AM
Last Post: korunu
  When trying to recognize the object in QTP, each object is recognized as “WinObject:S geetasarvadnya 2 3,470 10-28-2015, 12:34 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)