mercredi 18 novembre 2015

how to over come the "Unable to find the object Link("xxx")"

Hi I am executing a test script in Test Complete where i am using object spy to get the object. But when i execute the test I am getting an error as

Unable to find the object Link("lnkSegment141"). See Additional Information for details.    

where the object obtained after using object spy is:

Sys.Browser("iexplore").Page("*").Form("aspnetForm").Panel(2).Panel("ContentPlaceHolder1_upContent").Panel(0).Panel(1).Panel(0).Panel(0).Link("lnkSegment141")

In this test I am creating a segment type and then it is available in the list. now I need to select the created segment type but I am getting the above error for that action I even tried mapping the object but still getting the same error. what can I do to avoid this ??

I have observed the whenever I create the segment type and use object spy the number in Link("lnkSegment141") changes i.e. it becomes Link("lnkSegment136") or any other.

thanks in advance.

Aucun commentaire:

Enregistrer un commentaire