Capturing the button labels wihtout Hotkeys symbols (&)
We are facing issue with hotkey getting applied to string captions in dealing with multi language support.
Scenario:
When user spy buttons or menus which are having hotkeys applied string caption (Like “New View...” button displayed as ”Ne&w View...” because of hotkey applied to ‘W’ character)
Now in the script we need to use TestObject.Window("Button"," Ne&w View...",1).ClickButton(). And it creates problem in dealing with multi language support because captions from each languages without ‘&’ symbols.
Example:
ENGLISH = New View...
FINNISH = Uusi näkymä...
FRENCH = NouvelleVue...
GERMAN=Neue Ansicht..
Above strings are displayed as below, when user Spy the buttons.
ENGLISH = Ne&w View...
FINNISH = Uusi n&äkymä...
FRENCH = No&uvelle Vue...
GERMAN=Neue An&sicht..
So we need a help on solving the above issues, would it be possible to refer an object without hotkeys during the execution.
Is there any option in test complete to avoid the hotkeys during the execution as well as in spy?