How would you create an instance of a webdriver the first time the script is called, and then retrieve that same instance the next times? Something like this pseudocode:
from selenium import webdriver
thisScript = FIXME
if thisScript.isRunning():
driver = thisScript.driver
else:
driver = webdriver.Firefox()
driver.get("http://www.example.com")
The best option seems to be setting up a server/client system, I guess it could be done using the selenium server, but I wound up coding my own, something like this: