Forum Discussion

shailesh_singh's avatar
shailesh_singh
Occasional Contributor
10 years ago

Click on object item fail when find changes in menu items of left tree menu items

Hi,

Due to role definition we have different(less or more) menu items in our left tree view . For an example --> my first user have 4 items(A , B, C, D) in left tree and record a script to click (B) for this user and now with data loop try to execute same script with another user which have (G, H,B, D,E) items in his left tree.

So this script failed on second user. It might be because of mapped object have (("ContentPanel_searchExplore_trvExploret2")) but on second user it is (("ContentPanel_searchExplore_trvExploret3")).

Please guide us how to overcome with this situation.

Are test complete using Xpath part definition for object mapping?

Can we use different locator to map objects?

 

Thanks,

Shailesh

 

 

8 Replies

  • djadhav's avatar
    djadhav
    Regular Contributor

    Please attach a screenshot of the Object Browser showing the object and also showing the properties for that object when it is selected.

    • shailesh_singh's avatar
      shailesh_singh
      Occasional Contributor

      Please Find the attachment.

       

      Thanks!!

      • djadhav's avatar
        djadhav
        Regular Contributor

        In the namemapping, edit the identification properties to use:

         

        1) ObjectType as Link

        2) ContentText as Case Collections

         

        Remove all other identification parameters.