Forum Discussion

mgreen's avatar
mgreen
Contributor
6 years ago
Solved

Object Spy issues with cells

My object spy is detecting two seperate cells as the same.  See attached photos. How can I fix it? When highlighting these cells in the grid they are obviously seperate.    Any help is apprecia...
  • mgreen's avatar
    mgreen
    6 years ago

    Procedure as follows has been successful for me most all elements:

    1) Object spy and locate element

    2) Open the Object browser to view the entire tree

    3) Go to the parent of the section/panel in question and Map it (I've been using the defaults suggested)

    4) Go through do Map Child Objects until the element in question is mapped (will have to map several layers)

    5) Once element in question is mapped, right click and Locate in Name Mapping 

    6) Locate Alias below and that grab address

    7) Use thae address in Script Mode, or if you Record a Keyword test, it should use the Mapping you just assigned without problem. 

     

    Only a few expections that have gave me blocker so far:

    a. Same object (button for example) is used for different purposes and has different InnerText (i.e. Save, Delete, Add), but has the same Name Mapping  - Workaround: in this case use conditional identification with the knowledge that it will have the same Alias in the script, but with different properties such as contentText. 

     

    b. Some objects outside of the "root" panels (i.e. pop-up calendar widgets and such) will populate under different Panel numbers sometimes in the object browser depending on your order of operations.

    example: 

    Test Case #1 - Object Spy reveals calendar and dates (which are cells in a table) is under Panel(7) in the Object browser on the first time you attempt to Name Map

     

    Test Case #2 - Do a few different actions before using Object Spy on calendar, and this time it reveals that the calendar is under Panel(6) instead in the Object browser, and indicates that the element isnt Mapped yet.

    -- Still trying to find best solution for this case.