Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Silk Test WPFLabel for Desktop Application

$
0
0

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")


Viewing all articles
Browse latest Browse all 625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>