Forum Discussion
This should help
https://support.smartbear.com/screencasts/testcomplete/wildcard-dynamic-property-in-testcomplete/
Thanks Marsha!
Just to check is this how to resolve the issue I'm having?
I'm finding that the parent name changes between test runs.... from, .browser to .chrome for example...
The link you've provided details wild-carding the actual object name?
- Marsha_R7 years agoChampion Level 3
As cunderw said above, you want to wildcard the browser object. This way it will map to any browser that matches the pattern you give it.
- JennyH117 years agoFrequent Contributor
Hi Marsha,
Thanks for your reply.
I've thought about this and watched the video a few times. I'm sorry, but I'm not quite sure how doing this helps my issue.
I'm not having issues with dynamic object property values. The object identification is failing at it's earliest point in the search.... at "browser" or "chrome" etc (whatever the browser may be). How does adding a wildcard to a dynamic property value mean that it will find "browser" (several objects above the sought for object in the object path)?
Also, what happens in the case where the objects do not have dynamic property values? I suppose adding a wildcard might not hurt but it must have some effect?
I do think I understand the advice being given - thank you for this - but I am struggling to see how it helps find the browser object.
Thanks,
Jenny
- Marsha_R7 years agoChampion Level 3
That's the whole point of the wildcards. Your test calls for Aliases.chrome but your mapping says Aliases.browser or something similar. If you change the mapping to Aliases.* then it will match whatever browser you are using (as long as the children are all the same).