Forum Discussion
tristaanogre
15 years agoEsteemed Contributor
Sure, you can do it that way... I wouldn't, though. If the object is not found in NameMapping/Aliases, most likely it's because either you misconfigured your namemapping so the object is not found... or the object doesn't exist.
The combination of the two would come in as I described above where you have some static components on your pages that would be mapped but, under those, would be data-driven dynamic segments that using a "Find" function would work best.
For the ecommerce site, there was a content well that everything up to and including the content well was static. I could get to a lot of the links around the page, the specific navigation tools, etc. No matter what category of products I'd be "buying", that information was static. So, those were my candidates for NameMapping and I'd make sure I did my due diligence to keep that namemapping up to date and very specific. When it came to selecting particular products for sale, that's when I'd use the FindChild and FindAllChildren functions.
Now, if the problem is that there is a delay between clicking a button and when the object comes up on screen, that's a different problem to be handled with the WaitAliasChild function. I'd click on a button to go to a category of products, I'd then use "WaitAliasChild" to make sure that the list of products would resolve.
The combination of the two would come in as I described above where you have some static components on your pages that would be mapped but, under those, would be data-driven dynamic segments that using a "Find" function would work best.
For the ecommerce site, there was a content well that everything up to and including the content well was static. I could get to a lot of the links around the page, the specific navigation tools, etc. No matter what category of products I'd be "buying", that information was static. So, those were my candidates for NameMapping and I'd make sure I did my due diligence to keep that namemapping up to date and very specific. When it came to selecting particular products for sale, that's when I'd use the FindChild and FindAllChildren functions.
Now, if the problem is that there is a delay between clicking a button and when the object comes up on screen, that's a different problem to be handled with the WaitAliasChild function. I'd click on a button to go to a category of products, I'd then use "WaitAliasChild" to make sure that the list of products would resolve.