← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203053]: Text comparison then if loop

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I tried to read the text of a job name using Region.text(), but it is
not possible with this font.

To click the button until SUCCESS appears:
button = find(button_image)
regCell = Region(x,y,w,h) # a somehow calculated region of one cell in column Status
while not regCell.exists("image-of-SUCCESS.png", 0): 
    click(button)
    wait(1)
# SUCCESS appeared

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