← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #141877]: How to check the result in a calculator app using sikuli?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
depends on how the answer looks like.

the easiest way: try to read it with the Region,text() feature.

If this does not work, then it is a bit more complicated:
you have to use the grafics approach: In advance you have to capture each digit from 0 to 9. then capture the region with the result and break it up in into the parts of each digit by calculating position and dimension of each digit position. Then check with an exists() loop, which of the captured digits is present in each digit position.

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