Forum Discussion
KSQian
8 years agoContributor
Thanks!
Yea I wanted to nitpick because I wanted to organically perform functional programming on it.
I think if they update their docs that'd be okay :)
let list = Array.from(Grid.FindAllChildren(...)) // Use Array.from to convert their obj into an actual array. return list.map(obj=>obj.wText).filter(text=>text!='Error') // convert to array of just obj.wText, then filter it to discard the ones that are not 'Error'.
tristaanogre
8 years agoEsteemed Contributor
Documentation says that it's a "safe array"... a microsoft array data type. Probably has something to do with the code language TestComplete is written in... JavaScript is supported in TC as a scripting language, however, behind the scenes, these objects and functions and methods are running in some other language and, therefore, returns things that are not native to the scripting language of choice.