Forum Discussion

ronrhe's avatar
ronrhe
Contributor
14 years ago

name mapping for dynamic names with checkproperty

Hi,



I have a web based application in which i have to perform a check in a data driven loop.

It seems that the object i want to check can get different names.



At the first iteration the check must look like :


aqObject.CheckProperty(Aliases.firefox.pageAanmeldenInspecteurs3.panelWrapper.panelContentWrapper.panelInsp1NnnIsSuccesvolAanDeDat, 'innerText', cmpContains, 'is succesvol aan de database toegevoegd.', false);



The next iteration the check must look like :     aqObject.CheckProperty(Aliases.firefox.pageAanmeldenInspecteurs3.panelWrapper.panelContentWrapper.panelInsp2NnnIsSuccesvolAanDeDat, 'innerText', cmpContains, 'is succesvol aan de database toegevoegd.', false);

    
panelInsp1NnnIsSuccesvolAanDeDat seems to change topanelInsp2NnnIsSuccesvolAanDeDat



How can use just 1 check for al situations?



I looked at the video which explains name mapping but i can't find the solution.

regards


Ronald


3 Replies

  • Hi Ronald,



    This can happen because panelInsp1NnnIsSuccesvolAanDeDat is mapped incorrectly. Make sure that this object is mapped by stable and reliable properties. If some values of the mapped properties contain changing parts, you can replace these parts with the "*" wildcard. In case you still cannot resolve the issue, zip the entire project suite directory and send us the archive. We'll look into the problem on our side.
  • Hi Jared,



    Turning off auto namemapping in the options solves this problem.



    But now it seems the end of an excelfile is not recognized.



    regeards

    ronald
  • Hi Ronald,



    Post here the problematic script and tell us what error message you get.

    BTW, what version of MS Excel are you using?