Micro Focus QTP (UFT) Forums
Objects Identification. - 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: Objects Identification. (/Thread-Objects-Identification)



Objects Identification. - karraaruna - 11-27-2010

Hi,

Iam trying to write a script using some descriptive vb script programming and most part is using the record feature in QTP.
My problem is when I recorded the test and ran it was working fine.
but next day when I tried to run the same script which was successful earlier getting failed with messages like the object not found.

"Cannot identify the specified item of the TabBar object. Confirm that the specified item is included in the object's item collection.

Line (4):
Code:
"JavaWindow("Client Information System").JavaInternalFrame("Client Demographics").JavaTab("TabBar").Select "Group B""

how to make the objects always unique and the test should be always successful. Could you please give me some information.

Thanks


RE: Objects Identification. - manishbhalshankar - 11-30-2010

Hi Karraaruna,

Check the properties of "TabBar" using ObjectSpy. Might be the html id and other properties used for identifying this object are generated dynamically. You will have to select unique properties for identification. If the properties are dynamic, then you will have to use Regular Expression.