← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #147471]: sikuli script with looping

 

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

RaiMan proposed the following answer:
Using Sikuli X-1.0rc2?

seems to be an indentation problem.

while exists( "list of similar request" ): # you are searching for the text <list of similar request>
 click(scroll bar)
 click(submit request)
while not exists( "list of similar request" ):
 wait(3)
click(add journal)

the indentation within a block (if/elif/else/while/for/with/) have to be exactly the same. 
Recommendation with Sikuli: use 1 tab per level (never use blanks!), since tabbing is supported by the Edit menu and will be supported with some automatic indent/dedent in the next version.

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