Forum Discussion
Yup, understand... however, you can't update namemapping in runtime.
I have two suggestions:
1) Property values of mapped objects can be set to be a Project variable. So, at some point in your test, update the Project.variable value to the appropriate value for the language you want then reference the button. See https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/managing/modifying/identification-properties.html
2) Use FindChild to find the particular radio button you want rather than mapping it. See https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/findchild-method.html
Can I make a click event on an item i found with solution 2) ? outside of a script or only within the scripts
- tristaanogre8 years agoEsteemed Contributor
Basically, assign the result of "FindChild" to a variable and then use a Code Snippet to execute the Click method on that variable