← Back to team overview

sikuli-driver team mailing list archive

[Question #673798]: Are image lists possible with Sikuli?

 

New question #673798 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673798

input
  images = {1: ("1536849826828.png"), 2: ("1536849837900.png")}
  first_image = (player[2])
  print(first_image)
  if exists(first_image):
    print("SAW IT")

output
  1536849837900.png
  [error] Image: Image not valid, but TextSearch is switched off!
  [error] RunTimeIDE: Exists: Abort: Jython: at test (4)
  [error] RunTimeIDE: ImageMissing: 1536849837900.png
  [error] script [ test ] stopped with error at line --unknown--

Is it possible to have a library of images in a list I can draw from, or am I just doing it wrong?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.