Micro Focus QTP (UFT) Forums
Not able to uniquely identify the object. - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Not able to uniquely identify the object. (/Thread-Not-able-to-uniquely-identify-the-object)



Not able to uniquely identify the object. - sachindm - 07-17-2009

Hi All,

I'm working on automation of a java based client server application.
In this application there are 6 Tabs and there are two combo box (Java list objects) (i.e. one is for Region and other is for Client) on 4 tabs.
Using descriptive programming, I'm trying to identify the Region combo from one tab, but i'm getting message that there are multiple objects with the same properties so add more properties to uniquely identify the object.
For these Java Lists, I'm getting only tagname, attached text, toolkit class properties to uniquely identify the object but using these properties still its showing the same messag.
Can anyone help me in this regard.
Please let me know if you need more details.

Thanks & Regards,
Sachin


RE: Not able to uniquely identify the object. - balakrish - 07-17-2009

Hi sachin,

Add some more properties in the Mandatory field in object identification like x,y,abs_x,abs_y etc., to uniquely identify the object and capture the tab object using the object repository add it.
Then the objects are updated in object Repository.
suppose if it is not working use index value in tab.
Eg:-like this Javalistobjects("index:=0")...........

kindly let me know if any query regarding this

Regards
Bala


RE: Not able to uniquely identify the object. - sachindm - 07-17-2009

Hi Bala,

I'm not using QTP's object repository.

Sachin