Results 1 to 6 of 6

Thread: Cannot identify the object

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Answers
    9

    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


  2. #2
    Junior Member
    Join Date
    Mar 2007
    Answers
    7

    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.


  3. #3
    Contributing Member
    Join Date
    Feb 2007
    Answers
    61

    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


  4. #4
    Junior Member
    Join Date
    Mar 2007
    Answers
    2

    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


  5. #5
    Junior Member
    Join Date
    Mar 2007
    Answers
    7

    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.


  6. #6
    Expert Member
    Join Date
    Apr 2007
    Answers
    147

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact