← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #139606]: Need to take screenshots again after phone reboot

 

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

    Status: Needs information => Answered

RaiMan proposed the following answer:
ok, what I did above is a principal best practice with Sikuli:

when ever possible, restrict the search for a visual object to a region,
where it should be found. This increases speed and quality of search.

solutions for "more than one text box, that might be found":
- restrict the region before searching (use reg.find() or setROI())
- capture more of the surrounding area, which makes it unique
- use the geometry of your layout to calculate a click point based on other unique matches (preview -> target offset is some support in the IDE for that)

Attachements here are not possible. You might store your
script/screenshot somewhere else and post a link here. Might be
sufficient if you want to show your script.

If you want more specific help and tips, feel free to send me a direct
mail with zipped attachments to my mail at https://launchpad.net
/~raimund-hocke.

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