← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #160813]: Choice command: If find() | elif | Help

 

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

Description changed to:
Hello, I'm Vaibhav.First of all, thanks for this,I was search for a
Sikuli forum everywhere. Found this finally :)

So I'm writing program which visits a webpage do specific jobs. But there are errors in the webpage which I want sikuli to skip.
It Like, 

if find( Error1): #Error In a webpage
   click( ) #Skip
elif: 
   find(TASK ) # then the main job
   click( ) # clicks on the task.

So I am getting this error
"[error] Stopped [error] An error occurs at line 19 [error] Error message: SyntaxError: ("no viable alternative at input ':'", ('C:\\DOCUME~1\\Vaibhav\\LOCALS~1\\Temp\\sikuli-tmp5011379315393630617.py', 19, 4, 'elif: \n'))"

Also, Like I want to skip two/or more types of errors how do I it?
if find(error1):
   click(skip)
if find(error2):
  click(skip)
elif:
  find(normal task button)
  Click(normal task button)
  something like that.

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