Writing a judgment script based on screenshots

Asked by Sandy Mendoza on 2017-02-24

Hi Sir RaiMan!

Good day!

I just want to know how to write script that will determine if the captured pictures is Passed or Failed and put it to text file in Mac OS .I hope you can help me with this.

Example flow.

if exists(screenshot1.png):
     wait()
     screen code here...
elif not exists(screenshot1.png):
     wait()
     screenshot code here..

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-02-24
Last reply:
2017-02-24
RaiMan (raimund-hocke) said : #1

what is your question?

You need to learn some basic Python: tutorials in the net.

Be sure to use the version SikuliX 1.1.1 and carefully read the docs.

Can you help with this problem?

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

To post a message you must log in.