sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09338
[Question #190442]: Dict/Vdict and screenshots with names
New question #190442 on Sikuli:
https://answers.launchpad.net/sikuli/+question/190442
I'm sorry if this has been asked before, I'm new to programming therefore unable to properly search as I'm actually unable to clearly describe what I want.
What I have right now:
def runMiniSandCastles():
if exists(mini_sand_p0051_question):
type("24")
elif exists(mini_sand_p0052_question):
type("20")
where mini_sand_p0051_question is a name for the image in my library ( e.g. mini_sand_p0051_question = "mini_sand_p0051_question.png")
I've been trying to convert this to vdict like this:
vdict:
SandCastleVD = VDict{}
SandCastleVD[mini_sand_p0051_question] = "10"
SandCastleVD[mini_sand_p0052_question] = "20"
and then search for an image that fits and type the value. Clean and simple, right?
but its not looking for the image thats assigned to mini_sand_p0051_question. How do I make it look for mini_sand_p0051_question.png?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.