Forum Discussion

brentpaine's avatar
brentpaine
Occasional Contributor
13 years ago

Getting the text property from all UI elements visible in the app

Is there an easy way to iterate through the entire object tree and read the full name and text property into an array or something? I'm working in VBScript. 



If anyone has a pre-canned funciton to do something like this or something similar I'd apprecaite the help.



Thanks!



Brent
  • brentpaine's avatar
    brentpaine
    Occasional Contributor
    Hi Tanya, 



    Actually I wanted to be able to collect the information in order to perform localization testing. So I actually have a spreadsheet that I work against for all of my translation strings, so I wanted to collect all of the text properties of any elements on the screen and then compare those against my spreadsheet and then I could switch the language for the app and compare my localization strings. 



    Anyway, I think I was overthinking it. In the end, I simply used FindAllChildren with a deep search depth and pulled out the name and text, so I could identify the object by name and then have some sort of text that is currently associated with it. Then I can create a lookup table and run my comparisons that way. 



    Thanks for the response though. 



    Brent