if not find Error
I'm trying to use switchApp to switch to the application if it's open, and if it's not open launch the program. The code executes a switchApp, then looks for an image, and if it doesn't find the image it should launch the program. This is similar to Question 99696: https:/
Here's my code:
switchApp("Internet Explorer")
sleep (2)
if not find( ):
popup("Internet Explorer not found, will launch.")
switchApp(
Here's the error:
[sikuli] [Error] source lineNo: 5
[sikuli] [Error] Traceback (innermost last):
File "C:\DOCUME~
File "C:\Program Files\Sikuli\
at edu.mit.
at edu.mit.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
edu.mit.
Anyone know what the problem is? Any help will be appreciated. Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dan
- Solved:
- Last query:
- Last reply: