ronrhe
14 years agoContributor
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.
Ronald
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