Is there any way to find a text on screen without using image?

Asked by obaskirt

I want to assign "Some Text" into a variable and then I want to find this "Some Text" text pattern on the screen without using image. Sikuli based on a "find visually" idea but sometimes there is a need to find something on the screen without using image. For example, if we run our sikuli script with an argument and in our script, we want to find this argument on the screen. What should we do in this situation?

Maybe, the only way is to accomplish integration of sikuli with selenium/watin/watir and this kind of test automation tools or we can try to read html code or xml and write some functions to find text patterns...

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Sikuli has an OCR feature: Region.text()

But be aware: bug 710586

Revision history for this message
obaskirt (onur-baskirt) said :
#2

I have tried that option but it is not reliable. It depends on tesseract. Thank you RaiMan.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Ok, then if we are talking about web pages, something like Selenium is an alternative.

Revision history for this message
daluu (cuuld) said :
#4

Or on desktop GUIs, find another test tool to pair with Sikuli. On Windows, AutoIt is one option, and has a COM/ActiveX interface that can be called by Python (and maybe Jython) and Java.

there's probably similar options on Mac and Linux too.

Revision history for this message
kiran maroju (kiranmaroj) said :
#6

then how to pair AutoIT with Sikuli. i am new to this Sikuli.
Please help me

Revision history for this message
deva (deva-n) said :
#8

Hi,

I want to assign "Some Text" into a variable and then I want to find this "Some Text" text pattern on the screen without using image.

could you help on it ?

Revision history for this message
RaiMan (raimund-hocke) said :
#9

text = "some text"
match = find(text)

Revision history for this message
Chenna (bkckrao) said :
#10

find(text) is finder class Finder(text) ..?
Please help me with the full command.

Can you help with this problem?

Provide an answer of your own, or ask obaskirt for more information if necessary.

To post a message you must log in.