Forum Discussion
Generally we use the wildcard for name mapping properties, not names themselves.
It seems like we are using a web based application.
I would recommend adding the wildcard at the page level like you suggested. So in the object repository once we find Page8, I assume it will be something like http://www.google.com/123123 Instead map it as http://www.google.com/* where the * is the dynamic nodes.
https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/index.html
Best,
Matt
Hi Matt,
Below is the MappedName:
Aliases.browser.pageCustomert8.buttonCancelled
The dynamic value that keeps changing is pageCustomert8 . If i use * like below in JavaScript editor.
Aliases.browser.pageCustomert*.buttonCancelled, I'm getting Unexpected Token * error like below.
or like
In previous releases of TestComplete (e.g. 12), i was able to do this but not when using TestComplete 14.18.
Do i need to declare the use of * somewhere in TestComplete?. Or any suggestion?.
Many Thanks,
Az.
- Marsha_R4 years agoModerator
Since this worked in previous versions and not in the newer one, this is a good question to ask Support directly. Here's the link:
- ebarbera3 years agoStaff
Hi Azeddin_Margani -
I would refer back to what mattb said in an above post - I am not sure why this is not working the same way as previous version, but that being said - the name of the alias does not affect how TestComplete is identifying the page. This is the reason to check the NameMapping to see if there is a dynamic value mapped as part of the page.
Let me know if additional clarification is needed.
Emma
Related Content
- 12 years ago
- 6 years ago
- 6 years ago
- 7 years ago
- 7 years ago
Recent Discussions
- 10 hours ago