← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #239427]: can the function 'clickable (PRSM)' link to locations outside of SIKULI

 

Question #239427 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/239427

    Status: Open => Answered

RaiMan proposed the following answer:
Principally yes.

But you should first check, wether the text is reliably found.

You could at least simulate the workflow this way (Jython script):

link1Text = "some text"
link1 = some_region.exists(link1Text, 0) # ,0 makes exists to come back instantly if not found
if link1:
    text = link1.text()
if not link1 or text != link1Text:
    print "text not found"
    exit(1)
link1.highlight()

If the text search returns a match, we check, wether the OCR-read content is the same.
Then we highlight the found text match, that can be clicked to vanish (but does not give a feedback currently - might be an idea for a normal Sikuli feature though ;-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.