-
Junior Member
Cannot identify the object
Hi all,
Java Add ins is added in my application.After recording the script, I compared all the properties and values by using Obj Repository and Obj Spy. At the run time i observed that, I selected "Cubic Meters/Kilogram" row in keyword view and i observed the Obj properties, but values columns are empty(no data). Why it s happend at runtime, before data is there. canany one give me the descriptive programming for this
Can anyone solve my problem, plz
At the runtime it gives the following error,
"The test run cannot continue due to an unrecoverable error.
Cannot identify the object "Cubic Meters/Kilogram" (of class JavaButton). Verify that this object's properties match an object currently displayed in your application".
If any one solves my problem, i really appreciate u.
Thanks,
Livetek
-
Junior Member
Re: Cannot identify the object
Hi,
U can check the index value of the object in object repository.
Probably it's getting changed with the change of UI.
I was also facing the same kind of issue few days back.I removed index and used different identifier and get rid of the issue.
Thanks.
Chiranjib.
-
Contributing Member
Re: Cannot identify the object
Just add .* after the index property in Object Repisotory so that it can identify the object regardless what ever the value of index may be at runtime
Not only for this purpose, if any values are changing at runtime just go ahead and add .* so that QTP recognises what ever value changes for objects may be at Runtime
-
Junior Member
Re: Cannot identify the object
Hi Kamal,
I tried to do the same by using ordinal identifier in Obj Repository, but how to add, * after the index property in Object Repisotory.Plz clarify kamal.
Thanks,
Bhargavi
-
Junior Member
Re: Cannot identify the object
Hi Kamal,
If i want to add .* as the value against the property index,it's showing a message that "please enter a numeric value"
please clarify what you exactly menat.
Thanks.
Chiranjib.
-
Expert Member
Re: Cannot identify the object
All the answers are fine. But for your convinience just put msgboxes to see whether it is recognizing the correct value or not.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules