sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #52543
Re: [Question #684105]: Finding Two different images
Question #684105 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684105
Status: Open => Answered
RaiMan proposed the following answer:
that's not Python ;-)
I would do it like this (if the function makes sense at all, only if
needed more than once)
def findTwoImages(first, second):
imageCount = 0
if exists(first): #waits 3 secs for first
imageCount += 1
if exists(second): #waits 3 secs for second
imageCount += 1
return mageCount == 2
if findTwoImages("1569100025263.png", "1569100032614.png,3"):
popup('got 2')
This only works, if the first image appears within 3 seconds (no matter
what is with the second image).
You might also have a look at the feature findAny().
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.