Micro Focus QTP (UFT) Forums
"Cannot identify object" failure only when script is checked into QC - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: "Cannot identify object" failure only when script is checked into QC (/Thread-Cannot-identify-object-failure-only-when-script-is-checked-into-QC)



"Cannot identify object" failure only when script is checked into QC - msacks - 02-28-2014

I have a number of scripts that all begin by opening a window (no browser is involved). All of these scripts are in Quality Center. If I check out a script and run in, there's no problem. However, if I run the script while it's checked out, I get this error:

Cannot identify the object "[window]" (of class Window). Verify that this object's properties match an object currently displayed in your application.

Here's the line of code that triggers the error:

Code:
hWnd = Window("RegExpWndTitle:=QuickTest Professional").GetROProperty("hWnd")

Why does this fail when the script is checked in, and what can I do about it?