For a Desktop application, When I capture the element through Open Agent, it is identified as WPFlabel. But when I use getContents() function or getText() function to get the text of the label I get the following error.
Please let me know if there is any other function that can be used to the Text of the label or TextBlock
Line of Code :
Desktop.Find("/MainWin[@caption='test - Intuit QuickBooks Enterprise Solutions 17.0']//WPFUserControl[@caption='∣']//WPFLabel[@caption='Account']").getContent()
Error Message:
[ ] *** Unknown Error: An error occurred in the recovery system.
[ ] *** Error: Function getContent is not defined for window WPFLabel("$OpenAgent|&objectHandleId=1487&objectHandleSpy=3041")