Forum Discussion
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.
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).
- JennyH117 years agoFrequent Contributor
Hi Marsha
Thanks, I get that. :)
What I don't get is how adding a wildcard to a object property value means that testcomplete knows to look for Aliases.* and not Aliases.browser etc....
Thanks,
Jenny
- Marsha_R7 years agoChampion Level 3
Okay, show us the code that fails when the browser changes.
Related Content
Recent Discussions
- 3 days agovladd1