Both screenshots I have seen from you and another use have ObjectType in the name mapping property whereas mine is called NativeClrObject. Searching for ObjectType or ObjectIdentifier or IdStr as has been recommended dont show any results.
It doesn't have to by ObjectIdentifier - it can be any property - or even a combination of properties. That's just the most commonly used ones. If NativeClrObject property finds the object, that's the property you should use
Hi @Mark1 ,
can you enlarge the same image and send me ill tell you which all to add
Sathish Kumar K
So these are my two buttons, both from the same exe ,one 32 bit one 64 bit, same button on both pcs. If I try and change the name of the NativeClrObject.Name to something like Cash* it gives me an error and says it cannot find the button10.
property should be same in both the proc..
only then the regular expression for the propValue will work
check for the properties which are same in both the processes.
Sathish Kumar K
Ah, it's starting to get a little clearer. You aren't looking for a button called Cash*
Iit apears the button is called button10 (this could also change based on OS), but more importantly, the button's container is called Cash* in other words, the button may be mappable as button10, but the container needs to be mapped as Cash* You need to follow the previous steps on adding wildcards to the identification properties, but apply it to the container that's called Cash*
so Name mapping will be something like Grid=>border=>Grid=>Cash*=>button10
Please be clearer on Regex versus Wildcards. Adding an * in an identifier is not regex. It is simply inserting a wildcard, while Regex has a specific syntax of "Regexattern" in TC - Edit that's a ":" followed by "p" - smileys - gotta love 'em
from Smartbear documentation:
You should probably look at the "Using Wildcards in Name Mapping
Apologies for not being very clear earlier, I struggle with coding terminology at times. With that being said I am still not entirely sure what exactly I need to rename. Is it the NativeClrObject.Name, is it the Aliases , is it the mapped name item.
This is the error I get when I try to rename the button10
Nope, nope, wrong place
You can leave the mapped name on the left Mapped objects pane as Cash - you aren't allowed to use special characters in them. What we are referring to is the Right hand panel where you tell TC how it should go about to find the mapped object. Having said all that, I suspect that there may be two mapped objects under grid in the left pane. With two different names. Could you just post a screenshot of the expanded Mapped objects pane ? If this is the case, you will probably need to get rid of one of the mappings adn use wildcard syntax in the one
Ok. In this case it appears you may have to entirely different buttons 0 they could have been autogenerated by TC is you use recording or have TC to automatically update mappings. What do the identification properties (right hand pane) look like for the two buttons ? It's possible that they are literally two different buttons. Otherwise, it may be possible to get rid of button10 mapped object and just change the "Control" mapped object with the aforementioned wildcard replacements