While not exists Loop Throwing Error When I Have Else Condition at the End
I want to do a while loops that says while you don't see an error message, run this workflow. Else, if you do see the error message, take a screen shot of the entire screen.
When I add the else code in, the IDE throws a weird exception or error.
Here's the code in my script:
while not exists(
click(a)
click(b)
print username, pwd
else:
screen = Screen()
file = screen.
Here's the error message i get when I uncomment the else conditon:
[error] script [ *ModifyCredRead
[error] Could not evaluate error source nor reason. Analyze StackTrace!
[error] IndentationError: ('unindent does not match any outer indentation level', ('C:\\Users\
Any ideas what is wrong? Is an else condition not allowed with while not exists?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: