I'm having trouble understanding how InvokeMethod and GetPropertyValue works.
I'm testing on 3rd party controls and enjoy the feature of calling custom methods and properties. Nevertheless I've run into some problems - some methods/properties simply return null. The reason for this is unclear to me and the Ranorex documentation does not provide much help.
I'm calling a property named Items but it returns null. I've set ErrorAsException to true but I get no exception - which may indicate that the property is actually null (even though I don't think it is). But if I try to call it with "get_Items" using InvokeMethod I get an InvalidOperationException with the message "The control does no longer exist." but it does. I can click it, see it and check other properties just fine.
Some information would be appreciated. Thanks for your time.