How to read Text on Desktop Application Using AutoIT

747 views
Skip to first unread message

YS Kumar

unread,
Dec 20, 2016, 4:11:41 AM12/20/16
to robotframework-users
HI

Read the Text  from desktop Application:-
When i manually select the Line and right Click no Copy Option is displayed. i think that is protected.Help me to get that text

I have tried using Keywords "Control Get Text" and "Win GetText"

Testcases is executed and it will pass the Testcase, but there is Empty text".


David

unread,
Dec 20, 2016, 10:40:30 PM12/20/16
to robotframework-users
It might be that AutoIt can't actually get the text. Are you sure you're using the right object ID? You might have to try other Windows GUI tools instead. Something like these



For debugging the AutoItLibrary issue, I would first try and see if I could get it to work natively in AutoIt, which I'm guessing likely not (e.g. AutoItScript or via COM in python, vbscript. If using COM and python, you could interactively test/debug using the python shell to call the AutoIt APIs).

teegee

unread,
Dec 22, 2016, 1:45:05 AM12/22/16
to robotframework-users
I find the Au3Info tool very useful. You can just explore which elements are available to read and under which name by dragging a target thingy around on the GUI

YS Kumar

unread,
Dec 22, 2016, 3:39:06 AM12/22/16
to robotframework-users
HI,

I tried using AU3info tool , still i was getting empty text

David

unread,
Dec 22, 2016, 10:10:24 PM12/22/16
to robotframework-users
As I said in earlier post, AutoIt may have trouble fetching the text from the control. In my experience, AutoIt isn't as awesome compared to Selenium for the web. It does a better job for typing into text fields and for mouse actions, but poor job of actually reading data off controls or even finding controls sometimes.
Reply all
Reply to author
Forward
0 new messages