sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #57477
Re: [Question #698272]: Loop is not working (while, if)
Question #698272 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/698272
Status: Open => Answered
RaiMan proposed the following answer:
Nothing to laugh ---- Python Syntax error messages are sometimes not really helpful.
In many cases the real problem is in the next line.
The error message itself points to the place, where the interpreter gave up, telling, that this was the last stuff it understood.
click("Toran.png".similar(0.90)
... at least a closing bracket is missing:
click("Toran.png".similar(0.90))
... but this would lead to a runtime problem, because String does not have a method similar().
click(Pattern("Toran.png").similar(0.90))
should work.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.