← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #150145]: IndexError: index out of range: 0

 

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

    Status: Answered => Open

Matthew Israelsohn is still having a problem:
Thanks, but it still doesn't work :-(

(1) I've confirmed sikuli-script.jar is now in c:\
(2) The batch file remains as it is in my above post.
(3) For some reason, the line in the Message window about Firefox has an extra "  irefox.exe" which isn't in the code snippet below which allows me to define different possible locations for FF:

   #Likely locations of Firefox on Windows (32/64), Mac, and Linux    
   firefoxSearchPaths=[
       "C:\Users\misraels\AppData\Local\Mozilla Firefox\firefox.exe"
   ]

Here's the complete output from the Message window:

Searching C:\Users\misraels\AppData\Local\Mozilla Firefox  irefox.exe 
[error] Stopped 
[error] An error occurs at line 60 
[error] Error message: Traceback (most recent call last):  File "C:\Users\misraels\AppData\Local\Temp\sikuli-tmp7566408192434169889.py", line 60, in    
openFirefox("http://www.google.com";) #Open a new tab & go to google 
File "C:\Users\misraels\AppData\Local\Temp\sikuli-tmp7566408192434169889.py", line 54, in openFirefox  
raise "Could not find FireFox! Add your location to the search paths."  
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn  
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\warnings.py", line 56, in warn 
IndexError: index out of range: 0

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