← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #169074]: Is there a way to take snpashot during sikuli tests ?

 

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

    Status: Open => Answered

vitalliuss proposed the following answer:
Try this:

import shutil
import os

f = capture(getBounds())     #take screenshot
shutil.move(f, destination + name)     #save as image file to the destination folder, f.e. "Results". Name can be "image.png"

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