I have only been able to reproduce this issue on Windows XP.
When I attempt to call selenium.start() I get the following expection:
File "C:\Python25\lib\site-packages\selenium.py", line 170, in start
raise Exception, result
Exception: 0eca522de08b4e17a88b7ef557b364f3
NOTE: 0eca522de08b4e17a88b7ef557b364f3 is the browser session id.
The code used to produce this issue:
from selenium import selenium
browser = selenium("localhost",4444,"*firefox","
http://www.google.com")
browser.start()
"java -jar selenium-server.jar -interactive -multiWindow" is used to run the selenium server.
Note: IE does spawn on selenium.start().
def start(self):
result = self.get_string("getNewBrowserSession", [self.browserStartCommand, self.browserURL])
valid = False
try:
# jetty session id's are base 30 - 36, determined randomly
# base 30 - 35 will convert properly as base 36
long(result, 36)
except ValueError:
raise Exception, result
else:
self.sessionId = result
I suspect what has happened is that the version of jetty inside the server has changed and introduced a new way of generating sessionids. The current implementation assumes that result is going to be base10, but from what I can determine from the jetty source it is base30 - 36 (see http://kickjava.com/src/org/mortbay/jetty/servlet/AbstractSessionManager.java.htm).
That solved the problem for me today. Let me know if it works for you and I'll create a proper patch.
-adam