← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #206161]: Would like to be able to gather screenshots using ruby/watir-webdriver to save images to a file then insert the path to them into sikuli using variables, i.e. if exists(path to image taken by webdriver) is this sort of thing possible?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Why being so complicated using a spreadsheet (but which would be
possible to read from Sikuli using xlrd) ;-)

Just make a simple textfile:

# images.py
img1 = "path-to-image-1.png"
img2 = "path-to-image-2.png"
.... and more of those

In your using script just say:
from images import *

where the folder containing images.py must be in sys.path.

The rest is done by Jython ;-)

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