Forum Discussion
inspect that button with object spy
It should have property something like Text of Caption whos value is either textA or textB
so you may write something like
IF .........Grid.Button.Caption ="textA"
do onething
ELSE
do other thing
- jloyzagawh9 years agoContributor
no caption.
- StevenN9 years agoContributor
Similar thread:
http://community.smartbear.com/t5/Getting-Started-with/Map-object/m-p/88790#M17264
If there's no caption you can switch on Text Recognition for the project. Then you should be able to spy the button text.
Using the Calculator as an example, the number buttons are "WndClass: Button", so:
Right Click on Project folder > Edit > Properties
Open Applications > Text Recognition > add the "Button" class.
Now when you spy the calculator buttons the text will also be highlighted so can be mapped.
Link for the Text recognition overview
http://support.smartbear.com/viewarticle/56486/ - Colin_McCrae9 years agoCommunity Hero
Is the text part of the button? Or alongside the button, like a label or something?
If it's part of the button, there must be a property somewhere within the button that changes. If it's not obvious (like "Caption" or something) maybe the devs are doing something like replacing a graphic overlay that you're not seeing. So if you can't find it, try asking the devs.
Also, why are you using such an unreadable Alias for the object? It looks like a straight copy of the mapped object reference. The whole point of using Aliases is to cut down the object reference by removing container layers that you don't really need to know about and giving it much more readable names than the mapped object it points to. By just using the full, automatic, version, you might as well not bother and just refer to the mapped object.
Related Content
- 2 years ago
- 5 years ago
- 4 years ago
Recent Discussions
- 16 minutes ago
- 11 hours ago