Forum Discussion
The other possibility could be a timing issue. Without knowing your code, can't say for sure. But the possibility could be that Aliases.Obj does not exist yet at the time you call "GetFields". So it will return an empty iteration object.
Double check your timing that, when you make that call, that you've waited for the page to load or the object to be instantiated or whatever.
Essentially, aqObject.GetFields does not pay attention to "Basic" versus "Advanced". Those options in the object spy are simply a UI feature for the Object Spy and don't "turn on" or "turn off" properties and methods available to the automation code. So, we need to look for another reason why those Fields aren't showing up.
- BrandonH6 years agoContributor
I should mention I'm using version 12.31 and the object in question is a SWTObject(RibbonSwtCanvas)
GetProperties and GetMethods both work on this object