sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01899
Re: [Question #150882]: Determine if data is entered in fields
Question #150882 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/150882
Status: Open => Answered
RaiMan proposed the following answer:
2 possibilities:
---1. use the Region.text() feature
This is only usable for you, if you are sure, that this OCR feature reads your font correctly (some restrictions apply: bug 710586 and some more)
---2. use clipboard
you might select the text in the input field, type ctrl-a and ctrl-c and then get the text into your script using Env.getClipboard(). This might be the more convenient approach, since you might tab through the fields instead of using find image operations.
One more thing:
I do not know, how you process the XLS. There is a very interesting Python module xlrd available, that can be used in Sikuli scripts, since it is totally written in Python and therfor Jython compatible as such (http://pypi.python.org/pypi/xlrd)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.